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

Method for realizing rectangular tree graph component

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

Active Publication Date: 2020-07-07
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
  • Method for realizing rectangular tree graph component
  • Method for realizing rectangular tree graph component
  • Method for realizing rectangular tree graph 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 comprises the following steps of: constructing a structure of a rectangular tree diagram, namely introducingdirection parameters into a rectangular drawing function, and determining the longitudinal and transverse directions of a rectangle by judging Boolean values of the direction parameters; according tothe length of data transmitted by a user, circularly calling the rectangular drawing function by the rectangular drawing function, the direction parameters are negated and the rectangular drawing direction is changed every time the rectangular drawing function is circularly drawn until the structure of the rectangular tree graph is constructed; independently dividing each level of the rectangulartree graph to realize cyclic drawing of each level module; and performing modularization on the rectangular tree graph for users to introduce and use rectangular tree graph components. According to the method, direction parameters are set, and a recursive algorithm is combined, so that the problems that when the rectangular tree graph is drawn, rectangular starting coordinates and arrangement directions are difficult to determine, and a drawing method and process are complex are solved; a user can introduce and use the rectangular tree graph assembly in a simple mode, and visual analysis of data is facilitated.

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
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