Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of cross-platform data visualisation systems, to solve existing skill
The problem of range of the production of visual content existing for art and application is smaller, poor user experience.
In order to solve the above technical problems, this specification embodiment is achieved in that
The cross-platform data visualisation system of one kind that this specification embodiment provides, the system comprises:
Model module, for providing the model of predetermined format;
Chart module, for configuring the chart for meeting platform identity;
Data module, for the data format and data structure of data to be arranged, so that the data are suitable for different platform;
Communication module makes to carry out two-way between the system and different platform for being based on scheduled transport layer protocol
Letter;
Wherein, it is requested by initiating model addition to the model module, receives the model that the model module returns, with
And chart addition request is initiated to the chart module, receive the chart that the chart module returns;And pass through the communication mould
Block is obtained from the data module for visual data, parsing operation is executed to the data, to be based on the mould
Type and chart complete the visualization to data after the parsing.
Optionally, the model has different precision, and the model module is also used to:
Division operation is executed to the model, obtains multiple model groups, and to each model group configuration and the mould
The corresponding property file of type group.
Optionally, the property file includes the title of model in the model group, classification, model supports effect and row
One of political affairs region division is a variety of.
Optionally, the chart module is specifically used for:
According to the chart that different platform configuration is adapted with the platform, and the chart is encapsulated in and the platform phase
In corresponding chart library;The chart function having the same and pattern between different platform.
Optionally, the data are the data write using json format.
Optionally, further includes: store the data in the database of system server.
Optionally, the transport layer protocol uses full-duplex communication channel, and the transport layer protocol is WebSocket communication
Agreement.
Optionally, the model addition request includes the corresponding platform parameters of the platform, described to receive the pattern die
The model that block returns, comprising:
Receive the model that the model module returns, wherein the model is that the model module is joined according to the platform
The model of the determining specific format of number and precision, the model includes 3D figure.
Optionally, further includes:
Scene module, for storing document scene, wherein the corresponding scene of the document scene is 3D scene, Mei Gesuo
State the corresponding 3d space of scene;Scene is obtained from the scene module, and creates the scene in the project.
Optionally, further includes:
Element module is used for stored visualisation element, and the visualized elements include 3D effect element;From the element mould
3D effect element is obtained in block, and is the model additive effect using the 3D effect element.
This specification embodiment use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
The present invention forms a cross-platform data visualization by cooperating between multiple modules with specific function
Change system realizes cross-platform data visualization content production and application, specifically, the system includes: model module, for mentioning
For the model of predetermined format;Chart module, for configuring the chart for meeting platform identity;Data module, for data to be arranged
Data format and data structure, so that the data are suitable for different platform;Communication module, for being assisted based on scheduled transport layer
View, makes to carry out two-way communication between the system and different platform;Wherein, it is asked by initiating model addition to the model module
It asks, receives the model that the model module returns, and initiate chart addition request to the chart module, receive the chart
The chart that module returns;And it is obtained from the data module by the communication module for visual data, to described
Data execute parsing operation, to be based on the model and chart, complete the visualization to data after the parsing.Based on this hair
Bright scheme can extend the range of visual content production and application, realize the operation of cross-platform lower data visualization.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be merely a part but not all of the embodiments of the present application.Based on this specification embodiment, this field
Those of ordinary skill's every other embodiment obtained without making creative work, all should belong to the application
The range of protection.
Existing data visualization is mainly shown by chart, and two-dimensional chart can be generated by some tools,
But existing data visualization tool and product are in the cross-platform visual content production of progress and in application, due to different platform
Drag and chart cannot achieve compatibility, and the data between different platform can not also accomplish consistency and realize that real-time Transmission is logical
Letter, therefore lead to the range for the being applicable in platform still very little of existing cross-platform data visualization system, it can not be truly
Realize cross-platform data visualization, and existing cross-platform data visually realizes that process is comparatively laborious, user experience
It is poor.Therefore it is based on problem of the existing technology, it is desirable to provide a kind of application range is wider, high cross-platform of user experience
Data visualisation system.
Fig. 1 is a kind of signal for the system overall architecture that the technical solution of this specification is related under practical application scene
Figure.The cross-platform data visualisation system of the application can support the production and application of the data visualization of different platform, this theory
Platform in bright book embodiment can refer to different operating system, different hardware equipment or operating system and hardware device
The platform being all different, such as: the mobile client of web client or installation on mobile terminals on mobile terminals is installed
End etc..Above-mentioned hardware device includes the electronic equipment for being mounted with intelligent operating system, such as smart phone, tablet computer, PC, intelligence
Big screen display device of energy etc.;The operating system include but is not limited to Syber OS, iOS, Android, Symbian,
The terminal operating systems such as Windows Mobile, Maemo, WebOS, Palm OS or Blackberry OS.
This specification embodiment can by the inclusion of the data of model module, chart module, data module and communication module
Depending on change system, the model of predetermined format can be provided for different platform, the precision for the model that corresponding different platform provides also not phase
Together, and for different platform configuration meet the chart of platform identity, and all charts under identical platform are encapsulated in this and are put down
In the corresponding chart library of platform;The data format and data structure of data are also further set, so that data are suitable for different platform,
And it is based on scheduled transport layer protocol, make to carry out two-way communication between system and different platform;In the actual operation process, pass through
Model addition request is initiated to model module, receives the model that model module returns, and initiate chart addition to chart module
Request receives the chart that chart module returns;And obtained from data module by communication module for visual data, it is right
Data execute parsing operation, to be based on model and chart, complete the visualization to data after parsing.It can be real by the application
Existing cross-platform data visualization production and application, extend the flat roof area using same set of visual content.
Based on above-mentioned scene, the scheme of this specification is described in detail below.
Fig. 2 is the structural schematic diagram of the cross-platform data visualisation system of one kind provided in an embodiment of the present invention.The system
200 specifically include that
Model module 201, for providing the model of predetermined format.
In this specification one or more embodiment, due to consideration that between different platform graphics engine rendering capability
Difference, therefore model format can be kept unitized by the default model with specific format, such as: it can be by the lattice of model
Formula is set as FBX format, or sets OBJ format etc. for the format of model;It in practical applications, can be by predetermined format
Model is placed in model library, and can preset one or more effects for each model.
It further, can be with the precision of preset model, i.e., each model in this specification one or more embodiment
It is correspondingly arranged a precision, the precision may include lower accuracy and degree of precision;In practical applications, lower accuracy and
The judgment criteria of degree of precision can be by the mean accuracy of computation model, using the mean accuracy of model as differentiation model accuracy
The standard of height, such as: the model that will be above algnment accuracy is considered as the model of degree of precision, will be less than the model view of algnment accuracy
For the model of lower accuracy.The model of different accuracy can be provided according to different platform, such as: it can be mentioned for web client
For the model of lower accuracy, the model of degree of precision can be provided for mobile client;Wherein, web client and
Mobile client can add the platform parameters in request by model to determine, it is peculiar that each platform corresponds to platform institute
Platform parameters, may determine that the type of current platform according to platform parameters.
According to this specification embodiment above-mentioned, provided by the default model with specific format and to different platform
The model of different accuracy, to ensure that the compatibility of different platform drag.
Further, in this specification one or more embodiment, model module be can be also used for: being executed and is divided to model
Group operation obtains multiple model groups, and configures property file corresponding with model group to each model group.
Specifically, can be grouped according to the independence of model, can also be grouped according to the other standards of model, i.e.,
Qualified model is classified as one group or one kind, the model of same group (or same class) can be classified as under same model file,
In practical applications, the specific operation process that model is grouped can be realized based on modeling software;Further, right
After the completion of model executes division operation, available multiple model groups, then each model group is retouched by property file
It states, to illustrate the meaning of the model group, a model file can correspond to a property file, i.e. property file can be with
All models in the model file are described.
Preferably, in this specification one or more embodiment, property file may include the name of model in model group
One of title, classification, model supports effect and administrative division are a variety of;The practical name of the entitled model
Claim, the customized classification for being classified as model, wherein title, classification, model supports effect and the administrative region of model
Divide etc., it is construed as the attribute of the model.
According to this specification embodiment above-mentioned, configured by being reasonably grouped to model, and for each model group
Property file corresponding with the model group, thus improve the reusability of model, it can be achieved that model recycling.
Chart module 202, for configuring the chart for meeting platform identity.
In this specification one or more embodiment, due to consideration that between different platform shape library otherness, lead to
It crosses and the chart being consistent with platform identity, and the chart that will be encapsulated in corresponding platform with the chart postponed is configured according to different platform
In library;Specifically, can be that different platform exploitation meets same requirements with different programming languages according to the same requirements of chart
Chart, wherein the same requirements of chart may include function having the same and pattern, therefore above-mentioned exploitation is flat in difference
It can be used with the chart of identical function and pattern since the operating system of different platform may be different between platform
The exploitation of chart is carried out for the language of different platform.With the chart under the different platform postponed in the side such as pattern, animation, data
Face is consistent, i.e., chart content is consistent in each platform.
Chart may be considered a kind of 2D visualized elements, and chart can have multiple types, and each chart can wrap again
Containing one or more patterns, when configuration meets the chart of same requirements, symbol can be configured according to the application scenarios of different industries
Close subtype and corresponding pattern that actual scene needs may be implemented quickly to create when carrying out chart creation in order to the later period
Build the chart suitable for specific industry.
Further, in this specification one or more embodiment, chart module is specifically used for: being matched according to different platform
The chart being adapted with the platform is set, and chart is encapsulated in chart corresponding with platform library;Chart different platform it
Between function having the same and pattern.After the chart for configuring each platform, by by the chart under different platform from bottom
It is packaged, forms chart corresponding with each platform library, and by the chart lab setting of each platform in background management system
In, background management system can open the chart library of each platform, therefore can be directly obtained respective platform institute right for different platform
The chart in chart library answered.
According to this specification embodiment above-mentioned, the chart of each platform identity is met by being pre-configured with, so that chart
Function still having the same and pattern between different platform, then the chart under each platform is encapsulated in opposite with respective platform
In the chart library answered, to ensure that the compatibility of chart under different platform.
Data module 203, for the data format and data structure of data to be arranged, so that the data are suitable for different put down
Platform.