CN108062339B - Processing method and device of visual chart - Google Patents

Processing method and device of visual chart Download PDF

Info

Publication number
CN108062339B
CN108062339B CN201610987292.1A CN201610987292A CN108062339B CN 108062339 B CN108062339 B CN 108062339B CN 201610987292 A CN201610987292 A CN 201610987292A CN 108062339 B CN108062339 B CN 108062339B
Authority
CN
China
Prior art keywords
configuration
chart
configuration information
general
information
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.)
Active
Application number
CN201610987292.1A
Other languages
Chinese (zh)
Other versions
CN108062339A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201610987292.1A priority Critical patent/CN108062339B/en
Publication of CN108062339A publication Critical patent/CN108062339A/en
Application granted granted Critical
Publication of CN108062339B publication Critical patent/CN108062339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Generation (AREA)

Abstract

The application discloses a method and a device for processing a visual chart. The method comprises the following steps: acquiring configuration information of a visual chart on a display interface; determining a corresponding first configuration converter according to configuration information of the visual chart, wherein the first configuration converter is used for converting the configuration information of the visual chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visual charts, and processing of different visual charts is supported on the general configuration interfaces; converting the configuration information of the visual chart into general configuration information through a first configuration converter; rendering a configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and displaying the universal configuration interface. By the method and the device, the problem that diagram configuration for a single diagram library in the related art does not have universality is solved.

Description

