Skip to content

[BUG] Chart is not drawn if values are smaller than 0.000001 #5653

Description

@gairom

Expected Behavior

The chart should be drawn even if values are very small.

Current Behavior

chart is not drawn - axis are drawn but the line(s) doesn't

Steps to Reproduce (for bugs)

create a simple line chart with the following data:
data: [
Math.random()/1000000,
Math.random()/1000000,
Math.random()/1000000,
Math.random()/1000000,
Math.random()/1000000,
Math.random()/1000000,
Math.random()/1000000
],

Environment

  • Chart.js version: 2.7.2
  • Browser name and version: Chrome, latest

change the attached file to .html to see example:
test.txt

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions