c3js / c3js/c3

Add chart.api.rotate() method

Open
#1,660 6 comments 0 reactions 0 assignees View on GitHub
C-feature-request
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

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](https://cloud.githubusercontent.com/assets/11950094/14655636/05353c0e-0638-11e6-9b7b-02c8026314f2.png)

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](https://cloud.githubusercontent.com/assets/11950094/14655644/0de16198-0638-11e6-8388-4915dda9ba33.png)

Is there a way to fix this? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.