I have an application that charts oil usage for certain machines. The information is pulled from a database. The chart updates depending on what week is specified.
I allow the user to scroll through weeks of the month, watching the chart change depending on the data for that week.
The top level displays the total oil used for that week per line. The drill down shows the oil used for that week per machine on a chosen line.
I use the update method to update the value for the line but I can’t find a way to update the drill down information when scrolling to a new week.
Here is some example code:
This is the initial setup when starting the application and there are data for the initial week, the drill-down works fine in this case:
DataSeriesItem l = new DataSeriesItem(line, lineTot);
dataSeries.addItemWithDrilldown (l, machineDataSeries);
This updates the top-level DataSeries and works fine for the top-level chart, but does not update the drill-down DataSeries, so drill-down is not available:
DataSeriesItem item = dataSeries.get(line);
item.setY(lineTot);
dataSeries.update(item);
Thanks for any help
Mel