Skip to content

Document method of truncating decimals #4992

Description

@emilhem

Expected Behavior

An option to truncate decimals.

Current Behavior

Currently many decimals are being displayed when hovering over a datapoint. I have no problem of them being used in calculating positions but for display purposes it would be nice to be able to truncate some decimals.
chart_js_significant_digits

Possible Solution

Implement an option to allow truncation of decimals.

Context

Many decimals are not always useful when showing a graph to another person.

Environment

  • Chart.js version: 2.7.1
  • Browser name and version: Firefox 52.4.0 ESR

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions