Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Realization Method of Rectangular Tree Diagram Component

An implementation method and rectangle technology, applied in the computer field, can solve the problems of complex implementation process, low efficiency, and difficulty in determining the starting coordinates and arrangement direction of the rectangle.

Active Publication Date: 2022-03-15
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for implementing a rectangular tree diagram component, which is used to solve the problem that in the prior art, it is necessary to calculate the area and coordinate position of each level sequentially, and it is difficult to determine the initial coordinates and arrangement direction of the rectangle, and the implementation process is extremely difficult. Complex, Inefficient Problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Realization Method of Rectangular Tree Diagram Component
  • A Realization Method of Rectangular Tree Diagram Component
  • A Realization Method of Rectangular Tree Diagram Component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0020] combined with figure 1 As shown, the present invention provides a method for implementing a rectangular tree diagram component. First, the structure of a rectangular tree diagram is built. The specific scheme is as follows:

[0021] 1. The method of recursive algorithm to realize the drawing of the main body of the rectangular tree diagram is as attached figure 1 Shown: The rectangular treemap displays the quantity of each category through the size of the rectangular area. In the single-layer structure, the arrangement of the rectangles is listed in the order of vertical and horizontal. The drawing of the rectangular tree diagram includes vertical drawing and horizontal drawing, defines the rectangular drawing function, and passes in the basic origin coordinate parameters x0, y0, and the parameters i and r. Among them, i is used to mark the position of the data when traversing the data input by the user; the passed r is a direction parameter of Boolean type, and its va...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for realizing a rectangular tree diagram component, which includes: building the structure of a rectangular tree diagram, including: passing in a direction parameter to a rectangle drawing function, and determining the vertical and horizontal dimensions of a rectangle by judging the Boolean value of the direction parameter; The user passes in the length of the data data, and the rectangle drawing function calls itself in a loop, draws once in each cycle, the direction parameter is reversed, and the rectangle drawing direction is changed until the structure of the rectangle tree diagram is completed; each level of the rectangle tree diagram is divided independently to realize Circular drawing of each hierarchical module; componentize the rectangular tree diagram for users to introduce and use the rectangular tree diagram component. The present invention adopts setting direction parameters combined with a recursive algorithm to solve the problem that it is difficult to determine the initial coordinates and arrangement directions of rectangles when drawing a rectangular tree diagram, and the drawing method and process are relatively complicated; users can introduce and use the rectangular tree diagram component in a simple way , which is helpful for visual analysis of data.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method for realizing a rectangular tree diagram component. Background technique [0002] Today, as computer software development technology is becoming more and more perfect, people's demand for data visualization is not limited to the visual display of data, but gradually has higher requirements for the visual effects brought by visualization. In order to meet people's different needs for data visualization, various chart component libraries are successively Appear. In the prior art, the drawing of the rectangular tree diagram is realized by using the binary tree algorithm, although this can realize the drawing of the rectangular tree diagram and better visualize the data. But for developers, this method needs to calculate the area and coordinate position of each level in turn. It is difficult to determine the starting coordinates and arrangement direction of the rectangle,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 李凡
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products