-
Notifications
You must be signed in to change notification settings - Fork 366
Enable stacked scales and with reverse option support #655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
79796d8
Change defaults of yMin/Max when missing
stockiNail 43a7e65
adds test case with category scale
stockiNail b21cccb
Merge remote-tracking branch 'origin/master' into fixDefaultsMinMax
stockiNail 1635034
adds scale.options.reverse checking
stockiNail 837863a
apply review
stockiNail 4bebac2
applies same config between reverse and no reverse scale
stockiNail be6a6c8
applies scale dimensions as default for annotation located by a point
stockiNail b25c006
applies reverse logic to line annotation
stockiNail 424535f
fixes cc
stockiNail cff5be6
fixes cc2
stockiNail c568714
fixes lint
stockiNail 981179a
Merge remote-tracking branch 'origin/master' into fixDefaultsMinMax
stockiNail 449184e
changes documentation
stockiNail 4f3b622
Merge remote-tracking branch 'origin/master' into fixDefaultsMinMax
stockiNail f6593b9
adds note about the breaking changes to migration guide
stockiNail 9f9a2f3
apply review
stockiNail b9b4342
changes link to stacked scales
stockiNail 19c617d
Update docs/guide/migrationV2.md
stockiNail File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module.exports = { | ||
tolerance: 0.0055, | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
x: { | ||
display: true, | ||
min: -10, | ||
max: 50 | ||
}, | ||
y: { | ||
display: false, | ||
min: -10, | ||
max: 50 | ||
} | ||
}, | ||
plugins: { | ||
annotation: { | ||
annotations: { | ||
first: { | ||
type: 'box', | ||
xMax: 1, | ||
backgroundColor: 'rgba(159, 226, 191, 0.5)', | ||
}, | ||
second: { | ||
type: 'box', | ||
xMax: 30, | ||
xMin: 1, | ||
backgroundColor: 'rgba(255, 191, 0, 0.5)', | ||
}, | ||
third: { | ||
type: 'box', | ||
xMin: 30, | ||
backgroundColor: 'rgba(222, 49, 99, 0.5)', | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
module.exports = { | ||
tolerance: 0.0055, | ||
config: { | ||
type: 'bar', | ||
data: { | ||
datasets: [{ | ||
data: [0, 0, 0, 0, 0, 0] | ||
}] | ||
}, | ||
options: { | ||
scales: { | ||
x: { | ||
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], | ||
}, | ||
y: { | ||
display: false | ||
} | ||
}, | ||
plugins: { | ||
legend: false, | ||
annotation: { | ||
annotations: { | ||
first: { | ||
type: 'box', | ||
xMax: 'February', | ||
backgroundColor: 'rgba(159, 226, 191, 0.5)', | ||
}, | ||
second: { | ||
type: 'box', | ||
xMax: 'April', | ||
xMin: 'February', | ||
backgroundColor: 'rgba(255, 191, 0, 0.5)', | ||
}, | ||
third: { | ||
type: 'box', | ||
xMin: 'April', | ||
backgroundColor: 'rgba(222, 49, 99, 0.5)', | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
module.exports = { | ||
tolerance: 0.0055, | ||
config: { | ||
type: 'bar', | ||
data: { | ||
datasets: [{ | ||
data: [0, 0, 0, 0, 0, 0] | ||
}] | ||
}, | ||
options: { | ||
scales: { | ||
x: { | ||
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], | ||
reverse: true | ||
}, | ||
y: { | ||
display: false | ||
} | ||
}, | ||
plugins: { | ||
legend: false, | ||
annotation: { | ||
annotations: { | ||
first: { | ||
type: 'box', | ||
xMax: 'February', | ||
backgroundColor: 'rgba(159, 226, 191, 0.5)', | ||
}, | ||
second: { | ||
type: 'box', | ||
xMax: 'April', | ||
xMin: 'February', | ||
backgroundColor: 'rgba(255, 191, 0, 0.5)', | ||
}, | ||
third: { | ||
type: 'box', | ||
xMin: 'April', | ||
backgroundColor: 'rgba(222, 49, 99, 0.5)', | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
module.exports = { | ||
tolerance: 0.0055, | ||
config: { | ||
type: 'bar', | ||
data: { | ||
datasets: [{ | ||
data: [0, 0, 0, 0, 0, 0] | ||
}] | ||
}, | ||
options: { | ||
scales: { | ||
x: { | ||
display: false, | ||
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], | ||
}, | ||
y: { | ||
display: true, | ||
stack: 'demo', | ||
stackWeight: 2, | ||
min: -10, | ||
max: 50 | ||
}, | ||
y2: { | ||
type: 'category', | ||
display: true, | ||
labels: ['ON', 'OFF'], | ||
offset: true, | ||
position: 'left', | ||
stack: 'demo', | ||
stackWeight: 1, | ||
} | ||
}, | ||
plugins: { | ||
legend: false, | ||
annotation: { | ||
annotations: { | ||
first: { | ||
type: 'box', | ||
yScaleID: 'y2', | ||
yMax: 'OFF', | ||
backgroundColor: 'rgba(159, 226, 191, 0.5)', | ||
}, | ||
second: { | ||
type: 'box', | ||
yScaleID: 'y2', | ||
yMin: 'OFF', | ||
backgroundColor: 'rgba(255, 191, 0, 0.5)', | ||
}, | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.