question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add chart.api.rotate() method

See original GitHub issue

I 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: image

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. image

Is there a way to fix this? Thanks!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
aendra-rininslandcommented, Apr 30, 2016

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.

0reactions
boghyoncommented, Oct 11, 2017

+1 Would be nice, if I could rotate the chart via API. Any update?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found