telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.91k forks source link

ValueAxis rounding different in Chrome #5188

Open Alex-Bubblemaster opened 5 years ago

Alex-Bubblemaster commented 5 years ago

Bug report

Ticket ID: 1421614

Reproduction of the problem

Dojo

Current behavior

Chrome: image

Edge image

FF image

Expected/desired behavior

We should be able to correctly round the logarithmic chart value axis.

Workaround

Use the xAxis.labels.template

 labels: {
   template: function(e){
      return parseFloat(e.value.toFixed(15));
   }
}

Dojo

Environment

Alex-Bubblemaster commented 5 years ago

Also reported in 1425099. raising priority.

ytterx commented 4 years ago

This issue also seems to occur in the ASP.NET MVC version of Kendo.

We used this workaround for now: .YAxis(axis => axis.Logarithmic() .Labels(c => c.Template("#= parseFloat(value.toFixed(15)) #"))