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

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

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

eelcobrolman
Copy link

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

This would be a great feature to pull!

@dshamis317
Copy link

(thumbsup) this would be huge

@incleaf
Copy link

incleaf commented Jul 15, 2015

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

@EmilMoe
Copy link

EmilMoe commented Jun 20, 2016

Does the author still works on this?

@nermin99
Copy link

Please pull this feature, it is greatly needed.

@EmilMoe
Copy link

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