Shopify / dashing

The exceptionally handsome dashboard framework in Ruby and Coffeescript.
http://shopify.github.com/dashing/
MIT License
10.97k stars 1.18k forks source link

Beginner problem: Meter not updating value on meter bar #708

Closed treesloth closed 8 years ago

treesloth commented 8 years ago

I have a meter widget that I send values to via curl. The arc of the meter appears, but it never shows the value on the arc; that is, the meter's arc is a single light gray color. Here's a sample of what I send to it:

{"auth_token": "myAw3s0metOken", "value": 34}

That updates the displayed value properly, but it does not change the meter graphic at all. The graphic appears as would be expected with a value of 0. Here's the widget from my .erb file:

<div data-id="testmeter" data-view="Meter" data-title="Used Space %" data-min="0" data-max="100"></div>

Any suggestions about why the meter graphic does not update to reflect the sent value? Thank you.

treesloth commented 8 years ago

Figured it out.... Found a sample of the meter json, added the status information. All good.