ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Multiline Scaling
Posted by Mojibul on Jul-02-2009 13:25
Hi,

Is it possible to add threshold value with auto scaling value?

BR// Mojibul

  Re: Multiline Scaling
Posted by Peter Kwan on Jul-03-2009 00:20
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