Esri / ember-cli-cedar

Ember addon for Esri's Cedar charting library
https://esri.github.io/ember-cli-cedar/#/charts/bar
Apache License 2.0
3 stars 2 forks source link

Tooltip Not Working in ArcGIS Hub Charts #95

Open kphaneuf opened 6 years ago

kphaneuf commented 6 years ago

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. image

tomwayson commented 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 😉

zhengniu commented 3 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 😉

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

tomwayson commented 3 years ago

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.