chartjs / chartjs/Chart.js

Feature Suggestion: Minimal Log Axis Showing Only Powers of 10

Open
#5,589 3 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

Hi

I needed a clean log axis that only showed powers of 10 and I couldn't find anything in the documentation so I modified the yAxis tick callback so that it only returned powers of 10.

Here is a description of my original problem.

https://stackoverflow.com/a/50971764/7384648

Here is a CodePen example showing my solution.

https://codepen.io/LondonWebFactory/pen/jKzdev

Is this something that is worth documenting or even a feature that could be built into the core options?

What do you think?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.