Giter Site home page Giter Site logo

angular-dialgauge's People

Contributors

cdjackson avatar garfield69 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-dialgauge's Issues

Values are not aligned to the middle of the gauge

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?

captura de pantalla 2016-04-19 a las 17 19 34

Config object attribute

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.

min-max range

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?

Handling undefind error

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.

ng-repeat usage

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!

SVG not maxing at parent width

Hi,

I wasn't able to get the dial to be 100% of parent width out of the box.

Here's an example:
screen shot 2015-10-21 at 3 04 03 pm
And the DOM:
screen shot 2015-10-21 at 3 05 43 pm

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.