The value is updated through the $watch on the value property. Having several properties watching over the value was causing the value to update with the old value and new value of the properties attached (different to 'value'). I've changed the $watch to only update the value, any other property should redraw the entire chart.
And I've also added a fallback to the "middle" value to 0, meaning that if the value is undefined, it won't be shown. This can happen if your value is binded after the chart is drawn (like when you wait for an ajax call to retrieve the data).
The value is updated through the $watch on the value property. Having several properties watching over the value was causing the value to update with the old value and new value of the properties attached (different to 'value'). I've changed the $watch to only update the value, any other property should redraw the entire chart.
And I've also added a fallback to the "middle" value to 0, meaning that if the value is undefined, it won't be shown. This can happen if your value is binded after the chart is drawn (like when you wait for an ajax call to retrieve the data).