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

Message ListMessage List     Post MessagePost Message

  Regarding Setting labels on Y-axis
Posted by Megha on Nov-13-2014 13:03
hello

How can I set labels on y axis.My data values are in exponential form, such as-
8.537203333333334E-10 .All the values are near to 0 only.Rightnow only 0 is being
displayed on my y-asis.

  Re: Regarding Setting labels on Y-axis
Posted by Peter Kwan on Nov-14-2014 01:48
Attachments:
Hi Megha,

I have attached an example using small data values like  2.2279259999999997E-9 and
8.540249999999999E-10 for your reference. The y-axis labels are displayed normally. The
first chart image is based on the sample code I attached. The second chart image is based
on the same code but with one additional line "c.yAxis().setLabelFormat("{value|E}");".

If in your chart, the y-axis only displays 0 as the label, is it possible to create an example
so that I can try to reproduce the problem? Please make sure you use hard coded data in
your example so that I can actually run the program. You may try to modify my sample code
to see if you can reproduce the problem.

The y-axis scale and labels can be controlled using many methods. Some examples are
Axis.setLinearScale, Axis.setLinearScale2 and Axis.setLinearScale3. You may refer to the
ChartDirector documentation for more details above these methods. (You may look up these
methods from the ChartDirector documentation index.)

Hope this can help.

Regards
Peter Kwan
test_chart.jsp
test_chart.jsp

1.22 Kb
    
testchart.png
testchart2.png