Mustansir-06 opened a new pull request, #21460:
URL: https://github.com/apache/echarts/pull/21460

   This PR adds the series name as a third argument to the valueFormatter 
function in the tooltip component.
   
   Currently, valueFormatter only receives value and dataIndex. Adding the name 
(series name) allows users to perform conditional formatting based on the 
series without having to write a full custom formatter HTML string.
   
   Changes
   src/component/tooltip/tooltipMarkup.ts: Updated buildNameValue to pass 
fragment.name into the valueFormatter call.
   
   src/util/types.ts: Updated the CommonTooltipOption and TooltipValueFormatter 
types to include the optional name?: string parameter to ensure TypeScript 
compatibility.


-- 
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]

Reply via email to