We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
<div ng-controller="C3ChartController as chartCtrl"> <c3chart ....> <chart-tooltip valueFormatFunction="chartCtrl.formatValue(value)"></chart-tooltip> </<c3chart> </div>
or something like this does not either
<chart-tooltip valueFormatFunction="angular.element(document.getElementById('line-chart-{{$index + 1}}')).controller().formatValue(value)"></chart-tooltip>
The text was updated successfully, but these errors were encountered:
@gadeynebram You need to use it like this:
value-format-function="chartCtrl.formatValue"
Sorry, something went wrong.
No branches or pull requests
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:
<div ng-controller="C3ChartController as chartCtrl"> <c3chart ....> <chart-tooltip valueFormatFunction="chartCtrl.formatValue(value)"></chart-tooltip> </<c3chart> </div>
or something like this does not either
<chart-tooltip valueFormatFunction="angular.element(document.getElementById('line-chart-{{$index + 1}}')).controller().formatValue(value)"></chart-tooltip>
The text was updated successfully, but these errors were encountered: