Skip to content

Logarithmic Scale Tick Bug for values of 0 #3917

Description

@crwh05

I have a similar scenario as issue #2966.

Expected Behavior

I wish to show the difference between values with large differences in values and some with a value of 0 too.

I want to show 0 as a value so the tooltip can still be seen for that data value because if I set the 0 values to 'null' the tooltip doesn't display and you can't see a little sliver of a bars border to indicate a data value is there. This is particularly an issue where several values are 0 beside each other, you cannot easily see how many are there when there are no labels under them. e.g.
image
https://codepen.io/crwh05/pen/xgeROm

Current Behavior

The scales are not displaying correctly. I know this is an issue with log(0) being undefined but I thought the fix #3016 solved this problem.
For some reason, the first tick is being displayed below 0 on the y scales. This only happens when a value is 0.

image

https://codepen.io/crwh05/pen/ggywQY

If the first scale tick could be displayed in the correct place above the 0 tick then the chart would be perfect for my use.

Environment

  • Chart.js version: 2.4.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions