A method for expanding display of an Echarts legend component
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHENGDU RONG WEI ELECTRONICS TECH DEV CO
- Filing Date
- 2022-10-10
- Publication Date
- 2026-07-24
AI Technical Summary
The existing Echarts chart library cannot effectively display series with values of 0 when displaying multiple series of data. It cannot identify overlapping series, and it is difficult to obtain areas with small values. Mouse hover can only control the visibility of series and cannot obtain detailed values and category names.
By modifying the Echarts JS code, adding legend and tooltip components, configuring display properties and trigger types, and calling callback functions and the forEach function, the system can automatically retrieve the value and category name of the legend series in each category when the mouse hovers over the element.
The issues of abnormal display and overlap of the series with values of 0 have been resolved, and the display efficiency of multiple legend series and multiple categories has been improved. Users can obtain detailed data by hovering the mouse.
Smart Images

Figure CN115586858B_ABST