From: Nathaniel G. A. <nat...@ya...> - 2003-09-10 20:54:01
|
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 |