[TEST PR] New scale test for auto skipper.#3740
Closed
KoyoSE wants to merge 4 commits intochartjs:masterfrom
Closed
[TEST PR] New scale test for auto skipper.#3740KoyoSE wants to merge 4 commits intochartjs:masterfrom
KoyoSE wants to merge 4 commits intochartjs:masterfrom
Conversation
Contributor
Author
|
Additional notes : When min max stepsize is set, I think linear scale is correct. The step should start from min. 😃 |
Contributor
Author
ChangedMy opinionlinear2, linear3, the display of the scale is fine and it is not simple. To merge with the original, adjustment is still necessary. |
Contributor
Author
|
@etimberg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note: This is a test code for auto skipper. Please use it for reference.
(Reference #3233 )
I tested the display method not using auto skipper.
For testing, the code is not beautiful.
Summary
Extend Chart.Scale etc.

Two scale type ( linear2 and linear3 ) were added.
Fixed several bugs on the current Chart.Scale.
A sample html was added.
linear
Run the original linear scale type with extended Chart.Scale.
This means that the existing scale will work.
Other existing scales also work.
In this case, autoSkip is used.
linear2
Display the scale in a way not using autoSkip.
Ticks are divided into three levels to control label display.
I adjusted it display close to the original linear.
linear3
It is a scale that changes the scale calculation parameter and reduces the number of tick marks.
This will be useful for displaying fine scales.
jsFiddle
It was harder than I imagined. 😅