A method for expanding display of an Echarts legend component

CN115586858BActive Publication Date: 2026-07-24CHENGDU RONG WEI ELECTRONICS TECH DEV CO
View PDF 2 Cites 0 Cited by

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

Technical Problem

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.

Method used

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.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115586858B_ABST
    Figure CN115586858B_ABST
Patent Text Reader

Abstract

The application discloses a method for expanding display of an Echarts legend component, and relates to the field of visual chart interaction, and specifically adds a callback function formatter:function(param){} in a prompt box floating layer content formatter under a prompt box component. According to the application, when a user calls stacked column chart display data through the callback function, the value is displayed on the chart without configuring parameters, the value of the legend series in each category can be viewed through mouse hovering on the legend, and the category name is displayed, so that the problems of the 0 value being unable to be directly displayed, the multiple 0 value series being overlapped, and the value in a small area being difficult to obtain are effectively solved, and the display efficiency of the multiple legend series and multiple categories is improved.
Need to check novelty before this filing date? Find Prior Art