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

arbitrary width and height of stats via options object #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccoenen
Copy link

@ccoenen ccoenen commented Mar 12, 2015

you can now call Stats with this:

var stats = new Stats({bars: 200, barHeight: 70});

And get a 200px wide chart with a barHeight of 70px. The overall dimensions will be bigger, because of the padding. I specifically set the chart size and not the overall size, because i would not care about the outer dimensions for debugging. Also, i chose NOT to name the vars width and height, so that there is no confusion about what is being set.

@damy90
Copy link

damy90 commented Aug 7, 2019

Soo will this ever be merged?

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

Successfully merging this pull request may close these issues.

2 participants