Skip to content

Added responsive option: canvas is sized to fit in parent DOM node#64

Open
eelcobrolman wants to merge 3 commits intobernii:gh-pagesfrom
eelcobrolman:responsive-size
Open

Added responsive option: canvas is sized to fit in parent DOM node#64
eelcobrolman wants to merge 3 commits intobernii:gh-pagesfrom
eelcobrolman:responsive-size

Conversation

@eelcobrolman
Copy link
Copy Markdown

If options.responsive is set to true, the initial size of the canvas (before scaling) is set to that of the parent DOM node. The height is set to at most half of the width, in order to prevent the Gauge to render outside the parent container.

This feature is useful when using the Gauge in a resizable context, i.e. gridster.

Note: the gauge.js file is generated with CoffeeScript 1.8.0, hence the various small changes.

@browndp08
Copy link
Copy Markdown

This would be a great feature to pull!

@dshamis317
Copy link
Copy Markdown

(thumbsup) this would be huge

@incleaf
Copy link
Copy Markdown

incleaf commented Jul 15, 2015

Good! i'm really want this function
thank you :D

@EmilMoe
Copy link
Copy Markdown

EmilMoe commented Jun 20, 2016

Does the author still works on this?

@nermin99
Copy link
Copy Markdown

Please pull this feature, it is greatly needed.

@EmilMoe
Copy link
Copy Markdown

EmilMoe commented May 17, 2020

Please pull this feature, it is greatly needed.

I think this repo is way outdated. You should take a look at Apex Charts instead:

https://apexcharts.com/javascript-chart-demos/radialbar-charts/

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.

6 participants