angular-dimple icon indicating copy to clipboard operation
angular-dimple copied to clipboard

angular expressions as value for any property other than `data` ??

Open bdkent opened this issue 8 years ago • 1 comments

Unless I am doing something very wrong, it seems like angular-dimple does not support angular expressions for any value other than the <graph>'s data attribute.

For example, instead of this:

<graph data="graphData">
  <x field="Month"></x>
  <y field="Sales"></y>
  <line field="storeId" value="2"></line>
  <line field="storeId" value="1"></line>
 </graph>

doing something like this:

<graph data="graphData">
  <x field="Month"></x>
  <y field="Sales"></y>
  <line field="{{fieldValueSetInScope}}" value="2"></line>
  <line field="storeId" value="1"></line>
 </graph>

See: https://jsfiddle.net/bkent/2mL197mv/

I am finding it very limiting to have to define charts statically. Are there any plans to support angular expressions in other fields??

bdkent avatar Apr 12 '16 20:04 bdkent

yes, this is not handy at all.

jtviegas avatar Aug 31 '16 12:08 jtviegas