You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "ekatrif (via GitHub)" <gi...@apache.org> on 2026/08/17 09:20:23 UTC

[PR] feat(barRange): support custom value formatter [echarts-custom-series]

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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org