Home Forums Report Bugs Logarithmic line chart draws outside of canvas / out of bounds

Logarithmic line chart draws outside of canvas / out of bounds

Viewing 2 posts - 1 through 2 (of 2 total)
  • #16166

    JSfiddle: https://jsfiddle.net/5devj34r/

    I’m having problems with line and spline charts with logarithmic Y axis drawing series outside of the canvas area when the data series get a little crowded.

    Is this a bug in the auto scaling?

    Am I doing something wrong?

    • This topic was modified 7 years, 1 month ago by Tom R. Reason: correct jsfiddle link
    #17213

    Tom,

    A logarithmic axis can only plot positive values. There is no way to put negative values or zero on a logarithmic axis.

    Fundamental: If 10L = Z, then L is the logarithm (base 10) of Z. If L is zero, then Z equals 1.0. If L is a less than 0, then Z is a positive fraction less than 1.0. If L is greater than 0, then Z is greater than 1.0. Note that there no value of L that results in a value of Z that is zero or negative. Logarithms are simply not defined for zero or negative numbers.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.