When using a LineSeries with a BarSeries in column mode, the chart when first launched will render fine across a given number of daily intervals (e.g., 30 days). But, when the chart is redrawn for a larger number of daily intervals (.e.g., 35), then portions of the line of the LineSeries will be overlaid by some of the columns of the BarSeries across some of the daily intervals that were added.
There is a second problem where is the chart is redrawn for a single daily interval (i.e., 1) after first being rendered for a given number of daily intervals (e.g., 30 days), then the line is not redrawn at all (i.e., still shows 30 daily intervals). This is an edge case. Obviously, there must be at a minimum 2 daily intervals to draw a line. Perhaps the line should not appear at all (just its marker if it has one configured).
Occurs in when deployed to Tomcat (web mode), and when running under Eclipse (dev mode).
Steps to Reproduce
The attached file (ColumnChartColumnLineSeriesRenderingError.txt) can be used to demonstrate the problem. After launching the chart, observe that 30 daily intervals are presented with a gray budget line drawn on top of the stacked column series.
Next, change the “End Date:” widget to 8/4/2012 and click the “Get Data” button.
Observe that some of the columns for 7/31 thru 8/4 are overlaying the budget line in error. The attached screen shot (ColumnLineSeriesRenderingError.png ) shows an example of this problem.
Next change the “End Date:” widget to 7/1/2012 and click the “Get Data” button. Now observe that the line is not redrawn / changed at all. The attached screen shot (ColumnLineSeriesRenderingError2.png ) shows an example of the second problem.
Please let me know if I am doing anything wrong in the code in the attached file or if there is a work around.