Add chart.api.rotate() method
See original GitHub issueI am trying to rotate an axis after c3.generate({...})
has already been called and am running into issues with the axes. They are not rotating properly.
I’m currently using chart.internal.config.axis_rotated=true
to attempt this but the axes are not displayed correctly (see below)
An example of a working chart that is not rotated:
The same chart after applying chart.internal.config.axis_rotated = true
Notice that the x axis (supposed to display a day) is squashed and not on the left side. The y1 and y2 axes are not displaying correctly as well.
Is there a way to fix this? Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Rotating charts in Chart JS - Stack Overflow
There's no way to rotate the chartJS but not rotate the tips :-\ On the bright side, it's easy enough to code yourself...
Read more >CanvasRenderingContext2D.rotate() - Web APIs | MDN
The CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.
Read more >Rotating Axis Labels in Matplotlib - Python Charts
Option 1: plt. plt. xticks() is probably the easiest way to rotate your labels. The only "issue" is that it's using the "stateful"...
Read more >xAxis.labels.rotation | highcharts API Reference
This tries to maintain text as legible as possible on all orientations. 'ortho' : Rotated text along the axis direction so that the...
Read more >Visualization: Column Chart - Google Developers
Creating a Material Column Chart is similar to creating what we'll now call a "Classic" Column Chart. You load the Google Visualization API...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wait, just re-read the initial issue. I’m going to kind of restructure this as a feature request, because
chart.api.rotate
should be a thing.+1 Would be nice, if I could rotate the chart via API. Any update?