This is a migrated thread and some comments may be shown as answers.

Stockchart showing 0 values incorrectly when valueAxis type=log

2 Answers 66 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 02 Jul 2014, 09:13 PM
Hi,

Please see the two charts in this example.

As you can see, the first chart shows the 0 value data points correctly. But, when set to valueAxis: { type: "log" } the 0 values no longer show as 0 values. How can we fix this?

Thanks,
Josh

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 04 Jul 2014, 08:37 AM
Hello Josh,

The behavior is expected. The chart will skip non-positive values when using a logarithmic axis because non-positive numbers cannot be the result of raising the base to any power.  A logarithmic axis can be used only for positive values.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Josh
Top achievements
Rank 1
answered on 14 Jul 2014, 03:20 PM
Note to others that may have this issue - a workaround is to change 0 values to 0.00001 and then show the correct 0 value in series tooltip.
Tags
Charts
Asked by
Josh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Josh
Top achievements
Rank 1
Share this question
or