ekatrif opened a new pull request, #33:
URL: https://github.com/apache/echarts-custom-series/pull/33
## Description
Add support for custom formatting of the values displayed at the top and
bottom of the `barRange` series.
Currently, `barRange` always appends the Celsius degree symbol (`℃`) to both
values, which limits the series to temperature data represented in Celsius.
This change introduces an optional `valueFormatter` in `itemPayload`.
### Usage
```js
itemPayload: {
valueFormatter: value => `${value} °F`,
}
```
### Backward compatibility
If valueFormatter is not provided, the existing behavior is preserved:
```js
10℃
20℃
```
## Screenshots
<img width="2058" height="836" alt="SCR-20260817-jsvt"
src="https://github.com/user-attachments/assets/7b1afd4f-88e6-45f1-a2a2-0d5a43937758"
/>
<img width="1011" height="411" alt="image"
src="https://github.com/user-attachments/assets/703285c3-b426-428d-a727-d50551d92cf9"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]