Processing method and device of visual chart
Technical Field
The application relates to the technical field of website development, in particular to a method and a device for processing a visual chart.
Background
A large number of charts are used in a data visualization type website, and the charts are usually drawn through a third-party chart library. In the general website development process, only one chart library is often selected, however, due to special requirements on some services, advanced users may draw charts by using different chart libraries to obtain more friendly visual experience. However, the configuration of chart styles may only be suitable for one chart library, and when the user selects another chart library, the configuration fails, and another set of personalized configuration options needs to be additionally developed to meet the configuration requirements of the specific chart library. This can lead to a dramatic increase in the amount of code during development and increased difficulty in later code maintenance. If a group of general chart configurations can be constructed and applied to different chart libraries, the development workload of the chart configurations is reduced, and the personalized requirements of users can be met. For example, the Baidu Diagram provides a set of data visualization schemes, in the system, various different charts can be freely selected, chart data can be freely edited, and a universal configuration interface corresponding to a visualized chart is provided to modify various styles in the charts. The Baidu graph explaining system is completely based on an echarts chart library issued by Baidu, and configuration items are completely designed for echarts, so that the Baidu graph explaining system only uses one chart library and can meet the requirements of common users. However, other chart libraries cannot be selected autonomously for advanced users, and the current configuration items are only suitable for echarts libraries and cannot be used for other chart libraries.
Aiming at the problem that the chart configuration aiming at a single chart library in the related technology has no universality, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for processing a visual chart, so as to solve the problem that chart configuration for a single chart library in the related art does not have generality.
In order to achieve the above object, according to one aspect of the present application, there is provided a processing method of a visualization chart. The method comprises the following steps: acquiring configuration information of a visual chart on a display interface; determining a corresponding first configuration converter according to configuration information of the visual chart, wherein the first configuration converter is used for converting the configuration information of the visual chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visual charts, and processing of different visual charts is supported on the general configuration interfaces; converting the configuration information of the visual chart into general configuration information through a first configuration converter; rendering a configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and displaying the universal configuration interface.
Further, converting, by the first configuration converter, the configuration information of the visualization chart into the general configuration information includes: determining key values of all configuration items in a pre-created general template; traversing key values of all configuration items in a pre-created general template to be matched with key values of all configuration items in configuration information of a visual chart; assigning field information of configuration items in the matched configuration information of the visual chart to the configuration items in the corresponding pre-established universal template; and using the assigned general template as general configuration information corresponding to the configuration information of the visual chart.
Further, after the displaying the common configuration interface, the method further includes: receiving a modification instruction, wherein the modification instruction is used for indicating modification on the general configuration interface; modifying on the general configuration interface according to the modification instruction; and saving the modified generic configuration.
Further, after saving the modified generic configuration, the method further comprises: acquiring a second configuration converter corresponding to the modified general configuration from a preset configuration converter library; converting the modified general configuration into configuration information of a target visualization chart through a second configuration converter; and rendering according to the configuration information of the target visualization chart to generate the target visualization chart.
Further, the configuration information of the visualization chart includes style information of the visualization chart and data information of the visualization chart, and determining the corresponding first configuration converter according to the configuration information of the visualization chart includes: determining a chart library corresponding to the configuration information of the visual chart according to the style information of the visual chart and the data information of the visual chart; and acquiring a first configuration converter corresponding to the chart library from a preset configuration converter library.
In order to achieve the above object, according to another aspect of the present application, there is provided a processing apparatus for visualizing a chart. The device includes: the first acquisition unit is used for acquiring configuration information of a visual chart on a display interface; the determining unit is used for determining a corresponding first configuration converter according to the configuration information of the visual chart, wherein the first configuration converter is used for converting the configuration information of the visual chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visual charts, and processing of different visual charts is supported on the general configuration interfaces; the first conversion unit is used for converting the configuration information of the visual chart into general configuration information through the first configuration converter; the first generation unit is used for rendering the configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and the display unit is used for displaying the universal configuration interface.
Further, the first conversion unit includes: the first determining module is used for determining key values of all configuration items in a pre-created general template; the matching module is used for traversing key values of all configuration items in a pre-created general template to match with key values of all configuration items in configuration information of the visual chart; the assignment module is used for assigning the field information of the configuration items in the matched configuration information of the visual chart to the configuration items in the corresponding pre-established universal template; and the second determining module is used for taking the assigned general template as general configuration information corresponding to the configuration information of the visual chart.
Further, the apparatus further comprises: the system comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is used for receiving a modification instruction, and the modification instruction is used for indicating modification on a general configuration interface after the general configuration interface is displayed; the modification unit is used for modifying on the general configuration interface according to the modification instruction; and a saving unit for saving the modified general configuration.
Further, the apparatus further comprises: the second acquisition unit is used for acquiring a second configuration converter corresponding to the modified general configuration from the preset configuration converter library; the second conversion unit is used for converting the modified general configuration into the configuration information of the target visual chart through a second configuration converter; and the second generation unit is used for rendering and generating the target visualization chart according to the configuration information of the target visualization chart.
Further, the configuration information of the visualization chart includes style information of the visualization chart and data information of the visualization chart, and the determining unit includes: the third determining module is used for determining a chart library corresponding to the configuration information of the visual chart according to the style information of the visual chart and the data information of the visual chart; and the acquisition module is used for acquiring the first configuration converter corresponding to the chart library from the preset configuration converter library.
Through the application, the following steps are adopted: acquiring configuration information of a visual chart on a display interface; determining a corresponding first configuration converter according to configuration information of the visual chart, wherein the first configuration converter is used for converting the configuration information of the visual chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visual charts, and processing of different visual charts is supported on the general configuration interfaces; converting the configuration information of the visual chart into general configuration information through a first configuration converter; rendering a configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and a universal configuration interface is displayed, so that the problem that the diagram configuration aiming at a single diagram library in the related technology has no universality is solved. And the chart configuration has universality and can be applied to a plurality of chart libraries, so that the effect of improving the user experience is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of processing a visualization chart provided according to an embodiment of the present application; and
fig. 2 is a schematic diagram of a processing device for visualizing charts provided according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
rendering, Render in english, is also referred to as shading, but Shade is generally referred to as shading and Render is referred to as rendering. Because the two terms Render and Shade are two distinct concepts in three-dimensional software, they are functionally similar but different. Shade is a display scheme that typically appears in the main window of three-dimensional software and functions as an auxiliary viewing model as a wire-frame diagram of a three-dimensional model. It is clear that the shading model is easier for us to understand the structure of the model than the wire-frame model, but it is simply a display, and it is called shading in digital images. In advanced three-dimensional software like Maya, it is also possible to use Shade to display simple lighting effects, shading effects and surface texture effects, but of course, high quality shading effects are supported by specialized three-dimensional graphics display cards that speed up and optimize the display of three-dimensional graphics. However, no matter how optimized, it cannot change the displayed three-dimensional graphics into high-quality images, because Shade uses a real-time display technology, and the speed of hardware limits it cannot reflect ray tracing effects such as reflection and refraction in the scene in real time. In real-world work, the model or scene is often output as an image file, a video signal or a motion picture film, and the model or scene must be subjected to a Render program. Rendering is the last process of CG and is the stage of finally fitting your image to your 3D scene. There are various kinds of software for rendering, such as: each CG software has its own rendering engine, also such as RenderMan. Building design, animation production and the like, after models and animation frames are produced by using software such as 3DSMAX and MAYA, the designed content is made into a final effect graph or animation by using the software itself or auxiliary software (such as lightscape, vray and the like).
Visual configuration: through an interactive configuration interface, the styles of charts in the website, such as graphs, pie charts and the like, are freely configured, so that a user who does not know the technology can modify the styles without editing codes.
General configuration: the configuration items in the general configuration interface corresponding to the visual chart are general configurations of a certain type of chart, and are not related to the type library of a third party used for generating the chart in the code.
According to an embodiment of the application, a method for processing a visual chart is provided.
Fig. 1 is a flowchart of a processing method of a visualization chart according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
and step S101, acquiring configuration information of the visual chart on the display interface.
The visual chart is displayed on the display interface. Because there is a need for a user to edit the visual chart, each visual chart itself has a set of configuration items in which style information, data information and other information of the visual chart itself are recorded, and the configuration is a configuration for a chart library in use and cannot be directly applied to a general configuration. This may result in the user not being able to manipulate the visual chart. In order to solve the technical problem, firstly, configuration information of a visual chart on a display interface is obtained. Specifically, the configuration information records style information, data information, and the like of the visualization chart itself. The method for acquiring the configuration information of the visual chart on the display interface has various technical means, for example, a crawler technology may be adopted to crawl the configuration information of the visual chart on the display interface, and the like, and is not particularly limited in the present application.
Step S102, determining a corresponding first configuration converter according to configuration information of the visualization chart, wherein the first configuration converter is used for converting the configuration information of the visualization chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visualization charts, and processing of different visualization charts is supported on the general configuration interfaces.
In order to enable any user to operate and process the visual chart, in the application, the personalized configuration of the visual chart is converted into the general configuration, and processing of different visual charts is supported on the general configuration interface. In particular, since the configuration of each chart library is personalized, the converter is also different.
Optionally, in the processing method of a visualization chart provided in the embodiment of the present application, the configuration information of the visualization chart includes style information of the visualization chart and data information of the visualization chart, and determining the corresponding first configuration converter according to the configuration information of the visualization chart further includes: acquiring a second configuration converter corresponding to the modified general configuration from a preset configuration converter library; converting the modified general configuration into configuration information of a target visualization chart through a second configuration converter; and rendering according to the configuration information of the target visualization chart to generate the target visualization chart.
Because each visual chart has a set of configuration items, the configuration items record style information, data information and other information of the visual chart, and the configuration is specific to the configuration of the chart library in use and cannot be directly applied to general configurations. Therefore, a chart library corresponding to the configuration information of the visual chart is determined according to the style information of the visual chart and the data information of the visual chart, and then a first configuration converter corresponding to the chart library is obtained from a preset configuration converter library.
Step S103, converting the configuration information of the visual chart into general configuration information through a first configuration converter.
And converting the configuration information of the visual chart into general configuration information through the acquired first configuration converter, so that the configuration of the chart library in use is converted into the general configuration.
Optionally, in the processing method of the visual chart provided in the embodiment of the present application, converting the configuration information of the visual chart into the general configuration information by the first configuration converter includes: determining key values of all configuration items in a pre-created general template; traversing key values of all configuration items in a pre-created general template to be matched with key values of all configuration items in configuration information of a visual chart; assigning field information of configuration items in the matched configuration information of the visual chart to the configuration items in the corresponding pre-established universal template; and using the assigned general template as general configuration information corresponding to the configuration information of the visual chart.
Specifically, a mapping relationship exists between the personalized configuration and the general configuration, the mapping relationship is matched through key values of the configuration items, the corresponding configuration items in the personalized configuration are found through traversing the key values of all the configurations in the general configuration, and then the values of the personalized configuration are assigned to the corresponding general configuration items, so that the conversion of the configuration is realized.
And step S104, rendering the configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface.
After the configuration information is obtained, the system renders the configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface. And on the general configuration interface, the configuration information of the visual chart is visually displayed.
And step S105, displaying the general configuration interface.
And displaying the rendered general configuration interface for visual adjustment of a user.
Optionally, in the processing method of a visualization chart provided in the embodiment of the present application, after the displaying of the general configuration interface, the method further includes: receiving a modification instruction, wherein the modification instruction is used for indicating modification on the general configuration interface; modifying on the general configuration interface according to the modification instruction; and saving the modified generic configuration.
When the user performs visual adjustment, the system receives a modification instruction for indicating modification on the general configuration interface, modifies the general configuration interface according to the modification instruction, and stores the modified general configuration.
Optionally, in the processing method of a visualization chart provided in the embodiment of the present application, after saving the modified general configuration, the method further includes: acquiring a second configuration converter corresponding to the modified general configuration from a preset configuration converter library; converting the modified general configuration into configuration information of a target visualization chart through a second configuration converter; and rendering according to the configuration information of the target visualization chart to generate the target visualization chart.
After the system modifies the universal interface, in order to display the modified visual chart, a second configuration converter corresponding to the modified universal configuration needs to be acquired from a preset configuration converter library; converting the modified general configuration into configuration information of a target visualization chart through a second configuration converter; and then, rendering according to the configuration information of the target visualization chart to generate the target visualization chart.
The configuration information of the visual chart comprises style information of the visual chart and data information of the visual chart, and the determining of the corresponding first configuration converter according to the configuration information of the visual chart comprises the following steps: determining a chart library corresponding to the configuration information of the visual chart according to the style information of the visual chart and the data information of the visual chart; and acquiring a first configuration converter corresponding to the chart library from a preset configuration converter library.
In order to determine a chart library corresponding to the configuration information of the visual chart, style information of the visual chart and data information of the visual chart are obtained, the chart library corresponding to the configuration information of the visual chart is determined according to the style information of the visual chart and the data information of the visual chart, and then a first configuration converter corresponding to the chart library is obtained from a preset configuration converter library. Thereby determining a first configuration converter that can convert the chart configuration of the visualization chart into a common configuration.
According to the processing method of the visual chart, the configuration information of the visual chart on the display interface is obtained; determining a corresponding first configuration converter according to configuration information of the visual chart, wherein the first configuration converter is used for converting the configuration information of the visual chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visual charts, and processing of different visual charts is supported on the general configuration interfaces; converting the configuration information of the visual chart into general configuration information through a first configuration converter; rendering a configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and a universal configuration interface is displayed, so that the problem that the diagram configuration aiming at a single diagram library in the related technology has no universality is solved. And the chart configuration has universality and can be applied to a plurality of chart libraries, so that the effect of improving the user experience is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a processing apparatus for a visualized chart, and it should be noted that the processing apparatus for a visualized chart according to the embodiment of the present application may be used to execute the processing method for a visualized chart provided in the embodiment of the present application. The following describes a processing apparatus for a visual chart provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of a processing device for visualizing charts according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: a first acquisition unit 10, a determination unit 20, a conversion unit 30, a first generation unit 40 and a presentation unit 50.
Specifically, the first obtaining unit 10 is configured to obtain configuration information of a visualization chart on a display interface.
The determining unit 20 is configured to determine a corresponding first configuration converter according to the configuration information of the visualization chart, where the first configuration converter is configured to convert the configuration information of the visualization chart into general configuration information, and the general configuration information supports rendering of a corresponding general configuration interface for different visualization charts and supports processing of different visualization charts on the general configuration interface.
A first conversion unit 30, configured to convert the configuration information of the visualization chart into general configuration information through a first configuration converter.
The first generating unit 40 is configured to render the configuration interface corresponding to the visualization chart according to the general configuration information, so as to generate a general configuration interface.
And the display unit 50 is used for displaying the universal configuration interface.
According to the processing device for the visual chart, the configuration information of the visual chart on the display interface is acquired through the first acquisition unit 10; the determining unit 20 determines a corresponding first configuration converter according to the configuration information of the visualization chart, where the first configuration converter is configured to convert the configuration information of the visualization chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visualization charts, and supports processing of different visualization charts on the general configuration interfaces; the first conversion unit 30 converts the configuration information of the visualization chart into general configuration information through a first configuration converter; the first generating unit 40 renders the configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and the display unit 50 displays a general configuration interface, which solves the problem that the diagram configuration for a single diagram library in the related art has no generality. And the chart configuration has universality and can be applied to a plurality of chart libraries, so that the effect of improving the user experience is achieved.
Optionally, in the processing apparatus for visualizing a chart provided in the embodiment of the present application, the first conversion unit 30 includes: the first determining module is used for determining key values of all configuration items in a pre-created general template; the matching module is used for traversing key values of all configuration items in a pre-created general template to match with key values of all configuration items in configuration information of the visual chart; the assignment module is used for assigning the field information of the configuration items in the matched configuration information of the visual chart to the configuration items in the corresponding pre-established universal template; and the second determining module is used for taking the assigned general template as general configuration information corresponding to the configuration information of the visual chart.
Optionally, in the processing apparatus for visualizing a chart provided in an embodiment of the present application, the apparatus further includes: the system comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is used for receiving a modification instruction, and the modification instruction is used for indicating modification on a general configuration interface after the general configuration interface is displayed; the modification unit is used for modifying on the general configuration interface according to the modification instruction; and a saving unit for saving the modified general configuration.
Optionally, in the processing apparatus for visualizing a chart provided in an embodiment of the present application, the apparatus further includes: the second obtaining unit is used for obtaining a second configuration converter corresponding to the modified general configuration from the preset configuration converter library after the modified general configuration is stored; the second conversion unit is used for converting the modified general configuration into the configuration information of the target visual chart through a second configuration converter; and the second generation unit is used for rendering and generating the target visualization chart according to the configuration information of the target visualization chart.
Optionally, in the processing apparatus for a visualized chart provided in the embodiment of the present application, the configuration information of the visualized chart includes style information of the visualized chart and data information of the visualized chart, and the determining unit 20 includes: the third determining module is used for determining a chart library corresponding to the configuration information of the visual chart according to the style information of the visual chart and the data information of the visual chart; and the acquisition module is used for acquiring the first configuration converter corresponding to the chart library from the preset configuration converter library.
The processing device of the visual chart comprises a processor and a memory, wherein the first acquiring unit 10, the determining unit 20, the converting unit 30, the first generating unit 40, the displaying unit 50 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The preset configuration may be stored in the memory.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the visual chart is processed by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides an embodiment of a computer program product, which, when being executed on a data processing device, is adapted to carry out program code for initializing the following method steps: acquiring configuration information of a visual chart on a display interface; determining a corresponding first configuration converter according to configuration information of the visual chart, wherein the first configuration converter is used for converting the configuration information of the visual chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visual charts, and processing of different visual charts is supported on the general configuration interfaces; converting the configuration information of the visual chart into general configuration information through a first configuration converter; rendering a configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and a universal configuration interface is displayed, so that the problem that the diagram configuration aiming at a single diagram library in the related technology has no universality is solved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (6)

