Skip to content

arbitrary width and height of stats via options object - #41

Open
ccoenen wants to merge 1 commit into
mrdoob:masterfrom
ccoenen:size-option
Open

arbitrary width and height of stats via options object#41
ccoenen wants to merge 1 commit into
mrdoob:masterfrom
ccoenen:size-option

Conversation

@ccoenen

@ccoenen ccoenen commented Mar 12, 2015

Copy link
Copy Markdown

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

damy90 commented Aug 7, 2019

Copy link
Copy Markdown

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