|
From: Lapinski, M. (Research) <lap...@cr...> - 2003-09-11 12:24:31
|
yes, I realize that the data setindex will always be 0 into the array of
datasets, what
I was looking for is the index of the current array item in the dataset[0]
array. So as
below int dataSetIndex = avre.getDataSetIndex(); is always 0,
What I am looking for is to be able to getthe index value for a call to
acd.getValue(int dataset,
int index). I can hardcode the size of the graph and then user the
getValueX() pixel locations
and cobjob to get the index of what bar is beign rendered, but I would
rather have it be more
flexible. Please let me know if there is any way to do this or if I have to
go the static route.
-thank you
-mtl
-----Original Message-----
From: Nathaniel G. Auvil [mailto:nat...@ya...]
Sent: Wednesday, September 10, 2003 4:53 PM
To: jch...@li...
Subject: Re: [jCharts-users] getting index of a value in a dataset from
AvisValueRenderEvent
For a BarChart, the index will allows be zero as there is only one dataset.
Please note, those RenderEvents are not enabled on any chart with more than
one dataset yet. (ie Clustered or Stacked
Bars)
--- "Lapinski, Michael (Research)" <lap...@cr...> wrote:
> Hello,
>
> I am implementing a PreAxisValueRenderListener for a bar graph.
>
> Here is a code snippet:
>
>
> public void preRender(AxisValueRenderEvent avre) {
>
>
> IAxisPlotDataSet iapd = avre.getiAxisPlotDataSet();
> AxisChartDataSet acd = (AxisChartDataSet) iapd;
>
> int dataSetIndex = avre.getDataSetIndex();
> int indexInDataSet = null; //how do I get this
>
> /* ... */
> }
>
> now Id like to get the index of which piece of data
> in the given data set is being operated on and use
> acd.getValue(int dataset, int index) to get a piece
> of data. I cannot find any way in the API to do so.
> Is there a way?
>
> -thank you in advance
> -mtl
>
> --------------------------------------------------
> Michael Lapinski
> Computer Scientist
> GE Research
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> jCharts-users mailing list jCh...@li...
> https://lists.sourceforge.net/lists/listinfo/jcharts-users
=====
http://nathaniel-auvil.blog-city.com/
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
jCharts-users mailing list
jCh...@li...
https://lists.sourceforge.net/lists/listinfo/jcharts-users
|