Mikhus / canvas-gauges

HTML5 Canvas Gauge. Tiny implementation of highly configurable gauge using pure JavaScript and HTML5 canvas. No dependencies. Suitable for IoT devices because of minimum code base.
http://canvas-gauges.com/
MIT License
1.58k stars 396 forks source link

adding barStartPosition option #184

Closed eoikonomou closed 4 years ago

eoikonomou commented 5 years ago

Adding bar start position option to enable anti-clockwise progress bars and middle start point progress bars

An issue came up where I needed my gauge to start from the middle and go either left or right. With the current code you cannot show the progress bar to begin from the middle so I created an option to do exactly that. In addition I used this option to achieve anti-clockwise gauges which is open as an issue.

The effect of this option can be seen in the new example html I provided.