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, could you create an example where the formatter uses a callback to format text per series element?
charts.WithLabelOpts( opts.Label{ Show: true, Formatter: callback?, }, )
The text was updated successfully, but these errors were encountered:
@lukarolak Function callback can be provided with chart.AddCustomJS() Example:
chart.AddCustomJS()
func makeLine() { .... line.AddCustomJS(customTooltipFormatter(line.ChartID)) return line } func customTooltipFormatter(chartID string) string { formatterFunc := ` function (params) { <callback function body> ` return fmt.Sprintf( `goechart_%s.setOption({"tooltip": {"formatter": %s}});`, chartID, formatterFunc, ) }
Sorry, something went wrong.
@shmarlovsky Thanks a lot!
No branches or pull requests
Hi, could you create an example where the formatter uses a callback to format text per series element?
The text was updated successfully, but these errors were encountered: