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

Message ListMessage List     Post MessagePost Message

  Y-axis Label problem
Posted by niket singh on Oct-21-2013 15:39
Hi,

First of all i want to tell you that i want to develop a Realtime multiple y-axis chart
application. In that chart all y axis parameters having a min value and max value so i want
to fix the scale for all y axis . X axis will represent time , so say for  every 10 milli second
interval all y axis parameter will change and i have to update the chart for that instance as
well.


so my problem is can i fix the y scale by setting it's label property but when i  set the label
property i cannot able to apply the data of y axises . whenever i set label for y axis and
apply a  LineLayer to it , no graph plotted at all ?

In short i want to fix min and max value of yaxis in realtime also . Only x axis value will
change on the scale according to that graph will plot.

Thanks in advance .

  Re: Y-axis Label problem
Posted by Peter Kwan on Oct-22-2013 00:34
Hi niket,

The y-axis scale can be set by using Axis.setLinearScale. For example, in Java/C#, it is like:


c.yAxis().setLinearScale(0, 50, 10);
c.yAxis2().setLinearScale(40, 41, 0.2);
anotherAxis.setLinearScale(-9, 1, 1);
.....


Note that setting the y-axis "labels" using Axis.setLabels does not mean the axis will use the "labels" as the axis scale. In ChartDirector, the labels are just names for human reading and have no meaning. For example, you can set the y-axis labels as {"Apples", "Oranges", "Pear"} or {"1", "8", "17"}. In both cases, ChartDirector will display the labels for human reading but will not attempt to understand what they mean. The actual y-axis scale will become 0, 1, 2, ... (the array index of the labels).


Hope this can help.

Regards
Peter Kwan

  Re: Y-axis Label problem
Posted by niket singh on Oct-22-2013 15:49
Ya it's working . thanks peter. now i am going to put two cursors  using track lines. so if
any problem encounters then again i will send you the problem hope your mail again help me
.