gauge.js icon indicating copy to clipboard operation
gauge.js copied to clipboard

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

Open eelcobrolman opened this issue 9 years ago • 6 comments

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.

eelcobrolman avatar Jan 03 '15 16:01 eelcobrolman

This would be a great feature to pull!

browndp08 avatar May 19 '15 20:05 browndp08

(thumbsup) this would be huge

dshamis317 avatar Jul 02 '15 01:07 dshamis317

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

incleaf avatar Jul 15 '15 07:07 incleaf

Does the author still works on this?

EmilMoe avatar Jun 20 '16 13:06 EmilMoe

Please pull this feature, it is greatly needed.

nermin99 avatar May 17 '20 17:05 nermin99

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/

EmilMoe avatar May 17 '20 17:05 EmilMoe