Open kphaneuf opened 6 years ago
Thanks @kphaneuf, unfortunately support for configuring the tooltip format is not yet supported in cedar v1. We'd love any feedback you have on that issue.
In the meantime, you should be able to control the formatting by specifying overrides
. Here's the line that defines the default tooltip. You should be able to do something like:
"overrides": {
"graphs": [{
"balloonText": "<strong>[[Boardings_sum]]</strong><br />[[Route]]"
}]
}
But don't quote me on that 😉
Thanks @kphaneuf, unfortunately support for configuring the tooltip format is not yet supported in cedar v1. We'd love any feedback you have on that issue.
In the meantime, you should be able to control the formatting by specifying
overrides
. Here's the line that defines the default tooltip. You should be able to do something like:"overrides": { "graphs": [{ "balloonText": "<strong>[[Boardings_sum]]</strong><br />[[Route]]" }] }
But don't quote me on that 😉
Hi Tom
will it possible to convert number in balloonText? for example, [[Route]] is in unit of metre by default. in chart, I want show its value in unit of kilometer.
Thanks
zniu
See https://github.com/Esri/cedar/issues/477#issuecomment-736616870
If using the Ember component you can use transform=(action 'transformChartData')
to convert and/or format the data before rendering where the transformChartData
action will be passed the chart.query() response and should return the transformed data.
Nothing changes when adding the tooltip property to the custom json in chart settings on ArcGIS Hub. See the image below. I've tried just adding text and other fields as well as other datasets and chart types. The tooltip never changes.