cdjackson / angular-dialgauge Goto Github PK
View Code? Open in Web Editor NEWAngularJS directive for a dial gauge
Home Page: http://cdjackson.github.io/angular-dialgauge/
AngularJS directive for a dial gauge
Home Page: http://cdjackson.github.io/angular-dialgauge/
Example in this fiddle: http://jsfiddle.net/7qq1keyL/
with scaleMax set to 1000, the display bar is properly scaled, but disappears with values greater than 100.
Hi, I have trouble getting the value numbers aligned to the middle of the gauge as they are on the demos.
I understand the text is positioned based on the parent's height value, it's divided by 2 and assigned to the text "y" value. But then the text sits on top of it, not in the middle, so it's not centered... Any idea why is this happening?
Hi,
How to set min max values of angular-dialgauge using angular model
The documentation states:
configuration object called config can be set to provide a single configuration object.
I think perhaps that should be:
configuration object called options can be set to provide a single configuration object.
Is there any way I can get this gauge to indicate a range, with the bar showing between min and max values, and to have those values dynamically vary?
Hi!
Since there is no handling in undefined variable, I added a condition which check it. I recommend you to add it as well.
I have to mention it is great feature and well designed!
Thanks!
Moria.
Hey folks,
Apologies for the noob question, but any advice on proper usage with ng-repeat?
<div class="dg" ng-repeat="x in myArray">
<ng-dial-gauge ng-model="foo">
</ng-dial-gauge>
</div>
I can get ng-repeat to instantiate x number of gauges, but I'm unable to bind to each element in my controller using ng-model.
Thanks in advance!
Hi,
I wasn't able to get the dial to be 100% of parent width out of the box.
Here's an example:
And the DOM:
My options look like this:
scaleMin: 0,
scaleMax: 100,
borderWidth: 0,
barColor: "#DC018A",
barWidth: 10,
trackColor: "#F6F6F7",
scaleMinorColor: "#E9E9E9",
scaleMajorColor: "#F6F6F7",
units: "%",
angle: 150,
rotate: 180,
lineCap: "round"
I forced it in my project by hard-coding the viewBox
attribute to the svg
element that you create on line 440, but is there another way around this?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.