This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 3 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Chart › Scientific or Exponential Notation for chart labels
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 3 months ago.
Hi,
I have a Frequency (X-Axis) Vs Pressure (Y-Axis) chart which I need to show in various units. When I use Micro Units, the frequencies become Mega Hz and they become very small.. like 0.000040 MHz. So all the values on X-Axis are of this order.
I am able to show these values on X Axis labels by increasing the decimal places to 5 or 6. But its very cluttery to look at. Usually in scientific community, people expect to see the labels in 4.0E-05 etc for very small or large numbers.. I did not find any option in the API to change the labels on an axis into this exponential notation. Is there one in the demos which I’m missing? Can you point me to an example to achieve this?
Regards,
Jeswanth.
Hello Jeswanth,
Unfortunately, we do not have such example, but I would suggest you look at this demo:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_logarithmic_xaxis.htm?light
Also, you could try to calculate with your logic this ‘points’ on the xAxis in beforeLoadComplete
callback function of the DataAdapter and to set them in the xAxis.
Please, take a look at this example:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_line_series.htm?light
(if you want to change the names of these labels could use formatFunction
callback)
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
You must be logged in to reply to this topic.