Method and system for realizing axis label merging based on Echarts and application
A label and value label technology, applied in the field of merging axis labels based on Echarts, can solve the problem that the Echarts library cannot support user-defined merging of axis labels, and achieve the effects of avoiding axis label stacking, improving flexibility, and being convenient to use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Example 1: A method for merging axis labels based on Echarts (see figure 1 -2), based on the api provided by Echarts, this method uses Echarts data to visualize the grid Cartesian coordinate system to realize multi-graph display. At the same time, the axis label area is used as a coordinate system different from the chart display, and the value label of the transparent cylinder is used. To realize the display of merged labels, the axis labels can be located in or on the transparent column. Specifically, this method includes the following steps:
[0029] Step 1: Use the grid attribute of the Cartesian coordinate system in Echarts to divide the main chart into multiple graphs for display, that is, perform grid layout in the Cartesian coordinate system of Echarts, and place two X-axes and two Y-axes in a single grid at the same time, so that Form two grid areas; for example: place two upper and lower X axes and two left and right Y axes in a single grid at the same time, t...
Embodiment 2
[0033] Embodiment 2: A system for merging axis labels based on Echarts, this system includes:
[0034] Grid layout module: its function is to perform grid layout in the Echarts Cartesian coordinate system, and place two X-axes and two Y-axes in a single grid at the same time, thus forming two grid areas;
[0035] Axis label merging module: its function is to set the number N of axis labels to be combined according to user needs, and divide the X-axis or Y-axis coordinates into N equal parts;
[0036] Transparent cylinder generation module: its function is to generate N transparent cylinders in the area where xAxisIndex is 1 and yAxisIndex is 1. The transparent cylinder does not display the tooltip, but only displays the value label. The content of the value label reads the user-defined configuration content;
[0037] Position adjustment module: its function is to adjust the position of the axis label of the transparent cylinder, so that the axis label is displayed in the cent...
Embodiment 3
[0040] Embodiment 3: An electronic device for merging axis labels based on Echarts, including a processor and a memory, the memory is used to store a program, and the processor is used to run the program to realize the Echarts-based Echarts described in Embodiment 1. Method to implement axis label merging.
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com