1. A method for processing a visual chart, comprising:
acquiring configuration information of a visual chart on a display interface;
determining a corresponding first configuration converter according to the configuration information of the visualization chart, wherein the first configuration converter is used for converting the configuration information of the visualization chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visualization charts, and processing of different visualization charts is supported on the general configuration interfaces;
converting, by the first configuration converter, configuration information of the visualization chart into general configuration information;
rendering a configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and
displaying the universal configuration interface;
wherein converting, by the first configuration converter, the configuration information of the visualization chart into the general configuration information comprises:
determining key values of all configuration items in a pre-created general template;
traversing key values of all configuration items in the pre-created general template to be matched with key values of all configuration items in the configuration information of the visual chart;
assigning field information of configuration items in the matched configuration information of the visual chart to the corresponding configuration items in the pre-created universal template; and
taking the assigned general template as general configuration information corresponding to the configuration information of the visual chart;
wherein after presenting the generic configuration interface, the method further comprises:
receiving a modification instruction, wherein the modification instruction is used for indicating modification on the general configuration interface;
modifying on the general configuration interface according to the modification instruction; and
the modified generic configuration is saved.
2. The method of claim 1, wherein after saving the modified generic configuration, the method further comprises:
acquiring a second configuration converter corresponding to the modified general configuration from a preset configuration converter library;
converting, by the second configuration converter, the modified generic configuration into configuration information for a target visualization chart; and
and rendering according to the configuration information of the target visualization chart to generate the target visualization chart.
3. The method of claim 1, wherein the configuration information of the visualization chart comprises style information of the visualization chart and data information of the visualization chart, and determining a corresponding first configuration converter according to the configuration information of the visualization chart comprises:
determining a chart library corresponding to the configuration information of the visual chart according to the style information of the visual chart and the data information of the visual chart; and
and acquiring a first configuration converter corresponding to the chart library from a preset configuration converter library.
4. A processing apparatus for visualizing charts, comprising:
the first acquisition unit is used for acquiring configuration information of a visual chart on a display interface;
the determining unit is configured to determine a corresponding first configuration converter according to the configuration information of the visualization chart, where the first configuration converter is configured to convert the configuration information of the visualization chart into general configuration information, the general configuration information supports rendering of corresponding general configuration interfaces for different visualization charts, and the general configuration interfaces support processing of different visualization charts;
the first conversion unit is used for converting the configuration information of the visual chart into general configuration information through the first configuration converter;
the first generating unit is used for rendering the configuration interface corresponding to the visual chart according to the general configuration information to generate a general configuration interface; and
the display unit is used for displaying the universal configuration interface;
wherein the first conversion unit includes:
the first determining module is used for determining key values of all configuration items in a pre-created general template;
the matching module is used for traversing key values of all configuration items in the pre-created universal template to match with key values of all configuration items in the configuration information of the visual chart;
the assignment module is used for assigning the field information of the configuration items in the matched configuration information of the visual chart to the corresponding configuration items in the pre-created universal template; and
the second determining module is used for taking the assigned general template as general configuration information corresponding to the configuration information of the visual chart;
wherein the apparatus further comprises:
the system comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving a modification instruction, and after the general configuration interface is displayed, the modification instruction is used for indicating modification on the general configuration interface;
the modification unit is used for modifying on the general configuration interface according to the modification instruction; and
and the storage unit is used for storing the modified general configuration.
5. The apparatus of claim 4, further comprising:
a second obtaining unit, configured to obtain, from a preset configuration converter library, a second configuration converter corresponding to the modified general configuration;
the second conversion unit is used for converting the modified general configuration into the configuration information of the target visual chart through the second configuration converter; and
and the second generation unit is used for rendering and generating the target visualization chart according to the configuration information of the target visualization chart.
6. The apparatus according to claim 4, wherein the configuration information of the visualization chart includes style information of the visualization chart and data information of the visualization chart, and the determining unit includes:
the third determining module is used for determining a chart library corresponding to the configuration information of the visual chart according to the style information of the visual chart and the data information of the visual chart; and
and the acquisition module is used for acquiring the first configuration converter corresponding to the chart library from a preset configuration converter library.
CN201610987292.1A 2016-11-09 2016-11-09 Processing method and device of visual chart Active CN108062339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610987292.1A CN108062339B (en) 2016-11-09 2016-11-09 Processing method and device of visual chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610987292.1A CN108062339B (en) 2016-11-09 2016-11-09 Processing method and device of visual chart

