A graph rendering method and system for memory objects
A chart and object technology, applied in the field of JavaScript, can solve the problem that memory and performance cannot meet complex business, and achieve the effect of reducing CPU usage and memory load
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] The inventors of the present application found that:
[0028] Every time you draw a page, you need to redefine and instantiate the chart once, which will lead to an increase in the number of instances, resulting in unprovoked consumption of memory, which can easily lead to memory overflow.
[0029] In view of the above situation, the inventor proposes that the graph can be instantiated only once, and when the graph is called for the second or Nth time, the instanced graph can be obtained from the memory for rendering and various operations of the graph.
[0030] Therefore, this embodiment provides a graph rendering method for a memory object, which mainly includes the following operations:
[0031] When an operation initiated against a chart in the page is received, if the chart has been instantiated, the global object corresponding to the chart is extracted from the memory through the chart's identifier, and the call is made according to the received operation and the ...
Embodiment 2
[0052] This embodiment also provides a graph rendering system for memory objects, which mainly includes the following two units.
[0053] The first unit, when receiving the operation initiated for the chart in the page, if the chart has been instantiated, extracts the global object corresponding to the chart from the memory through the identification of the chart;
[0054] The second unit, according to the received operation and the identification of the chart, invokes the rendering chart method function in the global object corresponding to the chart to implement the operation processing of the chart.
[0055] In addition, on the basis of the above system architecture, it can also include: a configuration unit, which mainly pre-establishes a react component with a .jsx file suffix in the page memory, and newly defines the div tag of html in the render function corresponding to the react component, It is used to store the identifier of the chart, and configure the render funct...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
