Hi Mojibul,
By default, ChartDirector will auto-scale the axis based on the data values of the chart layers. It will not consider threshold values attached to the axis when performing auto-scaling. If you want ChartDirector to consider the threshold values, you may add those values as a transparent chart layer.
For example, assuming you are using a label based x-axis (so no x-coordinate for layers), the code is like (in VB/VBScript):
'add a transparent layer to make sure auto-scaling will include "myValue"
Call c.addLineLayer(Array(myValue), cd.Transparent)
Hope this can help.
Regards
Peter Kwan |