Publications (2)

Publication Number Publication Date
CN108062339A CN108062339A (en) 2018-05-22
CN108062339B true CN108062339B (en) 2020-09-15

Family

ID=62137543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610987292.1A Active CN108062339B (en) 2016-11-09 2016-11-09 Processing method and device of visual chart

Country Status (1)

Country Link
CN (1) CN108062339B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656665A (en) * 2018-12-20 2019-04-19 成都四方伟业软件股份有限公司 A kind of visual presentation method of data, component and readable storage medium storing program for executing
CN111722895B (en) * 2019-03-21 2024-01-12 成都数天下科技有限公司 SPC chart rendering method in Power BI component
CN113407281B (en) * 2021-06-23 2022-11-11 重庆卡歌科技有限公司 Dynamic visual three-dimensional display method for new land and sea channel service based on data application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365659A (en) * 2013-07-10 2013-10-23 福建富士通信息软件有限公司 Method for realizing dynamic interface allocation
CN104978384A (en) * 2014-04-09 2015-10-14 香港城市大学 Cross Model Datum Access With Semantic Preservation For Universal Database
CN105630504A (en) * 2015-12-28 2016-06-01 武汉噢易云计算股份有限公司 Extjs based multi-form application code reusing method and system
WO2016133534A1 (en) * 2015-02-20 2016-08-25 Hewlett-Packard Development Company, L.P. An automatically invoked unified visualization interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365659A (en) * 2013-07-10 2013-10-23 福建富士通信息软件有限公司 Method for realizing dynamic interface allocation
CN104978384A (en) * 2014-04-09 2015-10-14 香港城市大学 Cross Model Datum Access With Semantic Preservation For Universal Database
WO2016133534A1 (en) * 2015-02-20 2016-08-25 Hewlett-Packard Development Company, L.P. An automatically invoked unified visualization interface
CN105630504A (en) * 2015-12-28 2016-06-01 武汉噢易云计算股份有限公司 Extjs based multi-form application code reusing method and system

