Sorry for yet another (e)chart question.
I’m using markPoints to get the bubbles to show min and max values, but these show fractional numbers I’d like to round.
Apache echarts googld wisdom suggest to use sth like
formatter: (value) => (value * 1000) / 1000
but I can’t get that formatter to work.
Does anybody have a working example?
Mmh, I don’t explicitly define which items to include in the legend so I guess it’s the default.
The label: in your code only applies to markPoint. In legend, the same item’s value is fractional again and I wouldn’t know where to put another formatter: to apply to the legend, too.
I have UoM number items, unfortunately the legend display doesn’t apply the item display pattern.
Also, legend only shows the values (BTW in default US locale which is another annoyance).
I’ve opened this: (non) formatted values in charts · Issue #3583 · openhab/openhab-webui · GitHub