-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
[FEATURE] Add new dataset.steppedLine type #4374
Comments
@bril-andrew seems a good enhancement, can you submit a PR with docs and tests? |
@bril-andrew @simonbrunel looks good to me. |
To obtain the desired lineTo: function(ctx, previous, target, flip) {
if (target.steppedLine) {
+ if (target.steppedLine === 'middle') {
+ var midx = (previous.x + target.x)/2;
+ ctx.lineTo(midx, previous.y);
+ ctx.lineTo(midx, target.y);
+ } else
if ((target.steppedLine === 'after' && !flip) || (target.steppedLine !== 'after' && flip)) { I guessed that the |
FEATURE
Add new dataset.steppedLine type to simplify migration from Google Charts.
Suggested type: middle (or any other name)
Stepped lines in Google Charts begins outside bar-columns.
My current solution jsFiddle
Current Behavior
Google Charts Behavior
The text was updated successfully, but these errors were encountered: