Chart Number-Axis Label Spacing for Non-Overlapping Text
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing charts suffer from improper distribution of text labels, leading to overlapping that hinders efficient information retrieval.
Innovation Solution
A method and apparatus for data visualization that determines a proper label spacing and quantity of text labels on a chart's number axis based on font size, ensuring non-overlapping labels through adjustments and user inputs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If text labels are densely distributed on the number axis to maximize information display, then the quantity of labels increases, but the text labels overlap and reduce readability
Solution Approach 1:
The system performs preliminary calculations before rendering the chart to determine the maximum number of non-overlapping text labels that can be displayed. By pre-calculating the proper label spacing based on font size and available space, the system determines the optimal quantity of labels in advance, preventing overlap before it occurs.
Solution Approach 2:
The system dynamically adjusts the quantity of text labels as a parameter based on the calculated proper label spacing. When the chart size or font size changes, the system recalculates the spacing and adjusts the number of labels to display, ensuring optimal readability while maximizing information density within the non-overlapping constraint.
2Measurement precision
If the font size of text labels is increased to improve readability, then label clarity improves, but the proper label spacing increases reducing the quantity of labels that can be displayed
Solution Approach 1:
The system establishes a quantitative relationship between font size and proper label spacing, treating both as adjustable parameters. When font size is increased for better readability, the system automatically recalculates the proper label spacing and adjusts the quantity of labels to display, optimizing the trade-off between readability and information density.
3Area of stationary object
If the chart size is reduced to fit more charts on the screen, then space utilization improves, but the proper label spacing decreases causing label overlap
Solution Approach 1:
The system dynamically adjusts the quantity of text labels based on the actual chart size. When the chart size changes (zoom in/out or resize), the system recalculates the proper label spacing and adjusts the number of labels to display accordingly. This dynamic adaptation ensures labels remain non-overlapping regardless of the chart size, allowing flexible space utilization without compromising readability.
Data Source
AI summary
The present application discloses a method for data visualization based on a chart, including: obtaining a size of a target number axis of a chart to be processed; obtaining a font size of a text label corresponding to the target number axis, and determining a proper label spacing corresponding to the target number axis according to the font size, wherein the proper label spacing is a space between any two adjacent text labels and enabling that the text labels included in the target number axis do not overlap; determining, according to the size and the proper label spacing, a quantity of the text labels included in the target number axis; and rendering the chart to be processed based on the quantity of the text labels and chart data of the chart to be processed.


