ApexCharts Forums

Notifications

Xaxis, logarithmic value rounding problem when serie of value bigger than 50  

 
 mcde
(@mcde)
Member

Hi,

There is a logarithmic value rounding issue, when the length of series bigger than 50. Why? How can I fix it?

I'm working about 30.000 logarithmic values.

1580309653-logarithmic-issue.png
Quote
Posted : 29/01/2020 2:54 pm
 mcde
(@mcde)
Member
Posted by: @mcde

Hi,

There is a logarithmic value rounding issue, when the length of series bigger than 50. Why? How can I fix it?

I'm working about 30.000 logarithmic values.

1580309653-logarithmic-issue.png

You can see issue in this link : https://codepen.io/metedemirtas/pen/povmpzy

ReplyQuote
Posted : 29/01/2020 3:05 pm
(@junedchhipa)
Member Admin

The logarithmic scale is only available for y-axis. If you want to round the values, you can do

labels: {

  formatter: function(val) {

    return val.toFixed(0)

  }

}

 

ReplyQuote
Posted : 05/02/2020 2:56 pm