CN107015791A - A kind of processing method for generating chart components system, apparatus and system - Google Patents

A kind of processing method for generating chart components system, apparatus and system Download PDF

Info

Publication number
CN107015791A
CN107015791A CN201610973002.8A CN201610973002A CN107015791A CN 107015791 A CN107015791 A CN 107015791A CN 201610973002 A CN201610973002 A CN 201610973002A CN 107015791 A CN107015791 A CN 107015791A
Authority
CN
China
Prior art keywords
chart
chart components
component
configuration
target element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610973002.8A
Other languages
Chinese (zh)
Other versions
CN107015791B (en
Inventor
周玉国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610973002.8A priority Critical patent/CN107015791B/en
Publication of CN107015791A publication Critical patent/CN107015791A/en
Application granted granted Critical
Publication of CN107015791B publication Critical patent/CN107015791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The embodiment of the present application discloses a kind of processing method for generating chart components system, apparatus and system.Methods described includes:Obtain the business structure information of object diagram;According to the business structure information, the target element chosen and matched with the object diagram is concentrated from default chart components;The target element is configured to the chart components system for generating the object diagram.Using the application method or apparatus embodiment, the element needed for building chart can be subjected to modularization, because component has portability, not only the degree of coupling of system can also be reduced with the extension mechanism of lifting system using component construction chart components system.The durability of component can reduce the memory size of chart components system, therefore, be applied to mobile terminal using the chart components systematic comparison of component construction, it is ensured that icon component system is in the relatively low CPU usage of mobile terminal.

Description

A kind of processing method for generating chart components system, apparatus and system
Technical field
The application is related to chart display technology field, more particularly to a kind of processing method for generating chart components system, dress Put and system.
Background technology
In the fields such as finance, data analysis, statistics, chart show can be brought to user intuitively, clearly vision Impression.In the information age, based on big data quantity, using the high speed processing ability of computer, various types of figures can be drawn out Table, and the trend of data is shown in a different manner so that user is very clear to conventional data and following trend.Example Such as, the financial chart such as K line charts, Time Index Chart, fund figure can help user quickly to understand the prices of the financial products such as stock, fund Information and upward price trend etc., therefore, financial chart have become the important component in many financing application programs.
Chart system as many application programs part, therefore build lightweight, easy-operating chart system Have become the great difficult problem of developer.At present, chart typically is built using existing chart control, builds obtained figure Often coupling is stronger for table, user interface and Core Feature weave in, is not easy to developer and is extended.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of processing method for generating chart components system, apparatus and system, The coupling of chart system can be reduced, the autgmentability of chart system is improved.
A kind of processing method for generation chart components system that the embodiment of the present application is provided, apparatus and system are specifically so Realize:
A kind of processing method for generating chart components system, methods described includes:
Obtain the business structure information of object diagram;
According to the business structure information, the target chosen and matched with the object diagram is concentrated from default chart components Component;
The target element is configured to the chart components system for generating the object diagram.
A kind of processing unit for generating chart components system, described device includes:
Business structure acquiring unit, the business structure information for obtaining object diagram;
Target element chooses unit, for according to the business structure information, concentrated from the chart components of offer choose with The target element that the object diagram matches;
Component system generation unit, the chart components system of the object diagram is generated for the target element to be configured System.
A kind of processing system for generating chart components system, the system includes:
Model component, for sending the business datum obtained to view component;
View component, the target element chosen is concentrated for combining from default chart components, and according to receiving Business datum draws generation object diagram;
Controller assemblies, for controlling the model component and the view component.
The generation processing method of chart components system that the application is provided, apparatus and system, needed for can building chart Component carry out modularization, because component has composability and portability, component is combined after systematization The chart components system of generation not only can also reduce the degree of coupling of system so that system with the extension mechanism of lifting system In the case where keeping interface constant, replace component to meet different system requirements.In addition, component also has higher tie up Shield property, therefore, the introducing of component can also simplify system debug process, due to the lower coupling between component, according to business When demand carries out system debug after being modified to component, logic analysis process will simplify relative to high degree of coupling system is analyzed A lot.The durability of component can reduce the memory size of chart components system, therefore, utilize the chart components system of component construction System is relatively specific for mobile terminal, it is ensured that icon component system is in the relatively low CPU usage of mobile terminal.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, are not paying the premise of creative labor Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow signal of the embodiment for the generation chart components system processing method that the application is provided Figure;
Fig. 2 is the UML graphs of a relation of basic chart components and two grades of chart components in the financial field that the application is provided;
Fig. 3 is a kind of method flow diagram for embodiment to target element combined arrangement method that the application is provided;
Fig. 4 is a kind of method flow diagram of the embodiment for the chart collocation method that the application is provided;
The chart configuration interface figure that Fig. 5 provides for the application;
Fig. 6 is a kind of method flow diagram for embodiment to chart components configuration side that the application is provided;
Fig. 7 is the application scenarios schematic diagram that the application is provided;
Fig. 8 is a kind of modular structure signal of the embodiment for the generation chart components system processing unit that the application is provided Figure;
Fig. 9 is a kind of method flow diagram of the embodiment for the component system generation unit that the application is provided;
Figure 10 is a kind of modular structure schematic diagram of the embodiment for the object diagram generation unit that the application is provided;
Figure 11 is a kind of modular structure schematic diagram of the embodiment for the component Configuration unit that the application is provided.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to the application protection Scope.
The processing method to generation chart components system described herein is described in detail below in conjunction with the accompanying drawings.Figure 1 is a kind of method flow schematic diagram of the embodiment for the generation chart components system processing method that the application is provided.Although this Shen Such as following embodiments or method operating procedure shown in the drawings please be provide, but is existed based on routine or without performing creative labour More or less operating procedures can be included in methods described.The step of necessary causality is not present in logicality In, the execution sequence of these steps is not limited to the execution sequence of the embodiment of the present application offer.The generation of methods described in practice In the processing procedure of chart components system or when device is performed, it can be held according to embodiment or method shown in the drawings order Row or parallel execution.
A kind of embodiment of the processing method for the generation chart components system that specific the application is provided is as shown in figure 1, institute The method of stating can include:
S1:Obtain the business structure information of object diagram.
In one embodiment of the application, the object diagram can be financial chart, mathematical analysis chart, at other In embodiment, the object diagram can also be the relative complex chart of other kinds of structure.In the present embodiment, it can obtain The business structure information of the object diagram, further according to the business structure information, chooses corresponding target element.Specifically, In one embodiment of the application, the business structure of object diagram built can be needed by analysis, the target is obtained The business structure information of chart.The business structure information can include the letter such as service basic component of the object diagram Breath.For example, finance K line charts include the basic component such as ground line, hand number, reference axis, K lines, fund figure includes ground line, sat The basis such as parameter component.In other embodiments, the business structure information can also include the finger of the object diagram Determine the information such as usage scenario, the application is not limited herein.
The business structure information of object diagram is obtained, effective data basis can be provided for follow-up target element of choosing.
S2:According to the business structure information, concentrated from default chart components and choose what is matched with the object diagram Target element.
In the present embodiment, it can concentrate and choose and the target from default chart components according to the business structure information The target element that chart matches.The default chart components, which are concentrated, at least includes a chart components, and the chart components can With the attribute information including the chart components and the method for realizing preset function.Wherein, the attribute information can include The access object of chart data, the attribute such as width, height, the preset function can be real including the chart components Existing function, in specific programming, the method for realizing preset function can be represented in the form of function.For example, group Part " painter " can include the attribute such as width, height, and realize preset function method line (parameter 1) function, Start (parameter 2) function, end (parameter 3) function etc..In the present embodiment, the chart components can as chart data and Chart can realize the packaging body of function, can reuse and can carry out data interaction with other chart components.
In one embodiment of the application, the default chart components collection can include basic chart component set and two grades Chart components collection, wherein, the chart components that two grades of chart components are concentrated are based on the basic chart component set combination producing. In the present embodiment, the basic chart component set includes at least one basic chart components, and two grades of chart components are concentrated Including at least one two grades of chart components.Basic chart components and two grades of chart components are specifically illustrated below by one Relation, Fig. 2 is the UML graphs of a relation of basic chart components and two grades of chart components in the financial field that the application is provided.Such as Fig. 2 It is shown, in the present embodiment, the business structure information of financial chart is obtained by analysis, chart components as shown in Figure 2, tool are built Body can include " painter ", " ground line-painter ", " hand number-painter ", " reference axis-painter ", " K lines- The components such as painter ".Wherein, " ground line-painter ", " hand number-painter ", " reference axis-painter ", " K lines- Four components of painter " are inherited in component " painter ", it is possible to understand that the category of aforementioned four component retention component " painter " Property and function, but each component can increase new function again.Similarly, component " X-axis-painter " and component " Y-axis- Painter " is inherited in component " reference axis-painter ".Component " chart " shown in Fig. 2 be by " ground line-painter ", " hand number-painter ", etc. component assembly form, specific polymerization specification hereafter described in.As shown in Fig. 2 this reality Apply in example, by component " ground line-painter ", " hand number-painter ", " reference axis-painter ", " K lines-painter ", Chart components based on " gesture ".In the present embodiment, component " X-axis-painter ", " Y-axis-painter ", " chart " are made For two grades of chart components.It should be noted that the chart components that the default chart components are concentrated can be to have developed and thrown Enter the chart components product used, can also be the chart components for more conforming to practical business demand of exploitation, the application is herein It is not limited.
In the present embodiment, the element needed for building chart is subjected to modularization, because component has portability and can Maintainability, the degree of coupling of system can be substantially reduced using component construction financial chart system so that system is keeping interface not In the case of change, replace component to meet the demand of system.
S3:The target element is configured to the chart components system for generating the object diagram.
In the present embodiment, the target element can be configured to the chart components system for generating the target element.It is described Chart components system can input business datum to the chart components system as the basic system for generating the object diagram In system, the object diagram matched with the business datum can be generated., can be by the method that configures by institute in the present embodiment State chart components system described in target composition combination producing.It is described by the target element in one embodiment of the application The chart components system of the configuration generation object diagram can include:
SS:Rewriting, the configuration generation target are combined to the target element using MVC model The chart components system of chart.
In the present embodiment, model (model)-view (view)-controller (controller) mould can specifically be used The target element is combined rewriting, the chart components system of the configuration generation object diagram by formula (MVC pattern).This reality Example is applied there is provided a kind of method that configuration is combined to target element, Fig. 3 is matching somebody with somebody to target element combination for the application offer A kind of method flow diagram of embodiment of method is put, as shown in figure 3, methods described can include:
S31:Required according to pre-set business, the rewrite method of the target element is set;
S32:Model component is built, the model component is used to send business datum to view component;
S33:View component is built, the view component is used to combine the target element, and according to the business received Data draw generation object diagram;
S34:Controller assemblies are built, the controller assemblies are used to enter the target element according to the rewrite method Row method is rewritten, and controls the model component and the view component.
In the present embodiment, the model layer in MVC pattern, view layer, key-course can be subjected to modularization, mould is built respectively Type component, view component, controller assemblies.Wherein, the model component is inherited in model base class, for business datum to be provided Drawn a diagram to view component, correspondingly, the model component can be set to perform following actions:Business datum is sent to view Component.It should be noted that the business datum in the present embodiment can be the data source to be transformed into object diagram, such as it is financial Data, Mathematical Analysis Data etc., the business datum can be inputted by preset interface to the model component.The sets of views Part is inherited in view base class, and for the business datum according to model component, composite object component is drawn and shows target figure Table, correspondingly, can set the view component to perform following actions:The target element is combined, according to the business received Data draw generation object diagram.The controller assemblies are inherited in controller base class, for reference to the model component and institute View component is stated, and controls the model component and the view component, correspondingly, the controller assemblies can be set to perform Following actions:Combine, control the model component and the view component.
In the present embodiment, the rewrite method of the target element according to business demand, can be set.As described above, described The method that chart components can include the attribute information of the chart components and realize preset function., can be with the present embodiment On the basis of the preset function of the target element, according to actual business demand, the realization side of the preset function is rewritten Method so that the implementation of the preset function matches with the business demand.As described above, the preset function realized Method can be represented in the form of function, in the present embodiment, and the method for realizing the preset function is written over, can To ensure the title and parameter constant of institute's use function, and it is to change the method for realizing the preset function, in this way, can be The target element need not be done on the basis of many change, meet multiple business demand.
In the chart components system generated based on MVC pattern that the present embodiment is provided, model component can be used for encapsulating core Calculation evidence and function, are represented and input behavior independently of specific output.Model component only has functional interfaces, passes through the work( Energy property interface externally provides serial of methods.The relevant information of respective view is also stored in model component so that in the shape of model When state changes, corresponding view can be notified to be updated.Controller assemblies can be used for Controlling model component, so as to Model component transmits data, changes the state of model component, and finally results in the renewal of view component.It is closely connected between three But it is independent mutually, the change of each component internal does not cause both changes in addition.For example, it is desired to change object diagram Business rule, it is only necessary to change model component, now, view component and controller assemblies are not affected.Therefore, Chart system is built using MVC pattern, it is possible to achieve the modularization and lower coupling of chart system, greatly facilitate chart system Safeguard and upgrade.
In one embodiment of the application, the model component can also by business datum be sent to view component it Before, the data format to the business datum carries out adaptation adjustment, and the model component is additionally operable to:
SS1:Parsing obtains the data format of the business datum;
SS2:By the Data Format Transform of the business datum into pre-set business data format.
In the present embodiment, the business datum can be obtained with a variety of methods, wherein being much real-time from third-party platform Obtain, therefore, the data format of the business datum of acquisition is not quite similar, at this time, it may be necessary to which the data format of business datum is unified Change, be converted into pre-set business data format.For example, in financial chart systematic procedure is set up, setting stock type is A-share, but Being may be comprising A-share, B strands, a variety of stock type data such as H-share, now, in order to adapt to pre-set business in the business datum obtained Data format, can only extract the corresponding business datum of A-share.Furthermore it is also possible to by the financial term with a variety of expression ways Uniformly it is converted into a kind of term.
In the present embodiment, business datum can be converted into pre-set business data in model component according to business demand Form, realizes being adapted to, uniformly for business datum, so as to provide good data basis for generation object diagram.
, can after the chart components system of the configuration generation object diagram in another embodiment of the application To generate object diagram based on the chart components system, as shown in figure 1, target element configuration is being generated into the target After the chart components system of chart, methods described can also include:
S14:Based on the chart components system, the object diagram matched with the business datum obtained is built.
In the present embodiment, the first preset interface of incoming traffic data can be set in the chart components system, led to The input of business datum can be received by crossing first preset interface., can also be in institute in another embodiment of the application The second preset interface for being set in chart components system and being available for external call is stated, such as api interface is preset by described second and connect Mouth can receive the instruction for drawing object diagram, and the object diagram is drawn can include drawing the object diagram in instruction The information such as time.In response to the object diagram draw instruct, using the chart components system, can in web container incite somebody to action The business datum is rendered to object diagram.
In one embodiment of the application, parameter configuration can also be carried out to the graph structure component, for example, in life During into financial chart, cut-off rule quantity can be controlled by parameter configuration, the corresponding drafting face of the equal line of price, ups and downs whether is shown Color, the background colour of different zones, different parameters are corresponding to draw the selection of the chart outward appearances such as color.Fig. 4 is the figure that the application is provided A kind of method flow diagram of embodiment of table collocation method, as shown in figure 4, it is described be based on the chart components system, build with The object diagram that the business datum matches includes:
S41:Obtain the corresponding parameter value of the chart components system chart configuration parameter;
S42:The chart components system is configured according to the chart configuration parameter and corresponding parameter value;
S43:Based on the chart components system postponed, the object diagram matched with the business datum is built.
In the present embodiment, the configuration system for chart parameter configuration can be set up, the configuration system can be realized A variety of chart configuration parameters and the figure can be provided in interacting between developer and chart interface, the configuration system The corresponding optional parameters of table configuration parameter.The chart configuration interface figure that Fig. 5 provides for the application, as shown in figure 5, being on the left of interface Financial chart type selecting region, right side is chart configuration parameter setting area, and the present embodiment includes multistage chart configuration ginseng Number, the multistage chart configuration parameter formation tree data structure, as shown in figure 5, " Shou Shuo areas " is one-level chart configuration parameter, " cylindricality " is two grades of chart configuration parameters for belonging to " Shou Shuo areas ", and " color of cylindricality " is the three-level chart configuration for belonging to " cylindricality " Parameter.There is the chart configuration parameter " background colour " configuration parameter in corresponding optional parameters value, such as Fig. 5 to have a variety of face Color sorting value, certainly, the parameter value of the chart configuration parameter can also be User Defined value, such as height value, width value Deng.
In one embodiment of the application, Fig. 6 is one kind to chart components ' In System Reconfiguration Method that the application is provided The method flow diagram of embodiment, as shown in fig. 6, it is described according to the chart configuration parameter and corresponding parameter value to the figure Table component system, which carries out configuration, to be included:
S61:The chart configuration parameter and corresponding parameter value are generated to the configuration object of key-value pair form;
S62:The chart components system is configured according to the configuration object.
, can be by the chart configuration parameter and the chart after the corresponding parameter value of the chart configuration parameter is set The corresponding parameter value of configuration parameter is built into configuration object, specifically, can be by the configuration item and the chart configuration parameter Corresponding parameter value is configured to object in the form of key-value pair.For example, in JavaScript, can be set by options The parameter value of chart configuration parameter, by chart configuration parameter and corresponding the parameter value structure in the form of key-value pair of the system of configuration Build up configuration object.
In the present embodiment, the chart configuration parameter and corresponding parameter value are built into configuration in the form of key-value pair Object, can improve the allocative efficiency of the chart components system.
Above-described embodiment method is illustrated below by a specific application scenarios, Fig. 7 is answering for the application offer With schematic diagram of a scenario, as shown in fig. 7, regarding the K line charts in financial class chart as object diagram., can be with before K line charts are built Inquire about and whether there is the corresponding chart components system of K line charts in existing financial class chart components, if in the presence of can be straight Connect and call corresponding K line charts chart components system.
If for example, there is the K line charts chart components system in existing financial class chart components, calling the K After line chart chart components system, the configuration data of configuration system generation can be obtained, the configuration data can include chart Configuration parameter and corresponding parameter value.After the configuration data is obtained, financial circles can also be obtained by preset interface Business data.According to the configuration data and the financial transaction data, the K line charts chart components system example can be melted into Specific object.By calling the corresponding application programming interface of the object, what reception system was pre-set draws a diagram Instruction, based on the instruction, the financial transaction data is rendered to corresponding K line charts chart in web container.
, can be from carrying if the corresponding chart components system of K line charts is not present in existing financial class chart components system The default chart components supplied, which are concentrated, chooses target element, and sets the corresponding rewrite method of the target element.Regarded using model Figure director mode is combined rewriting, the chart components system of the configuration generation K line charts to the target element.Specifically Ground, can by the model layer of MVC pattern, view layer, controller layer carry out modularization, respectively build model component, view component, Controller assemblies.Wherein, the model component inherits model base class, can be configured to perform following actions:Needed according to business Ask and method rewriting is carried out to the model base class, and, data adapter unit is loaded, the data format of financial transaction data is converted Sent into pre-set business data format, and by the financial transaction data after adaptation to view layer.The view component inherit in regarding Figure base class, can be set execution following actions:Method rewriting is carried out to the view base class according to business demand, and, group The chart components that target element is concentrated are closed, are drawn a diagram based on the business datum after the adaptation.In this scene, the sets of views Part can call canvas painting canvas API to draw a diagram, canvas painting canvas have small CPU usage, easy extension, easily use etc. it is excellent Point, therefore Installed System Memory consumption can be reduced.The controller assemblies are inherited in controller base class, execution can be set following Action:Method rewriting is carried out to the controller base class according to business demand, and, built-up pattern component and view component, control Chart components in loaded targets component set processed.Finally, the model component, view component, controller assemblies are combined, institute is generated State the chart components system of K line charts.It should be noted that in the present embodiment, can also be according to existing financial system chart group Part system generates " the chart groups in the K line charts chart components system, the financial system chart components system such as Fig. 2 Part ", the generation method of " the chart components " is identical with the method for above-mentioned generation K line charts chart components system.By described , can be according to the business demands of K line charts, to " the chart during " chart components " generation K line chart chart components systems The corresponding target element of component ", MVC components carry out method rewriting, generate the K line charts chart components system.In this way, can be right Existing financial system chart components system is reused, and is saved the time of K line chart chart components systems that builds, is improved structure Build efficiency.Certainly, described " chart components " can be also used for generating the other kinds of chart components system in financial class chart System, such as Time Index Chart chart components system, fund figure icon component.
The processing method for the generation chart components system that the application is provided, can enter the component needed for building chart Row modularization, because component has composability and portability, component is combined the chart group generated after systematization Part system not only can also reduce the degree of coupling of system with the extension mechanism of lifting system so that system is keeping interface not In the case of change, replace component to meet different system requirements.In addition, component also has higher maintainability, therefore, group The introducing of part can also simplify system debug process, and due to the lower coupling between component, component is entered according to business demand When carrying out system debug after row change, logic analysis process will simplify much relative to high degree of coupling system is analyzed.Component Durability can reduce the memory size of chart components system, therefore, be applicable using the chart components systematic comparison of component construction In mobile terminal, it is ensured that icon component system is in the relatively low CPU usage of mobile terminal.
Based on the processing method of above-mentioned generation chart components system, on the other hand the application also provides a kind of generation chart group The processing unit of part system, Fig. 8 is a kind of module of the embodiment for the generation chart components system processing unit that the application is provided Structural representation, as shown in figure 8, the processing unit 80 of the generation chart components system can include:
Business structure acquiring unit 81, the business structure information for obtaining object diagram;
Target element chooses unit 82, for according to the business structure information, concentrating and choosing from the chart components of offer The target element matched with the object diagram;
Component system generation unit 83, the chart components system of the object diagram is generated for the target element to be configured System.
The processing unit for the generation chart components system that the application is provided, can enter the component needed for building chart Row modularization, because component has composability and portability, component is combined the chart group generated after systematization Part system not only can also reduce the degree of coupling of system with the extension mechanism of lifting system so that system is keeping interface not In the case of change, replace component to meet different system requirements.In addition, component also has higher maintainability, therefore, group The introducing of part can also simplify system debug process, and due to the lower coupling between component, component is entered according to business demand When carrying out system debug after row change, logic analysis process will simplify much relative to high degree of coupling system is analyzed.Component Durability can reduce the memory size of chart components system, therefore, be applicable using the chart components systematic comparison of component construction In mobile terminal, it is ensured that icon component system is in the relatively low CPU usage of mobile terminal.
As shown in figure 8, in one embodiment of the application, described device 80 can also include:
Object diagram generation unit 84, for based on the chart components system, building the business datum phase with obtaining The object diagram matched somebody with somebody.
In one embodiment of the application, the chart components collection includes basic chart components and two grades of chart components, Wherein, two grades of chart components are based on the basic chart components combination producing.
In another embodiment of the application, the chart components that the chart components are concentrated include the chart components Attribute information and the method for realizing preset function.
In one embodiment of the application, the component system generation unit 83 is additionally operable to utilize Model View Controller Pattern is combined rewriting, the chart components system of the configuration generation object diagram to the target element.
Fig. 9 is a kind of method flow diagram of the embodiment for the component system generation unit that the application is provided, as shown in figure 9, The component system generation unit 83 includes:
Setting unit 91 is rewritten, for being required according to pre-set business, the rewrite method of the target element is set;
Model component construction unit 92, for building model component, the model component is used to sending business datum to regarding Figure component;
View component construction unit 93, for building view component, the view component is used to combine the target element, Generation object diagram is drawn according to the business datum received;
Controller assemblies construction unit 94, for building controller assemblies, the controller assemblies are used for according to described heavy Write method carries out method rewriting to the target element, and controls the model component and the view component.
In one embodiment of the application, the model component construction unit 92 also includes:
Data format resolution unit, the data format of the business datum is obtained for parsing;
Date Conversion Unit, for by the Data Format Transform of the business datum into pre-set business data format.
Figure 10 is a kind of modular structure schematic diagram of the embodiment for the object diagram generation unit that the application is provided, such as Figure 10 Shown, the object diagram generation unit 84 can include:
Configuration parameter acquiring unit 101, for obtaining the corresponding parameter value of the chart components system chart configuration parameter;
Component Configuration unit 102, for according to the chart configuration parameter and corresponding parameter value to the chart group Part system is configured;
Chart configures generation unit 103, for based on the chart components system postponed, building and the business datum phase The object diagram of matching.
Figure 11 is a kind of modular structure schematic diagram of the embodiment for the component Configuration unit that the application is provided, such as Figure 11 institutes Show, the component Configuration unit 102 can include:
Object generation unit 111 is configured, for the chart configuration parameter and corresponding parameter value to be generated into key-value pair The configuration object of form;
Infrastructure component dispensing unit 112, for being configured according to the configuration object to the chart components system.
Based on the processing method and processing device of the generation chart components system, on the other hand the application also provides a kind of generation The processing system of chart components system, the system can include:
Model component, for sending the business datum obtained to view component;
View component, the target element chosen is concentrated for combining from default chart components, and according to receiving Business datum draws generation object diagram;
Controller assemblies, the controller assemblies are used to combine, control the model component and the view component.
Although mentioned in teachings herein the component combination rewriting in embodiment, Data Format Transform, parameter configuration etc. it The data of class are set, processing description, and still, the application is not limited to comply fully with industry programming language design standard Or the data described by embodiment are set, the situation of processing.Some implementations amended slightly on the basis of embodiment description Scheme can also carry out above-described embodiment it is identical, equivalent or close or deformation after it is anticipated that implementation result.Certainly, even if not By the way of upper data set, handled, as long as the component combination for meeting the application the various embodiments described above is rewritten, data format turns Change, parameter configuration mode, still can realize identical application, will not be repeated here.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasive The means for the property made can include more or less operating procedures.The step of being enumerated in embodiment order is only numerous steps A kind of mode in execution sequence, unique execution sequence is not represented., can when device or client production in practice is performed To perform or perform parallel (such as at parallel processor or multithreading according to embodiment or method shown in the drawings order The environment of reason).
Unit that above-described embodiment is illustrated, device, system, can specifically be realized, Huo Zheyou by computer chip or entity Product with certain function is realized.For convenience of description, it is divided into various modules when describing apparatus above with function to distinguish Description.Certainly, the function of each module can be realized in same or multiple softwares and/or hardware when implementing the application. Certainly, a certain unit module described herein can also will realize the module of same function by multiple submodule or submodule Combination realize.
It is also known in the art that in addition to realizing controller in pure computer readable program code mode, it is complete Controller can be caused with gate, switch, application specific integrated circuit, programmable by the way that method and step is carried out into programming in logic entirely Logic controller realizes identical function with the form of embedded microcontroller etc..Therefore this controller is considered one kind Hardware component, and the device for realizing various functions included to its inside can also be considered as the structure in hardware component.Or Person even, not only can be able to will be the software module of implementation method but also can be hardware for realizing that the device of various functions is considered as Structure in part.
The application can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type Part, data structure, class etc..The application can also be put into practice in a distributed computing environment, in these DCEs, Task is performed by the remote processing devices connected by communication network.In a distributed computing environment, program module can With positioned at including in the local and remote computer-readable storage medium including storage device.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Understood based on such, the technical scheme essence of the application On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment (can be personal computer, mobile terminal, server, or network equipment etc.) performs each embodiment of the application or implementation Method described in some parts of example.
Each embodiment in this specification is described by the way of progressive, same or analogous portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.The application can be used for crowd In more general or special purpose computing system environments or configuration.For example:Personal computer, server computer, handheld device or Portable set, laptop device, multicomputer system, the system based on microprocessor, set top box, programmable electronics are set Standby, network PC, minicom, DCE of mainframe computer including any of the above system or equipment etc..
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application have it is many deformation and Change is without departing from spirit herein, it is desirable to which appended claim includes these deformations and changed without departing from the application's Spirit.

Claims (19)

1. a kind of processing method for generating chart components system, it is characterised in that methods described includes:
Obtain the business structure information of object diagram;
According to the business structure information, the target group chosen and matched with the object diagram is concentrated from default chart components Part;
The target element is configured to the chart components system for generating the object diagram.
2. processing method according to claim 1, it is characterised in that target element configuration is being generated into the target After the chart components system of chart, methods described also includes:
Based on the chart components system, the object diagram matched with the business datum obtained is built.
3. processing method according to claim 1, it is characterised in that the chart components collection include basic chart components and Two grades of chart components, wherein, two grades of chart components are based on the basic chart components combination producing.
4. the processing method according to claim 1 or 3, it is characterised in that the chart components bag that the chart components are concentrated Include the attribute information of the chart components and realize the method for preset function.
5. processing method according to claim 1, it is characterised in that described that target element configuration is generated into the mesh The chart components system of table of marking on a map includes:
Rewriting, the figure of the configuration generation object diagram are combined to the target element using MVC model Table component system.
6. processing method according to claim 5, it is characterised in that the utilization MVC model is to described Target element is combined rewriting, and the chart components system of the configuration generation object diagram includes:
Required according to pre-set business, the rewrite method of the target element is set;
Model component is built, the model component is used to send business datum to view component;
View component is built, the view component is used to combine the target element, and is drawn according to the business datum received Generate object diagram;
Controller assemblies are built, the controller assemblies are used to carry out method weight to the target element according to the rewrite method Write, and control the model component and the view component.
7. processing method according to claim 6, it is characterised in that the model component is additionally operable to:
Parsing obtains the data format of the business datum;
By the Data Format Transform of the business datum into pre-set business data format.
8. processing method according to claim 2, it is characterised in that described to be based on the chart components system, build with The object diagram that the business datum matches includes:
Obtain the corresponding parameter value of the chart components system chart configuration parameter;
The chart components system is configured according to the chart configuration parameter and corresponding parameter value;
Based on the chart components system postponed, the object diagram matched with the business datum is built.
9. processing method according to claim 8, it is characterised in that it is described according to the chart configuration parameter and correspondingly Parameter value to the chart components system carry out configuration include:
The chart configuration parameter and corresponding parameter value are generated to the configuration object of key-value pair form;
The chart components system is configured according to the configuration object.
10. a kind of processing unit for generating chart components system, it is characterised in that described device includes:
Business structure acquiring unit, the business structure information for obtaining object diagram;
Target element chooses unit, for according to the business structure information, concentrated from the chart components of offer choose with it is described The target element that object diagram matches;
Component system generation unit, the chart components system of the object diagram is generated for the target element to be configured.
11. processing unit according to claim 10, it is characterised in that described device also includes:
Object diagram generation unit, for based on the chart components system, building the mesh matched with the business datum obtained Mark on a map table.
12. processing unit according to claim 10, it is characterised in that the chart components collection includes basic chart components With two grades of chart components, wherein, two grades of chart components be based on the basic chart components combination producing.
13. the processing unit according to claim 10 or 12, it is characterised in that the chart components that the chart components are concentrated Attribute information including the chart components and the method for realizing preset function.
14. processing unit according to claim 10, it is characterised in that the component system generation unit, is additionally operable to profit Rewriting, the chart components of the configuration generation object diagram are combined to the target element with MVC model System.
15. processing unit according to claim 14, it is characterised in that the component system generation unit includes:
Setting unit is rewritten, for being required according to pre-set business, the rewrite method of the target element is set;
Model component construction unit, for building model component, the model component is used to send business datum to view component;
View component construction unit, for building view component, the view component is used to combine the target element, according to connecing The business datum received draws generation object diagram;
Controller assemblies construction unit, for building controller assemblies, the controller assemblies are used for according to the rewrite method Method rewriting is carried out to the target element, and controls the model component and the view component.
16. processing unit according to claim 15, it is characterised in that the model component construction unit also includes:
Data format resolution unit, the data format of the business datum is obtained for parsing;
Date Conversion Unit, for by the Data Format Transform of the business datum into pre-set business data format.
17. processing unit according to claim 11, it is characterised in that the object diagram generation unit includes:
Configuration parameter acquiring unit, for obtaining the corresponding parameter value of the chart components system chart configuration parameter;
Component Configuration unit, for being entered according to the chart configuration parameter and corresponding parameter value to the chart components system Row configuration;
Chart configures generation unit, for based on the chart components system postponed, building what is matched with the business datum Object diagram.
18. processing unit according to claim 17, it is characterised in that the component Configuration unit includes:
Object generation unit is configured, for the chart configuration parameter and corresponding parameter value to be generated into matching somebody with somebody for key-value pair form Put object;
Component system dispensing unit, for being configured according to the configuration object to the chart components system.
19. a kind of processing system for generating chart components system, it is characterised in that the system includes:
Model component, for sending the business datum obtained to view component;
View component, the target element chosen is concentrated for combining from default chart components, and according to the business received Data draw generation object diagram;
Controller assemblies, for controlling the model component and the view component.
CN201610973002.8A 2016-10-28 2016-10-28 Processing method, device and system for generating chart component system Active CN107015791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610973002.8A CN107015791B (en) 2016-10-28 2016-10-28 Processing method, device and system for generating chart component system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610973002.8A CN107015791B (en) 2016-10-28 2016-10-28 Processing method, device and system for generating chart component system

Publications (2)

Publication Number Publication Date
CN107015791A true CN107015791A (en) 2017-08-04
CN107015791B CN107015791B (en) 2021-02-05

Family

ID=59438755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610973002.8A Active CN107015791B (en) 2016-10-28 2016-10-28 Processing method, device and system for generating chart component system

Country Status (1)

Country Link
CN (1) CN107015791B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704243A (en) * 2017-10-19 2018-02-16 用友网络科技股份有限公司 Construction method and device, the computer equipment and storage medium of front-end interface
CN108089904A (en) * 2017-12-21 2018-05-29 上海新案数字科技有限公司 A kind of displayed page extended method and equipment
CN108492346A (en) * 2018-03-19 2018-09-04 苏州思必驰信息科技有限公司 Realize the method and device of chart components
CN108628598A (en) * 2018-05-03 2018-10-09 山东浪潮通软信息科技有限公司 A kind of the web development approaches and device of modularization
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component
CN111813876A (en) * 2019-04-12 2020-10-23 阿里巴巴集团控股有限公司 Map interface display method and device, navigation equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364176A (en) * 2008-08-12 2009-02-11 北京航空航天大学 BPEL visual model building system based on GMF
CN102609256A (en) * 2012-01-19 2012-07-25 北京神州数码思特奇信息技术股份有限公司 Motion chart generating method based on webpages
EP2580919A1 (en) * 2010-06-14 2013-04-17 Thomson Licensing Method and apparatus for encapsulating coded multi-component video
US8438537B2 (en) * 2005-03-07 2013-05-07 Siemens Aktiengesellschaft System arrangement and method for automated application development with user guidance
US8504929B2 (en) * 2008-04-11 2013-08-06 Oracle International Corporation Editing user interface components
CN103761288A (en) * 2014-01-14 2014-04-30 国家电网公司 Visual chart custom generation system and visual chart custom generation method
CN103995692A (en) * 2013-02-16 2014-08-20 马侠安 VNMS for building dynamic application systems
CN106033495A (en) * 2015-03-13 2016-10-19 腾讯科技(深圳)有限公司 Method and device for processing human physiological feature data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438537B2 (en) * 2005-03-07 2013-05-07 Siemens Aktiengesellschaft System arrangement and method for automated application development with user guidance
US8504929B2 (en) * 2008-04-11 2013-08-06 Oracle International Corporation Editing user interface components
CN101364176A (en) * 2008-08-12 2009-02-11 北京航空航天大学 BPEL visual model building system based on GMF
EP2580919A1 (en) * 2010-06-14 2013-04-17 Thomson Licensing Method and apparatus for encapsulating coded multi-component video
CN102609256A (en) * 2012-01-19 2012-07-25 北京神州数码思特奇信息技术股份有限公司 Motion chart generating method based on webpages
CN103995692A (en) * 2013-02-16 2014-08-20 马侠安 VNMS for building dynamic application systems
CN103761288A (en) * 2014-01-14 2014-04-30 国家电网公司 Visual chart custom generation system and visual chart custom generation method
CN106033495A (en) * 2015-03-13 2016-10-19 腾讯科技(深圳)有限公司 Method and device for processing human physiological feature data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁民豆: "MVC模式在创建图表组件中的应用与研究", 《电脑知识与技术》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704243A (en) * 2017-10-19 2018-02-16 用友网络科技股份有限公司 Construction method and device, the computer equipment and storage medium of front-end interface
CN107704243B (en) * 2017-10-19 2020-12-01 用友网络科技股份有限公司 Front-end interface construction method and device, computer equipment and storage medium
CN108089904A (en) * 2017-12-21 2018-05-29 上海新案数字科技有限公司 A kind of displayed page extended method and equipment
CN108089904B (en) * 2017-12-21 2021-11-16 上海七十迈数字科技有限公司 Display page expansion method and device
CN108492346A (en) * 2018-03-19 2018-09-04 苏州思必驰信息科技有限公司 Realize the method and device of chart components
CN108628598A (en) * 2018-05-03 2018-10-09 山东浪潮通软信息科技有限公司 A kind of the web development approaches and device of modularization
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component
CN111813876A (en) * 2019-04-12 2020-10-23 阿里巴巴集团控股有限公司 Map interface display method and device, navigation equipment and readable storage medium

Also Published As

Publication number Publication date
CN107015791B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN107015791A (en) A kind of processing method for generating chart components system, apparatus and system
US11004157B2 (en) XBRL-based intelligent financial cloud platform system, construction method and business implementation method thereof
CN102375731B (en) Coding-free integrated application platform system
US10606562B2 (en) Method and system for generating PLC code with a connectivity model
CN109347676A (en) A kind of isomery, integrated mixed cloud resource management platform
CN104615617B (en) A kind of substation equipment dispatching and monitoring information processing system
US11966984B2 (en) Systems and method for combined account reconciliation and variance/flux analysis
CN105320504B (en) A kind of visual software modeling method constructing software view based on software member view
CN111080243A (en) Service processing method, device, system, electronic equipment and storage medium
CN103927174A (en) Service processing method and device
CN102982396A (en) General process modeling framework
CN107273104B (en) Processing method and device for configuration data structure
CN104156854A (en) Method and system for realizing financial products based on product plant design concept
US20210398136A1 (en) System for simulating and creating smart purchase agreements from master service agreements
CN104216701A (en) System and method for creating a graphical user interface within a manufacturing execution system
WO2015196788A1 (en) Visual interface modelling editor for constructing interface model
WO2015196785A1 (en) Visual software modelling editor for constructing software model
CN105224299B (en) A kind of universal modeling method based on system meta-model construction system model
CN111767335A (en) Data visualization analysis method
CN109978512A (en) The control method of project management system, electronic equipment, storage medium
US20190095840A1 (en) System and method for implementing a federated forecasting framework
CN103177071A (en) Customizing a graphical user interface of a manufacturing execution system screen
CN111125451A (en) Data production processing method and device, electronic equipment and storage medium
WO2015196786A1 (en) Interface element model-based universal interface modelling method for constructing interface model
JP5499113B2 (en) Production plan adjustment support device, production plan adjustment support method, and production plan adjustment support program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant