Disclosure of Invention
In view of this, the present invention provides a cross-platform data visualization system to solve the problems of small scope of production and application of visualized content and poor user experience in the prior art.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
an embodiment of the present specification provides a cross-platform data visualization system, where the system includes:
a model module for providing a model in a predetermined format;
the chart module is used for configuring a chart conforming to the platform characteristics;
the data module is used for setting the data format and the data structure of the data so as to enable the data to be suitable for different platforms;
the communication module is used for enabling the system to carry out bidirectional communication with different platforms based on a predetermined transport layer protocol;
receiving a model returned by the model module by initiating a model adding request to the model module, and receiving a chart returned by the chart module by initiating a chart adding request to the chart module; and acquiring data for visualization from the data module through the communication module, and performing analysis operation on the data so as to complete visualization of the analyzed data based on the model and the chart.
Optionally, the models have different accuracies, the model module further to:
and performing grouping operation on the models to obtain a plurality of model groups, and configuring attribute files corresponding to the model groups for each model group.
Optionally, the property file includes one or more of a name, a classification, a model support effect, and an administrative region division of the models in the model group.
Optionally, the graph module is specifically configured to:
configuring a chart adaptive to the platform according to different platforms, and packaging the chart in a chart library corresponding to the platform; the chart has the same function and style between different platforms.
Optionally, the data is written in json format.
Optionally, the method further comprises: storing the data in a database of a system server.
Optionally, the transport layer protocol adopts a full duplex communication channel, and the transport layer protocol is a WebSocket communication protocol.
Optionally, the model adding request includes platform parameters corresponding to the platform, and the receiving the model returned by the model module includes:
and receiving a model returned by the model module, wherein the model is a model with a specific format and precision determined by the model module according to the platform parameters, and the model comprises a 3D graph.
Optionally, the method further comprises:
the system comprises a scene module, a scene module and a display module, wherein the scene module is used for storing scene files, the scene corresponding to the scene files is a 3D scene, and each scene corresponds to a 3D space; a scene is retrieved from the scene module and created in a project.
Optionally, the method further comprises:
an element module to store visualization elements, the visualization elements including 3D effect elements; and acquiring a 3D effect element from the element module, and adding an effect to the model by using the 3D effect element.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the invention combines a plurality of modules with specific functions to form a cross-platform data visualization system, and realizes the production and application of cross-platform data visualization contents, specifically, the system comprises: a model module for providing a model in a predetermined format; the chart module is used for configuring a chart conforming to the platform characteristics; the data module is used for setting the data format and the data structure of the data so as to enable the data to be suitable for different platforms; the communication module is used for enabling the system to carry out two-way communication with different platforms based on a predetermined transport layer protocol; receiving a model returned by the model module by initiating a model adding request to the model module, and receiving a chart returned by the chart module by initiating a chart adding request to the chart module; and acquiring data for visualization from the data module through the communication module, and performing analysis operation on the data so as to complete visualization of the analyzed data based on the model and the chart. Based on the scheme of the invention, the production and application range of the visualized content can be expanded, and the operation of cross-platform data visualization is realized.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
The existing data visualization is mainly displayed through charts, and two-dimensional charts can be generated through some tools, but when the existing data visualization tools and products are used for cross-platform visualization content production and application, because the models and charts under different platforms can not be compatible, the data between different platforms can not be consistent and real-time transmission communication can not be realized, the range of the applicable platforms of the existing cross-platform data visualization system is still very small, the cross-platform data visualization can not be realized in a real sense, the implementation process of the existing cross-platform data visualization is complex, and the user experience is poor. Therefore, based on the problems existing in the prior art, a cross-platform data visualization system with a wide application range and high user experience degree needs to be provided.
Fig. 1 is a schematic diagram of an overall architecture of a system related to the technical solution of the present specification in an actual application scenario. The cross-platform data visualization system can support the production and application of data visualization of different platforms, and the platforms in the embodiments of the present description may refer to platforms having different operating systems, different hardware devices, or different operating systems and hardware devices, for example: a web client installed on the mobile terminal or a mobile client installed on the mobile terminal, etc. The hardware equipment comprises electronic equipment provided with an intelligent operating system, such as a smart phone, a tablet computer, a PC (personal computer), intelligent large-screen display equipment and the like; the operating system includes, but is not limited to, a terminal operating system such as Syber OS, iOS, android, symbian, windows Mobile, maemo, webOS, palm OS or Blackberry OS.
In the embodiment of the specification, through a data visualization system comprising a model module, a chart module, a data module and a communication module, models in a preset format can be provided for different platforms, the accuracy of the models provided corresponding to the different platforms is different, charts which accord with the characteristics of the platforms are configured for the different platforms, and all charts under the same platform are packaged in a chart library corresponding to the platform; the data format and the data structure of the data are further set so that the data are suitable for different platforms, and the system and the different platforms are in bidirectional communication based on a preset transport layer protocol; in the actual operation process, a model adding request is sent to a model module, a model returned by the model module is received, a chart adding request is sent to a chart module, and a chart returned by the chart module is received; and acquiring data for visualization from the data module through the communication module, and performing analysis operation on the data so as to complete visualization of the analyzed data based on the model and the chart. Through the method and the device, cross-platform data visualization production and application can be realized, and the platform range of applying the same set of visualization content is expanded.
Based on the above-described scenarios, the following describes the embodiments of the present specification in detail.
Fig. 2 is a schematic structural diagram of a cross-platform data visualization system according to an embodiment of the present invention. The system 200 generally includes:
a model module 201 for providing a model in a predetermined format.
In one or more embodiments of the present specification, since it is considered that rendering capabilities of a graphic engine are different between different platforms, a model format may be unified by presetting a model having a specific format, for example: the format of the model can be set to FBX format, or the format of the model can be set to OBJ format, etc.; in actual practice, models in a predetermined format may be placed in a model library, and one or more effects may be preset for each model.
Further, in one or more embodiments of the present specification, the accuracy of the model may also be preset, that is, each model is set to have an accuracy, where the accuracy may include a lower accuracy and a higher accuracy; in practical applications, the judgment criteria of lower accuracy and higher accuracy may be obtained by calculating the average accuracy of the model, and using the average accuracy of the model as a criterion for distinguishing the accuracy of the model, for example: and regarding the model with higher standard precision as the model with higher precision, and regarding the model with lower standard precision as the model with lower precision. Models of different accuracy can be provided according to different platforms, for example: a lower-precision model can be provided for a web client, and a higher-precision model can be provided for a mobile client; the web client and the mobile client can be determined through platform parameters in the model adding request, each platform corresponds to the platform parameter specific to the platform, and the type of the current platform can be judged according to the platform parameters.
According to the embodiment of the specification, the model with a specific format is preset, and the models with different precisions are provided for different platforms, so that the compatibility of models under different platforms is ensured.
Further, in one or more embodiments of the present disclosure, the model module may further be configured to: and performing grouping operation on the models to obtain a plurality of model groups, and configuring an attribute file corresponding to each model group.
Specifically, the models can be grouped according to the independence of the models, or can be grouped according to other standards of the models, that is, the models meeting the conditions are classified into one group or one class, the models in the same group (or the same class) can be classified into the same model file, and in practical application, the specific operation process of grouping the models can be realized based on modeling software; furthermore, after the grouping operation of the models is completed, a plurality of model groups can be obtained, and then each model group is described through the attribute file, so that the meaning of the model group is described, one model file can correspond to one attribute file, that is, one attribute file can describe all the models in the model file.
Preferably, in one or more embodiments of the present specification, the property file may include one or more of a name, a classification, a model support effect, and an administrative region division of the models in the model group; the name is the actual name of the model, and the classification is the self-defined classification of the model, wherein the name, the classification, the model support effect, the administrative region classification and the like of the model can be regarded as the attributes of the model.
According to the embodiment of the specification, the models are reasonably grouped, and the attribute file corresponding to each model group is configured for each model group, so that the reusability of the models is improved, and the models can be reused.
A charting module 202 for configuring a chart that conforms to the platform characteristics.
In one or more embodiments of the present specification, since differences of the graph libraries between different platforms are considered, the graphs corresponding to the platform characteristics are configured according to different platforms, and the configured graphs are packaged in the graph library of the corresponding platform; specifically, the charts meeting the same requirements can be developed for different platforms by using different programming languages according to the same requirements of the charts, wherein the same requirements of the charts can include the same functions and patterns, so that the charts having the same functions and patterns between different platforms are developed, and because the operating systems of different platforms may be different, the charts can be developed by using languages for different platforms. The configured charts under different platforms are consistent in style, animation, data and the like, namely the chart contents are consistent in each platform.
The chart can be regarded as a 2D visualization element, the chart can be of multiple types, each chart can contain one or more types, and when the chart meeting the same requirement is configured, the chart type meeting the actual scene requirement and the corresponding type can be configured according to application scenes of different industries, so that the chart suitable for a specific industry can be rapidly created when the chart is created in the later stage.
Further, in one or more embodiments of the present description, the graph module is specifically configured to: configuring a chart adaptive to the platform according to different platforms, and packaging the chart in a chart library corresponding to the platform; charts have the same function and style between different platforms. After the charts of each platform are configured, the charts under different platforms are packaged from the bottom layer to form chart libraries corresponding to each platform, the chart libraries of each platform are arranged in the background management system, and the background management system can open the chart libraries of each platform, so that different platforms can directly acquire the charts in the chart libraries corresponding to the respective platforms.
According to the embodiment of the specification, the chart conforming to the characteristics of each platform is configured in advance, so that the chart still has the same function and style among different platforms, and the charts under each platform are packaged in the chart libraries corresponding to the respective platform, so that the compatibility of the charts under different platforms is ensured.
And the data module 203 is used for setting the data format and the data structure of the data so that the data are suitable for different platforms.