Open gadeynebram opened 7 years ago
Hi,
Great library!
Is it possible to call a function from your controller or scope as the valueFormatFunction in chart-tooltip?
This does not work:
`
or something like this does not either
<chart-tooltip valueFormatFunction="angular.element(document.getElementById('line-chart-{{$index + 1}}')).controller().formatValue(value)"></chart-tooltip>
@gadeynebram You need to use it like this:
value-format-function="chartCtrl.formatValue"
Hi,
Great library!
Is it possible to call a function from your controller or scope as the valueFormatFunction in chart-tooltip?
This does not work:
`
`
or something like this does not either
<chart-tooltip valueFormatFunction="angular.element(document.getElementById('line-chart-{{$index + 1}}')).controller().formatValue(value)"></chart-tooltip>