Hello,
I'm using setLinearScale to control the scale of the Y axis to the range -25 to 175. After
adding data that is outside of this range, the lines drop out of the plot area and are visible
behind the X axis labels. Is there any way to hide the lines once the drop outside of the
plot area? I have included what I think to be all relevant code and have attached an image
of the chart to demonstrate the problem.
Dim objXYChart As New ChartDirector.XYChart(1000, 600)
Dim strXLabels As Double() = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24}
objXYChart.setPlotArea(50, 50, 900, 500)
..........
objXYChart.xAxis.setLabelStep(1)
objXYChart.xAxis.setTitle("Hours")
objXYChart.yAxis.setTitle("Price")
objXYChart.yAxis.setLinearScale(-25, 175, 25)
objXYChart.yAxis.setLabelFormat("{value|0,.-$}")
...........
Thanks for your help.
|