Also Published As

Publication number Publication date
CN108062339A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108010112B (en) Animation processing method, device and storage medium
EP4198909A1 (en) Image rendering method and apparatus, and computer device and storage medium
KR20210119438A (en) Systems and methods for face reproduction
CN110402425B (en) Mixed reality system with color virtual content distortion and method for generating virtual content using the same
WO2020108610A1 (en) Image processing method, apparatus, computer readable medium and electronic device
CN101414383B (en) Image processing apparatus and image processing method
CN109961496B (en) Expression driving method and expression driving device
US20120280991A1 (en) Employing mesh files to animate transitions in client applications
CN106447756B (en) Method and system for generating user-customized computer-generated animations
CN108062339B (en) Processing method and device of visual chart
CN111161392A (en) Video generation method and device and computer system
AU2019200269B2 (en) An interactive user interface and its corresponding engine for improving image completion quality
CN112652046A (en) Game picture generation method, device, equipment and storage medium
WO2023179091A1 (en) Three-dimensional model rendering method and apparatus, and device, storage medium and program product
CN111652791A (en) Face replacement display method, face replacement display device, live broadcast method, live broadcast device, electronic equipment and storage medium
CN112291550A (en) Free viewpoint image generation method, device and system and readable storage medium
KR20160016812A (en) Image edits propagation to underlying video sequence via dense motion fields
US20140198177A1 (en) Realtime photo retouching of live video
KR102482874B1 (en) Apparatus and Method of rendering
KR101155564B1 (en) System for cooperative digital image production
JP7476511B2 (en) Image processing system, image processing method and program
CN113012031A (en) Image processing method and image processing apparatus
CN111179390A (en) Method and device for efficiently previewing CG assets
US9230508B2 (en) Efficient feedback-based illumination and scatter culling
CN106846498B (en) Laser point cloud rendering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant