Pie chart rendering method and apparatus thereof
A pie chart, target direction technology, applied in the field of image drawing, can solve the problem of long rendering time, and achieve the effect of reducing rendering time and rendering speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Such as figure 1 Shown is a flowchart of a pie chart rendering method provided by an embodiment of the present invention. The method is applied to a terminal device and includes:
[0060] S110. Obtain the weight of each element, and calculate the angle of the rounded area corresponding to each element according to the weight; wherein the weight of each element is the ratio of the data volume corresponding to the element to the total data volume; The amount of data is the sum of the amount of data corresponding to all elements.
[0061] In this embodiment, elements can be understood as categories that divide things. For example, novels, essays, and poems are different categories of articles. The amount of data corresponding to an element is the number of things in different categories. For example, the number of novels, the number of essays, and the number of poems.
[0062] Specifically, the weight of each element can be calculated by the following method:
[0063] After det...
Embodiment 2
[0097] Such as Figure 5 As shown, it is a schematic structural diagram of a pie chart rendering apparatus provided by an embodiment of the present invention, which is used to perform such as figure 1 In the method, the device includes:
[0098] The angle calculation module 510 is configured to obtain the weight of each element, and calculate the angle of the rounded area corresponding to each element according to the weight; wherein the weight of each element is the amount of data corresponding to the element in the total amount of data Proportion; the total data volume is the sum of the data volumes corresponding to all elements;
[0099] The dividing line drawing module 520 is configured to draw a dividing line corresponding to the rounded corner area at each angle in the pre-drawn initialization pie chart according to the angle, wherein two adjacent dividing lines determine the rounded corner corresponding to an element area;
[0100] The rounded area rendering module 530 is con...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com