Coder Social home page Coder Social logo

angular-gage's People

Contributors

frapontillo avatar grayda avatar ikari-pl avatar ikrestov 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  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-gage's Issues

reverse problem

Hi There,

So I need to use these gages in reverse order and I am pretty sure I have the most updated version. However, for some reason when I add reverse="true" it doesnt change anything. I wonder why.

Here is my html:
<justgage decimals="true" reverse="true" title-min-font-size="12" class="col-md-2 col-sm-2" ng-if="!dashboardCtrl.metric" id="test1" min=0 max=140 value="{{device.tc1}}" custom-sectors="{{device.customSectors}}" title="{{device.title}}" width="155" height="155" symbol="°F"></justgage>

Also, I tried sending boolean check for reverse from javascript like "reverse={{device.reverseCheck}}" but it didnt work either.

Thanks

Missing id parameter for gauge

Code sample

<div justgage id="test" min="10" max="100" value="0"></div>

On page load i get the JustGage alert: "Missing id parameter for gauge!". I've tried a dump of the justgageOptions and there's no id property inside. Adding

justgageOptions.id = 'test';

just before the JustGage constructor removes the error. Am i missing something or are there problems with the html element id?

"decimals" does not affect min/max values

There also seems to be a bug that causes the background not to be drawn

<div justgage
         value="{{(disk.total-disk.free)/1000000000}}" 
         min="0" max="{{disk.total/1000000000}}"
         hide-inner-shadow="true"
         decimals="0"
         symbol="GB"></div>

results in:

while

<div justgage
         value="{{(disk.total-disk.free)/1000000000}}" 
         min="0" max="3000"
         hide-inner-shadow="true"
         decimals="0"
         symbol="GB"></div>

results in

$scope.disk = {total: 3000591806464, free: 444170838016};

Help with starting up

Hey there,

I just got this but it's not showing anything!

I get a pop up saying "Missing id parameter for gague" although it was copied from your example.

I imported "justgage" , "raphael", "angular-gage", and your controller and directive but nothing is shown.

Would have been nice a step by step integration and usage method like most githubs project lay out. :)

Gauge Title not Displaying

The gauge is working perfectly but the title attribute does not seem to be working.
Here is the code:
<div justgage title="CASH" value=4500 decimals=2 min="{{min}}" value-font-color="black" max=5000 human-friendly-decimal=true custom-sectors="{{customSectors}}" level-colors="{{levelColors}}" format-number='true' donut="true" gauge-width-scale=0.4> </div>

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.