Skip to content

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

Open
eelcobrolman wants to merge 3 commits into
bernii: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 into
bernii: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

incleaf commented Jul 15, 2015

Copy link
Copy Markdown

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

@EmilMoe

EmilMoe commented Jun 20, 2016

Copy link
Copy Markdown

Does the author still works on this?

@nermin99

Copy link
Copy Markdown

Please pull this feature, it is greatly needed.

@EmilMoe

EmilMoe commented May 17, 2020

Copy link
Copy Markdown

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