Skip to content

Replace horizontalBar with indexAxis: 'y'#7514

Merged
etimberg merged 5 commits into
chartjs:masterfrom
kurkle:base-axis
Jun 18, 2020
Merged

Replace horizontalBar with indexAxis: 'y'#7514
etimberg merged 5 commits into
chartjs:masterfrom
kurkle:base-axis

Conversation

@kurkle

@kurkle kurkle commented Jun 16, 2020

Copy link
Copy Markdown
Member

Revisiting this one (original #7144)

Resolves: #4096, resolves: #4047

Pen

@benmccann

Copy link
Copy Markdown
Contributor

It might be useful to have a test where the x and y axes have different IDs to make sure that indexAxis still works in that case

Comment thread src/core/core.controller.js
@kurkle kurkle added dependencies Pull requests that update a dependency file type: enhancement and removed dependencies Pull requests that update a dependency file labels Jun 17, 2020
@kurkle

kurkle commented Jun 17, 2020

Copy link
Copy Markdown
Member Author

It might be useful to have a test where the x and y axes have different IDs to make sure that indexAxis still works in that case

Good catch, it didn't actually work. Fixed and added a mixed test.

@benmccann

Copy link
Copy Markdown
Contributor

I think this closes #4047 as well

@benmccann benmccann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome. I'm super happy about this!

scatter next? ;-)

@kurkle

kurkle commented Jun 18, 2020

Copy link
Copy Markdown
Member Author

scatter next? ;-)

Not sure what you mean, this works for scatter too: https://codepen.io/kurkle/pen/JjGbVeG?editors=1010

@benmccann

Copy link
Copy Markdown
Contributor

I meant maybe we should find figure out how to delete it next

@etimberg etimberg added this to the Version 3.0 milestone Jun 18, 2020
@etimberg etimberg merged commit 59a1af9 into chartjs:master Jun 18, 2020
etimberg pushed a commit that referenced this pull request Sep 1, 2020
* Replace horizontalBar with indexAxis: 'y'
* Fix drawing of line for last x-position
* Consistently determine axis of scale
* Add test
@kurkle kurkle deleted the base-axis branch September 16, 2020 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Horizontal Bars mix with lines [FEATURE] Horizontal bar chart in combination with a line chart

3 participants