Skip to content
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

Pie chart Size #19

Open
calvinKG opened this issue Oct 14, 2015 · 2 comments
Open

Pie chart Size #19

calvinKG opened this issue Oct 14, 2015 · 2 comments

Comments

@calvinKG
Copy link

How to you change the size of the pie chart

@calvinKG calvinKG changed the title How to you change the size of the pie chart Pie chart Size Oct 14, 2015
@trenkwill
Copy link

+1

@shaddyhm
Copy link

shaddyhm commented Jun 15, 2016

I believe the issue is here:

dimensions.width = element[0].parentElement.offsetWidth || 900;
dimensions.height = element[0].parentElement.offsetHeight || 500;

It takes the height and width of the parent element.
A fix would be to set the height of the parent manually.

If you were to be using bootstrap, and you have the chart in a panel, you could change the height like this.

.panel-body {
    min-height: 300px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants