Visual chart development method and device, electronic equipment and medium

Through the pre-built configuration library and the configuration item list described in natural language, the versatility and efficiency of chart development are achieved, which solves the problem in the existing technology that developers need to be familiar with multiple visualization tools and frequent updates, and improves development efficiency. and ease of use.

CN118778946APending Publication Date: 2024-10-15BUBI (BEIJING) NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410891568.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing visualization tools or chart libraries have a high technical threshold for the development of chart visualization presentation, requiring developers to be familiar with specific tools or libraries and constantly updating them, resulting in a prolonged development cycle and difficulty in meeting the needs of efficient development, especially for non-experienced users. There is a lack of general and easy-to-use development tools for developers with less personnel or experience.

Method used

Provides a visual chart development method that obtains and displays a list of configuration items through a pre-built configuration library. The user generates target configuration content based on the configuration item index information and setting instructions described in natural language, and calls the chart framework for rendering, which reduces the need for charts. The specific implementation dependencies of the framework adapt to updates of different versions.

Benefits of technology

It lowers the technical threshold for visual chart development, improves development efficiency, and enables non-experienced personnel to easily develop charts without spending a lot of time understanding the relevant content of the chart framework. It is suitable for all types of front-end developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778946A_ABST
    Figure CN118778946A_ABST
Patent Text Reader

Abstract

The invention relates to a visual chart development method and device, electronic equipment and a medium. The visual chart development method comprises the steps that a target container used for chart presentation is created or selected; obtaining a target configuration item list from a configuration item list of a pre-constructed configuration library, and displaying the target configuration item list in a development interface; generating target configuration content required by the user according to interaction information of the user and the target configuration item list; and taking the target configuration content as an incoming parameter, calling the target chart framework to perform rendering in the target container based on the incoming parameter and the chart data source, and obtaining a presented visual chart. The configuration item list is obtained by redefining predefined configuration items corresponding to each chart framework according to a unified specification and comprises configuration items and corresponding description information; the description information is explanatory information which is expressed on the basis of a natural language and aims at the configuration item, and comprises configuration item index information and setting description. According to the method, the technical threshold of visual chart development is reduced, and meanwhile, the development efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of front-end technology, and in particular to a method, device, electronic device and medium for developing a visualization chart. Background Art

[0002] With the development of front-end technology, meeting users' needs for data analysis and utilization has become a key point in front-end development. In order to present data intuitively, it can be visualized on the front-end in the form of graphs, tables, etc. Currently, there are various chart frameworks on the market (such as various chart visualization tools or chart libraries) to facilitate front-end developers to use and visualize data on the front-end page. Such as: D3.js (D3.js is a popular JavaScript (JavaScript is a scripting language) data visualization library that provides many powerful visualization components and tools that can be used to create complex interactive data visualization effects), EChart (EChart is an open source visualization library implemented in JavaScript that can generate high-quality charts and maps in the browser), Highcharts (is a pure JavaScript-based chart library that supports multiple chart types and can be used on multiple platforms), Plotly.js (is a WebGL-based chart library that can create interactive, shareable charts and maps, and can render high-performance interactive 3D and 2D graphics in any compatible web browser without the use of plug-ins), ApexCharts (is a responsive SVG chart library that can create interactive and dynamic charts), Vis.js (is a flexible, customizable, browser-based data visualization library that includes time series, network diagrams, relationship diagrams, etc.), Three.js (is a JavaScript library and application program interface for creating and displaying 3D graphics on web pages) and other chart visualization tools or chart libraries.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following technical problems in the related technology: At present, when developing chart visualization presentation based on various existing visualization tools or chart libraries, developers need to be familiar with the corresponding visualization tools or chart libraries and accumulate more experience. The technical threshold is high, and continuous learning is required according to the update and iteration of the visualization tools or chart libraries, which consumes a lot of time and leads to an extension of the development cycle, making it difficult to meet the needs of high-efficiency development. Therefore, the related technology lacks a general visualization chart development tool or method for inexperienced or less experienced developers that can improve development efficiency. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a method, device, electronic device and medium for developing a visualization chart.

[0005] In the first aspect, an embodiment of the present disclosure provides a method for developing a visual chart. The above development method includes: creating or selecting a target container for presenting a chart; obtaining a target configuration item list from a configuration item list of a pre-built configuration library and displaying it on a development interface; generating target configuration content required by the user based on the interaction information between the user and the above target configuration item list; using the above target configuration content as an incoming parameter, calling a target chart framework to render in the above target container based on the above incoming parameters and the chart data source, and obtaining a presented visual chart. Among them, the above configuration item list is obtained by redefining the predefined configuration items corresponding to each chart framework according to a unified specification, and the above configuration item list contains configuration items and corresponding description information; the above description information is explanatory information for the configuration items based on natural language expressions, and the above explanatory information contains configuration item index information and setting instructions.

[0006] In some embodiments, the configuration library includes a configuration item list corresponding to at least one chart framework; there is a mapping relationship between the configuration items in the configuration item list and the predefined configuration items in the corresponding chart framework. According to the interaction information between the user and the target configuration item list, the target configuration content required by the user is generated, including: receiving the target configuration item selected by the user in the configuration item list based on the description information; obtaining the user's setting information for the target configuration item, the setting information includes at least one of the following: custom value setting information, default value setting information; according to the mapping relationship, automatically converting the target configuration item into a target predefined configuration item corresponding to the target chart framework; generating the target configuration content according to the setting information and the target predefined configuration item.

[0007] In some embodiments, a target chart framework is called to perform rendering in the target container based on the input parameters and the chart data source to obtain a presented visual chart, including: identifying the input parameters based on the target chart framework to obtain target predefined configuration items and setting information; and the target chart framework performs chart instantiation processing in the target container according to the target predefined configuration items, the setting information and the chart data source to obtain a rendered visual chart.

[0008] In some embodiments, the configuration library includes: a correspondence between a chart framework and a configuration item list. Wherein, obtaining a target configuration item list from a configuration item list of a pre-built configuration library includes: obtaining a target configuration item list corresponding to a target chart framework based on the correspondence between the chart framework and the configuration item list.

[0009] In some embodiments, the development method further includes: loading a rendering packaging tool, the rendering packaging tool includes the pre-built configuration library, and the rendering packaging tool has a calling interface for docking to the target chart framework. Wherein, obtaining the target configuration item list from the configuration item list of the pre-built configuration library includes: reading the configuration library from the rendering packaging tool; filtering and obtaining the target configuration item list corresponding to the target chart framework from the configuration library. Wherein, calling the target chart framework to render in the target container based on the input parameters and the chart data source to obtain a presented visual chart includes: calling the target chart framework based on the calling interface in the rendering packaging tool, rendering in the target container based on the input parameters and the chart data source to obtain a presented visual chart.

[0010] In some embodiments, the above-mentioned development method also includes: obtaining update information of version update of the target chart framework; the above-mentioned update includes an update to a predefined configuration item or an update to a supported calling interface; determining a corresponding update type according to the above-mentioned update information; in a case where the above-mentioned update type indicates an update to a predefined configuration item, updating the associated configuration item associated with the updated predefined configuration item in the above-mentioned target configuration item list, and updating the mapping relationship between the above-mentioned associated configuration item and the updated predefined configuration item; in a case where the above-mentioned update type indicates an update to a supported calling interface, adapting and updating the calling interface in the rendering encapsulation tool according to the update information of the supported calling interface after the version update.

[0011] In some embodiments, the update type includes one of the following: a first update type for adding a first predefined configuration item, a second update type for deleting a second predefined configuration item, and a second update type for changing a third predefined configuration item. In the case where the update type is the first update type, a first configuration item corresponding to the first predefined configuration item is added to the target configuration item list, and a first mapping relationship between the first configuration item and the first predefined configuration item is constructed. In the case where the update type is the second update type, a second configuration item corresponding to the second predefined configuration item is deleted from the target configuration item list, and a second mapping relationship between the second configuration item and the second predefined configuration item is deleted. In the case where the update type is the third update type, the mapping relationship between the third predefined configuration item before the change and the corresponding third configuration item is updated to a third mapping relationship between the third predefined configuration item after the change and the third configuration item.

[0012] In some embodiments, the above configuration items are configuration field identifiers for at least one of a static chart or a dynamic chart based on a front-end development language description. The above configuration item index information includes: the name of the configuration item expressed in a natural language; the above setting description includes at least one of the following: configuration item attributes, enumeration information or default information of configuration item values, and setting specifications of configuration items. The above configuration items include: chart types, display positions and display styles of chart components corresponding to each chart type; and at least one group of the following information: chart interaction operation function objects, display positions and display styles corresponding to chart interaction operation executions; personalized configuration objects for customized display based on data source processing results.

[0013] In a second aspect, an embodiment of the present disclosure provides a development device for a visual chart. The development device includes: a container creation or selection module, a configuration item list acquisition module, a configuration module, and a rendering module. The container creation or selection module is used to create or select a target container for chart presentation. The configuration item list acquisition module is used to obtain a target configuration item list from a configuration item list of a pre-built configuration library and display it on a development interface. Among them, the configuration item list is obtained by redefining the predefined configuration items corresponding to each chart framework according to a unified specification, and the configuration item list includes configuration items and corresponding description information; the description information is explanatory information for the configuration items based on natural language expression, and the explanatory information includes configuration item index information and setting instructions. The configuration module is used to generate the target configuration content required by the user according to the interaction information between the user and the target configuration item list. The rendering module is used to use the target configuration content as an input parameter, call the target chart framework to render in the target container based on the input parameter and the chart data source, and obtain a presented visual chart.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device. The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the above-mentioned method for developing a visualization chart when executing the program stored in the memory.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for developing a visualization chart as described above is implemented.

[0016] The above technical solution provided by the embodiments of the present disclosure has at least some or all of the following advantages:

[0017] A general visual chart development method that can improve development efficiency is provided for inexperienced personnel or developers with little experience. By pre-building a configuration library containing a list of configuration items, the above-mentioned list of configuration items is obtained by redefining the predefined configuration items corresponding to each chart framework according to a unified specification, that is, the predefined configuration items corresponding to each chart framework can be redefined in advance by personnel familiar with each chart framework based on the unified specification. Since the description information of the redefined configuration items is explanatory information for the configuration items based on natural language expression, the above-mentioned explanatory information includes configuration item index information and setting instructions. Based on the configuration item index information in the above-mentioned description information, it is easy to follow the unified specification (this unified specification is a Based on the above setting instructions, it is convenient for users (such as front-end developers of visual charts) to view and understand in real time how to set configuration items, without spending much time in advance to understand the relevant content of the chart framework to be used. During the development process, users can search and understand the meaning and setting method of each configuration item according to the unified specification and select the target configuration item to be set as needed. There is no need to care about the name of the predefined configuration item that specifically implements a certain function in the underlying chart frameworks. It is only necessary to interact according to the description information in the target configuration item list displayed on the development interface, which reduces the technical threshold for visual chart development and improves development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 The system architecture of the method for developing a visualization chart applicable to the embodiment of the present disclosure is schematically shown;

[0021] Figure 2 A flowchart of a method for developing a visualization chart according to an embodiment of the present disclosure is schematically shown;

[0022] Figure 3 The detailed implementation flow chart of step S230 according to an embodiment of the present disclosure is schematically shown;

[0023] Figure 4AA schematic diagram schematically shows a state of selecting a target configuration item from a configuration item list presented on a development interface according to an embodiment of the present disclosure;

[0024] Figure 4B A schematic diagram of a setting window corresponding to setting setting information for a target configuration item in a development interface according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 5 A flowchart of a method for developing a visualization chart according to another embodiment of the present disclosure is schematically shown;

[0026] Figure 6 The structure block diagram schematically shows a method for developing a visualization chart according to an embodiment of the present disclosure;

[0027] Figure 7 The structural block diagram of the electronic device provided by the embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] In order to present visual charts on the front end of the web page, all kinds of front-end developers need to understand and be familiar with the visualization tools or chart libraries used for front-end development, which requires a high technical threshold. At the same time, not only do developers need to spend more time to familiarize themselves with the relevant tools or chart libraries, but as the iterations and updates of various visualization tools or libraries become more and more frequent, developers are also required to synchronously update the corresponding knowledge bases, which invisibly increases a lot of time costs and reduces development efficiency. In addition, during the development process, the technical documentation of some visualization tools or chart libraries is relatively simplified. For developers who have not used this tool or chart library, it is still difficult to use and requires a lot of time to find the relevant configuration items that meet the visualization needs, resulting in a long development cycle.

[0029] For example, if a developer needs to use a chart library to set a certain display effect, then the developer needs to be familiar with the configuration items for the display effect in the chart library and can directly set the configuration items; if the developer does not understand the chart library, he may need to read and learn from the technical documentation of the chart library to learn how to find the required configuration items and how to set them. The technical threshold is high and the learning cost is high. Generally speaking, each visualization tool or corresponding chart library is aimed at users who are familiar with the above tools or chart libraries, and the content of the technical documentation is relatively concise. In many cases, front-end developers who have just entered the industry or are unfamiliar with the above visualization tools or chart libraries cannot learn from the technical documentation, and need to spend more time exploring and learning from development communities or forums, which prolongs the development cycle and requires improved development efficiency.

[0030] In view of this, the embodiments of the present disclosure provide a method, device, electronic device and medium for developing a visual chart, wherein the development method includes: creating or selecting a target container for presenting a chart; obtaining a target configuration item list from a configuration item list of a pre-built configuration library and displaying it on a development interface; generating target configuration content required by the user based on interaction information between the user and the target configuration item list; using the target configuration content as an input parameter, calling a target chart framework to render in the target container based on the input parameter and the chart data source, and obtaining a presented visual chart. Among them, the configuration item list is obtained by redefining the predefined configuration items corresponding to each chart framework according to a unified specification, and the configuration item list includes configuration items and corresponding description information; the description information is explanatory information for the configuration items based on natural language expressions, and the explanatory information includes configuration item index information and setting instructions.

[0031] A general method for developing visual charts that can improve development efficiency is provided for inexperienced or less experienced developers. The method is suitable for all kinds of experienced or inexperienced front-end developers. In advance, people familiar with each chart framework can redefine the predefined configuration items corresponding to each chart framework based on a unified specification to obtain a configuration library containing a list of configuration items. Since the description information of the redefined configuration items is explanatory information for the configuration items based on natural language expression, the above explanatory information includes configuration item index information and setting instructions. Based on the configuration item index information in the above description information, it is easy to follow the unified specification (this unified specification is a basic specification for users, and it is used when users Based on the above setting instructions, it is convenient for users (such as front-end developers of visual charts) to view and understand the setting methods of configuration items in real time, without spending much time in advance to understand the relevant content of the chart framework to be used. During the development process, users can search and understand the meaning and setting methods of each configuration item according to unified specifications and select the target configuration item to be set as needed. There is no need to care about the name of the predefined configuration item that specifically implements a certain function in the underlying chart framework. It is only necessary to interact according to the description information in the target configuration item list displayed on the development interface, which reduces the technical threshold for visual chart development and improves development efficiency.

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0033] Figure 1 The system architecture of the method for developing a visualization chart applicable to the embodiment of the present disclosure is schematically shown.

[0034] Reference Figure 1 As shown, the system architecture 100 applicable to the method for developing a visualization chart according to the embodiment of the present disclosure includes: a terminal device 110 and a server 120. The terminal device 110 is used to execute the method for developing a visualization chart according to the embodiment of the present disclosure. The terminal device 110 has a visualization interface. The server 120 can communicate with the terminal device 110. Figure 1 As shown in the communication connection relationship illustrated by the lightning shape, the server 120 is used to provide data processing services for the above-mentioned terminal device 110.

[0035] In some embodiments, the terminal device 110 includes three layers, namely: data layer, behavior layer and view layer. The three layers have division of labor and cooperate with each other.

[0036] The above data layer is used to analyze the incoming data parameters and render and display them. The code of this layer can include front-end JavaScript code, which is used to determine the content of the parameters passed in by the front-end and perform customized data rendering and display based on the parameters.

[0037] The behavior layer is divided into two parts: one part is the front-end JavaScript code for processing user interaction and business logic (for example, for executing the following steps: based on the interaction information between the user and the above-mentioned target configuration item list, generate the target configuration content required by the user), and the other part is a method for visualizing a chart adapted to the target chart framework, by encapsulating the existing target chart framework (for example, Echart, D3.js, Highcharts, etc.), a rendering encapsulation tool (for example, containing a set of functions or classes) is obtained; the rendering encapsulation tool contains a pre-built configuration library, and the above-mentioned rendering encapsulation tool has a calling interface for docking to the target chart framework. The above-mentioned rendering encapsulation tool provides a chart display method that conforms to various scenarios and styles. You only need to simply configure the corresponding chart style parameters, theme style parameters, and rendering data parameters to easily achieve a chart visualization display that meets your needs.

[0038] The view layer is used for visual display, and mainly includes two parts: HTML technology and CSS technology. HTML is a markup language used to define the structure and content of a page. CSS is a style sheet language used to define the style and layout of page elements, such as controlling the appearance, arrangement, and animation effects of page elements, so that the page presents the desired visual effects and user experience.

[0039] By dividing the code and functions of the development method of the visualization chart implemented by the terminal device into different layers (data layer, behavior layer and view layer), the maintainability, scalability and reusability of the code can be achieved. Each layer has its independent responsibilities, which makes the organization of the code clearer and promotes teamwork and development efficiency. At the same time, this hierarchical structure also makes it easier to optimize and improve the code, because it can be optimized for a specific layer without affecting the code of other layers.

[0040] In some embodiments, a packaging staff (a staff familiar with each chart framework) pre-builds a configuration library containing at least one configuration item list, and uploads the configuration library to the server 120. The configuration library is stored in the server 120, and the configuration library contains the configuration item list corresponding to each chart framework, for example Figure 1 In the example, there is a configuration item list 1 corresponding to the chart frame a, and a configuration item list 2 corresponding to the chart frame b.

[0041] The above list of configuration items is obtained by redefining the predefined configuration items corresponding to each chart framework according to the unified specification. After the packager redefines according to the unified specification, for example, in a chart framework, defining the color corresponding to a chart type requires two fields to be defined together, such as the two parameters color and type; after redefining according to the unified specification, the color corresponding to the pie chart is represented by the field: pieColor.

[0042] The above configuration item list includes configuration items and corresponding description information; the above description information is explanatory information for the configuration items based on natural language expression, and the above explanatory information includes configuration item index information and setting instructions.

[0043] In some embodiments, the list of configuration items in the configuration library, and the mapping relationship between each configuration item in the configuration item list and the predefined configuration items in the corresponding chart framework can be adapted and updated as the version of the chart framework is updated. For users in the development stage, the development logic remains unchanged, and there is no need to increase the learning cost of additional learning update content and update the knowledge base of understanding the chart framework.

[0044] In the development stage, the terminal device 110 can access the configuration library stored in the server 120, and obtain the target configuration item list corresponding to the target chart framework from the server 120. Alternatively, the terminal device 110 loads the configuration library locally by preloading the rendering packaging tool, and obtains the target configuration item list corresponding to the target chart framework from the configuration library.

[0045] The first exemplary embodiment of the present disclosure provides a method for developing a visualization chart. The development method of this embodiment can be Figure 1 The example system architecture 100 is implemented by the terminal device 110 .

[0046] Figure 2 The flowchart of a method for developing a visualization chart according to an embodiment of the present disclosure is schematically shown.

[0047] Reference Figure 2 As shown, the method for developing a visualization chart provided by an embodiment of the present disclosure includes the following steps: S210, S220, S230 and S240.

[0048] In step S210 , a target container for chart presentation is created or selected.

[0049] In some embodiments, there is a function menu on the development interface of the terminal device, and the above function menu includes a function key for creating a container. When the user clicks the function key for creating a container, it is deemed that the terminal device has received an instruction to create a container and creates a target container for chart presentation.

[0050] In other embodiments, a terminal device has a container list, which includes at least one container for the user to present a chart. The user selects a container in the container list as a target container for visual rendering of the chart data source, for example, representing the target container as ref.

[0051] For example, create a div element on the page where data rendering is required, and then define a target container ref on the div element, which is a container for data visualization.

[0052] In step S220, a target configuration item list is obtained from a configuration item list of a pre-built configuration library and displayed on a development interface.

[0053] The configuration library contains one or more configuration item lists. The above configuration item list is obtained by redefining the predefined configuration items corresponding to each chart framework according to a unified specification. The content of the configuration item list is clearer and easier to understand than the predefined configuration items of each chart framework. Each configuration item has a unique definition identification field. Different from this, in each chart framework, it is very likely that the definition of a configuration item is defined by multiple fields. For example, the color and type (indicating the chart type) are used to define the color corresponding to a chart type. After redefining according to a unified specification, the color corresponding to the pie chart is represented by the field: pieColor. The unified definition is intuitively presented in the development interface, without the need for users to understand the specific configuration item definition method of the corresponding chart framework. It is convenient to find and understand the relevant content of the specific configuration item settings through descriptive information (such as setting instructions).

[0054] In some embodiments, the configuration library includes: a correspondence between a chart framework and a configuration item list. In the above step S220, obtaining a target configuration item list from a configuration item list of a pre-built configuration library includes: obtaining a target configuration item list corresponding to a target chart framework based on the correspondence between the chart framework and the configuration item list. For example, referring to Figure 1 As shown, the target chart frame is chart frame a. According to the corresponding relationship between chart frame a and configuration item list 1, it can be obtained that the target configuration item list is configuration item list 1.

[0055] In some embodiments, the above-mentioned configuration item list includes configuration items and corresponding description information; the above-mentioned description information is explanatory information for the configuration items based on natural language expression, and the above-mentioned explanatory information includes configuration item index information and setting instructions.

[0056] In some embodiments, the above configuration item is a configuration field identifier for at least one of a static chart or a dynamic chart based on a front-end development language description.

[0057] The above configuration item index information includes: the name of the configuration item expressed in natural language; the above setting instructions include but are not limited to at least one of the following: configuration item attributes, enumeration information or default information of configuration item values, and setting specifications of configuration items (for example, using a descriptive, explanatory, or exemplary manner to explain how to set the value of the configuration item, or giving a customized range or customized options, etc.).

[0058] The above configuration items include: chart type, display position and display style of chart components corresponding to each chart type (title, horizontal and vertical axes, horizontal and vertical coordinate data display box, data unit display box, chart drawing units corresponding to the chart type (for example, columns in a bar chart, sectors in a pie chart, lines corresponding to a line chart, etc.), grid lines, center lines, etc.); and at least one group of the following information: chart interactive operation function objects (for example, whether to display information when the mouse moves in, whether to display scroll bars, etc.; the value generally defaults to no, and if it needs to be displayed, the value is set to yes), the display position and display style corresponding to the execution of chart interactive operations (if the value of the chart interactive operation function object is yes, the corresponding execution display style adopts this parameter); personalized configuration objects for customized display according to the processing results of the data source (for example, highlighting the maximum value).

[0059] By setting at least one set of information such as the chart interaction operation function object, the display position and display style corresponding to the chart interaction operation execution, and the personalized configuration object for customized display according to the data source processing results in the configuration item, it helps to adapt to various personalized setting needs, improve the interactive experience in the chart visualization process, and achieve the desired personalized presentation effect by performing differentiated display according to the data source processing results.

[0060] For example, the following Table 1 illustrates some exemplary contents of the configuration item list. In Table 1, the contents in brackets [ ] are used as explanations for this article and do not exist in the actual configuration item list; the contents in brackets () are the contents existing in the description information, which serve as detailed descriptions of the description information, cross-language interpretations, or additional supplementary comments, etc.; Table 1 illustrates the description information in Chinese. It can be understood that the above description information is not limited to Chinese, but can also be in other languages.

[0061] Table 1 Partial exemplary content of the configuration item list corresponding to a chart framework (e.g. Echart)

[0062]

[0063]

[0064] Based on the configuration item index information in the above description information, it is convenient to search for configuration items according to a unified specification. This unified specification is a basic specification for users, and users can understand it even if they do not master the chart framework. Based on the above setting instructions, it is convenient for users (for example, front-end developers of visual charts) to view and understand in real time how to set configuration items, without the need for users to spend much time in advance to understand the relevant content of the chart framework to be used. During the development process, users can search and understand the meaning and setting method of each configuration item according to the unified specification and select the target configuration item to be set as needed. There is no need to care about the name of the predefined configuration item that specifically implements a certain function in the underlying chart frameworks. It is only necessary to interact according to the description information in the target configuration item list displayed on the development interface, which reduces the technical threshold for visual chart development and improves development efficiency.

[0065] In step S230, the target configuration content required by the user is generated according to the interaction information between the user and the above target configuration item list.

[0066] In some embodiments, the configuration library includes a configuration item list corresponding to at least one chart framework; there is a mapping relationship between the configuration items in the configuration item list and the predefined configuration items in the corresponding chart framework.

[0067] Figure 3 The detailed implementation flow chart of step S230 according to an embodiment of the present disclosure is schematically shown. Figure 4A A schematic diagram schematically shows a state of selecting a target configuration item from a configuration item list presented on a development interface according to an embodiment of the present disclosure; Figure 4B A schematic diagram of a setting window corresponding to setting setting information for a target configuration item in a development interface according to an embodiment of the present disclosure is schematically shown.

[0068] Reference Figure 3 As shown, in the above step S230, the target configuration content required by the user is generated according to the interaction information between the user and the above target configuration item list, including the following steps: S310, S320, S330 and S340.

[0069] In step S310, a target configuration item selected by a user in the configuration item list based on the description information is received.

[0070] Reference Figure 4AAs shown, in the development interface 400, a target configuration item list 410 corresponding to a chart framework (e.g., Echart) is illustrated. The target configuration item list 410 includes multiple configuration items and corresponding description information. The user browses the above description information to understand the configuration functions that can be realized by each configuration item and how to set the relevant content of each configuration item, or uses Chinese search keywords to determine the configuration item corresponding to a certain function and how to set the relevant content of the configuration item according to the corresponding description information, so that the corresponding target configuration item can be selected according to the required display style or function. Figure 4A and Figure 4B A check mark in the box indicates the selected state of the item. Figure 4A It illustrates the user selections: configuration item 1 (e.g., chart type), configuration item 3 (pie chart color), configuration item 4 (display position of legend information), configuration item 6 (an example of a chart interactive operation function object: whether to display prompt information when the mouse moves in), configuration item 7 (display position and display style corresponding to the chart interactive operation tooltip execution), configuration item 9 (pie chart size), configuration item 12 (pie chart position), and configuration item 13 (whether to display the pie chart label) as target configuration items.

[0071] In step S320, the user's setting information for the target configuration item is obtained, where the setting information includes at least one of the following: custom value setting information and default value setting information.

[0072] In some embodiments, reference Figure 4B As shown, the development interface 400 presents a setting window 420 of the target configuration item in response to the user's selection of the target configuration item. The setting window 420 presents the default setting value of the target configuration item, for example, Figure 4B The following table shows some default setting values ​​corresponding to configuration items 6 and 7, such as: the default setting value corresponding to configuration item 6 (an example of a chart interactive operation function object: whether to display prompt information when the mouse moves in) is false; the default setting value corresponding to configuration item 7 (display position and style of prompt information) is the mouse position. Users can use the above default setting values ​​without setting the target configuration item, for example Figure 4B In the example, the user selected the default setting value of the location of configuration item 7. In some embodiments, the user can also customize the settings for the above target configuration items, for example Figure 4B In the example, the user selects one style option 702 from the three customized style options 701 to 703 as the style setting value corresponding to configuration item 7; the user sets a customized setting value for configuration item 6: Yes, that is, the setting value of configuration item 6 is: display prompt information when the mouse moves into the display.

[0073] exist Figure 4BOnly the settings of configuration item 6 and configuration item 7 are used as examples for setting target configuration items, and the setting process of other target configuration items can be understood by reference.

[0074] In step S330, according to the mapping relationship, the target configuration item is automatically converted into a target predefined configuration item corresponding to the target chart framework.

[0075] By automatically converting the target configuration items, this process is imperceptible to the user. The target configuration items selected in the configuration item list that is redefined and intuitively presented to the user in an easy-to-understand entry-level description will be automatically converted to the corresponding target predefined configuration items under the target chart framework. The target predefined configuration items are ready-to-use for the subsequent rendering of the target chart framework, and no additional processing of the incoming parameters is required.

[0076] In step S340, target configuration content is generated according to the setting information and the target predefined configuration items.

[0077] In some embodiments, the original setting information for the target configuration item (if no custom setting is performed, the default setting is used) is mapped to the setting information for the target predefined configuration item. Thus, the information carried in the target configuration content is the setting information for the target predefined configuration item, which is used as the input parameter of the target chart framework.

[0078] In the embodiment including steps S310 to S340, the user understands the functions of each configuration item based on the description information in the configuration item list presented in the development interface, selects the required target configuration item, and customizes the setting value in accordance with the setting specification or adopts the default setting value according to the setting instructions in the description information. This is intuitive and easy to understand for users interacting with the development interface, and there is no need to spend more time to deeply understand the target chart framework in advance. During use, the configuration items required to be set can be directly checked in a selective manner and the corresponding setting values ​​can be configured according to the setting instructions. In the execution logic on the terminal device side, the terminal device automatically converts the target configuration item locally according to the mapping relationship between the configuration items in the configuration item list and the predefined configuration items in the corresponding chart framework, obtains the target predefined configuration item corresponding to the target chart framework, and generates the corresponding target configuration content. This conversion process is imperceptible to the user, and the user does not need to care about the details of the subsequent rendering of the specific chart framework. Similarly, the parameters passed in during the subsequent rendering process can be used immediately, eliminating the need for subsequent conversion processing of the passed in target configuration items. Consumption of processing resources for the target chart framework is generated.

[0079] In step S240, the target configuration content is used as an input parameter, and the target chart framework is called to render in the target container based on the input parameters and the chart data source to obtain a presented visual chart.

[0080] In some embodiments, by calling the target chart framework, the target configuration content (customOptions) is used as an input parameter, and the target chart framework (for example, Echart) is called for rendering. The rendering method is represented by configureChart, and the rendering process is represented by: configureChart (ref, data, customOptions = {}); this method accepts a target container ref for rendering data, a chart data source data to be rendered, and a target configuration content (customOptions) for the chart style. The configuration item defaults to {}, and the setting values ​​in the above configuration item list are all configured in customOptions. s, for example, includes: configuration item 1 (for example, chart type type), configuration item 3 (pie chart color pieColor), configuration item 4 (display position legendPosition of legend information), configuration item 6 (an example of chart interactive operation function object showTooltip: whether to display prompt information when the mouse moves in), configuration item 7 (display position and display style tooltipType corresponding to the chart interactive operation tooltip execution), configuration item 9 (pie chart size pieRadius), configuration item 12 (pie chart position piePosition) and configuration item 13 (whether to display the pie chart label pieLabelShow, the default value is no). In this rendering method, rendering is performed in the target container according to the passed in parameters and chart data source, and finally the visualization chart of the corresponding chart type is displayed in the target container ref.

[0081] The above-mentioned chart data source (Data) is a data source for generating visualization charts. The visualization charts presented can be various types of charts, such as but not limited to: column charts, bar charts, line charts, pie charts, area charts, scatter charts, bubble charts, gauge progress charts, Gantt charts, heat maps, tree maps, radar charts, funnel charts, etc.

[0082] Visualization charts can be static charts or dynamic charts.

[0083] In some embodiments, in the above step S240, calling the target chart framework to render in the above target container based on the above input parameters and the chart data source to obtain a rendered visual chart includes:

[0084] Based on the target chart framework, the above-mentioned input parameters are identified to obtain target predefined configuration items and setting information;

[0085] The target chart framework performs chart instantiation processing in the target container according to the target predefined configuration items, the setting information and the chart data source to obtain a rendered visual chart.

[0086] In an embodiment including steps S210 to S240, a general visualization diagram development method that can improve development efficiency is provided for inexperienced personnel or developers with little experience, by pre-building a configuration library including a list of configuration items, wherein the list of configuration items is obtained by redefining the predefined configuration items corresponding to each diagram framework according to a unified specification, that is, the predefined configuration items corresponding to each diagram framework can be redefined in advance by personnel familiar with each diagram framework based on the unified specification, and since the description information of the redefined configuration items is explanatory information for the configuration items based on natural language expression, the explanatory information includes configuration item index information and setting instructions, and the configuration item index information in the description information is convenient for configuring the configuration items according to the unified specification (this unified The specification is a basic specification for users, and users can understand it even if they do not master the chart framework. Based on the above setting instructions, it is convenient for users (such as front-end developers of visual charts) to view and understand the setting methods of configuration items in real time. Users do not need to spend much time in advance to understand the relevant content of the chart framework to be used. During the development process, users can search and understand the meaning and setting methods of each configuration item according to the unified specification and select the target configuration item to be set as needed. There is no need to care about the name of the predefined configuration item that specifically implements a certain function in the underlying chart framework. They only need to interact according to the description information in the target configuration item list displayed on the development interface, which reduces the technical threshold for visual chart development and improves development efficiency.

[0087] Figure 5 The flowchart of a method for developing a visualization chart according to another embodiment of the present disclosure is schematically shown.

[0088] The method for developing a visualization chart provided in the embodiment of the present disclosure may further include step S510 in addition to the above steps S210 to S240. Figure 5 As shown, step S510 is performed before step S220.

[0089] In step S510, a rendering package tool is loaded. The rendering package tool includes the pre-built configuration library, and the rendering package tool has a calling interface for docking to a target chart framework.

[0090] Among them, refer to Figure 5As shown, in the above step S220, the target configuration item list is obtained from the configuration item list of the pre-built configuration library, including step S220a: reading the configuration library from the above rendering packaging tool; and filtering the target configuration item list corresponding to the above target chart framework from the above configuration library.

[0091] Among them, refer to Figure 5 As shown, in the above step S240, the target chart framework is called to perform rendering in the above target container based on the above input parameters and the chart data source to obtain a presented visual chart, including step S240a: calling the above target chart framework based on the calling interface in the above rendering encapsulation tool, and rendering in the above target container based on the above input parameters and the chart data source to obtain a presented visual chart.

[0092] In some embodiments, the development method further comprises:

[0093] Get the update information of the version update of the target chart framework; the above update includes the update of predefined configuration items or the update of supported calling interfaces;

[0094] According to the above update information, determine the corresponding update type;

[0095] In the case where the update type indicates that a predefined configuration item is to be updated, the associated configuration items in the target configuration item list that are associated with the updated predefined configuration item are updated, and the mapping relationship between the associated configuration items and the updated predefined configuration items is updated;

[0096] In the case where the above update type indicates that the supported calling interface is updated, the calling interface in the rendering packaging tool is adapted and updated according to the update information of the supported calling interface after the version is updated.

[0097] In some embodiments, the update type includes one of the following: a first update type for adding a first predefined configuration item, a second update type for deleting a second predefined configuration item, and a second update type for changing a third predefined configuration item.

[0098] In the case where the update type is the first update type, a first configuration item corresponding to the first predefined configuration item is newly added to the target configuration item list, and a first mapping relationship between the first configuration item and the first predefined configuration item is established. In the case where the update type is the second update type, a second configuration item corresponding to the second predefined configuration item is deleted from the target configuration item list, and a second mapping relationship between the second configuration item and the second predefined configuration item is deleted. In the case where the update type is the third update type, a mapping relationship between the third predefined configuration item before the change and the corresponding third configuration item is updated to a third mapping relationship between the third predefined configuration item after the change and the third configuration item.

[0099] In this embodiment, considering that each visualization tool or library is updated more and more frequently, a logic for updating the configuration library to adapt to the update of the target chart framework is also set. In the embodiment corresponding to the loading rendering encapsulation tool, a logic for updating the call interface in the rendering encapsulation tool to adapt to the update of the target chart framework is also set. In this way, it is no longer necessary for developers to synchronously update the corresponding knowledge base, saving a lot of time and cost, and promoting the improvement of development efficiency.

[0100] A second exemplary embodiment of the present disclosure provides a device for developing a visualization chart.

[0101] Figure 6 The structural block diagram of a method for developing a visualization chart according to an embodiment of the present disclosure is schematically shown.

[0102] Reference Figure 6 As shown, the visual chart development device 600 provided in the embodiment of the present disclosure includes: a container creation or selection module 601, a configuration item list acquisition module 602, a configuration module 603 and a rendering module 604.

[0103] The container creation or selection module 601 is used to create or select a target container for chart presentation.

[0104] The configuration item list acquisition module 602 is used to acquire the target configuration item list from the configuration item list of the pre-built configuration library and display it on the development interface. The configuration item list is obtained by redefining the pre-defined configuration items corresponding to each chart framework according to a unified specification, and the configuration item list includes configuration items and corresponding description information; the description information is explanatory information for the configuration items based on natural language expression, and the explanatory information includes configuration item index information and setting instructions.

[0105] In some embodiments, the above configuration items are configuration field identifiers for at least one of a static chart or a dynamic chart based on a front-end development language description. The above configuration item index information includes: the configuration item name expressed in a natural language; the above setting instructions include but are not limited to at least one of the following: configuration item attributes, enumeration information or default information of configuration item values, and configuration item setting specifications. The above configuration items include: chart types, display positions and display styles of chart components corresponding to each chart type; and at least one group of the following information: chart interaction operation function objects, display positions and display styles corresponding to chart interaction operation executions; personalized configuration objects for customized display based on data source processing results.

[0106] The configuration module 603 is used to generate target configuration content required by the user according to the interaction information between the user and the target configuration item list.

[0107] The rendering module 604 is used to take the target configuration content as an input parameter, call the target chart framework to render in the target container based on the input parameters and the chart data source, and obtain a presented visual chart.

[0108] In some embodiments, the configuration library includes a configuration item list corresponding to at least one chart framework; there is a mapping relationship between the configuration items in the configuration item list and the predefined configuration items in the corresponding chart framework. According to the interaction information between the user and the target configuration item list, the target configuration content required by the user is generated, including: receiving the target configuration item selected by the user in the configuration item list based on the description information; obtaining the user's setting information for the target configuration item, the setting information includes at least one of the following: custom value setting information, default value setting information; according to the mapping relationship, automatically converting the target configuration item into a target predefined configuration item corresponding to the target chart framework; generating the target configuration content according to the setting information and the target predefined configuration item.

[0109] In some embodiments, a target chart framework is called to perform rendering in the target container based on the input parameters and the chart data source to obtain a presented visual chart, including: identifying the input parameters based on the target chart framework to obtain target predefined configuration items and setting information; and the target chart framework performs chart instantiation processing in the target container according to the target predefined configuration items, the setting information and the chart data source to obtain a rendered visual chart.

[0110] In some embodiments, the configuration library includes: a correspondence between a chart framework and a configuration item list. Wherein, obtaining a target configuration item list from a configuration item list of a pre-built configuration library includes: obtaining a target configuration item list corresponding to a target chart framework based on the correspondence between the chart framework and the configuration item list.

[0111] In some embodiments, the development device 600 further includes: a loading module.

[0112] The loading module is used to load a rendering package tool, the rendering package tool includes the pre-built configuration library, and the rendering package tool has a calling interface connected to a target chart framework.

[0113] The step of obtaining the target configuration item list from the configuration item list of the pre-built configuration library includes: reading the configuration library from the rendering encapsulation tool; and filtering the target configuration item list corresponding to the target chart framework from the configuration library.

[0114] Among them, calling the target chart framework to render in the above-mentioned target container based on the above-mentioned input parameters and the chart data source to obtain a presented visual chart, including: calling the above-mentioned target chart framework based on the calling interface in the above-mentioned rendering encapsulation tool, rendering in the above-mentioned target container based on the above-mentioned input parameters and the chart data source to obtain a presented visual chart.

[0115] In some embodiments, the development device 600 further includes: an update acquisition module, an update type determination module, and an adaptation update module.

[0116] The update acquisition module is used to obtain update information of version update of the target chart framework; the update includes updates to predefined configuration items or updates to supported calling interfaces.

[0117] The update type determination module is used to determine the corresponding update type according to the update information.

[0118] The above-mentioned adaptation and update module is used to update the associated configuration items associated with the updated predefined configuration items in the above-mentioned target configuration item list when the above-mentioned update type indicates an update to the predefined configuration items, and to update the mapping relationship between the above-mentioned associated configuration items and the updated predefined configuration items; and is also used to adapt and update the calling interface in the rendering packaging tool according to the update information of the supported calling interface after the version update when the above-mentioned update type indicates an update to the supported calling interface.

[0119] In some embodiments, the update type includes one of the following: a first update type for adding a first predefined configuration item, a second update type for deleting a second predefined configuration item, and a second update type for changing a third predefined configuration item. In the case where the update type is the first update type, a first configuration item corresponding to the first predefined configuration item is added to the target configuration item list, and a first mapping relationship between the first configuration item and the first predefined configuration item is constructed. In the case where the update type is the second update type, a second configuration item corresponding to the second predefined configuration item is deleted from the target configuration item list, and a second mapping relationship between the second configuration item and the second predefined configuration item is deleted. In the case where the update type is the third update type, the mapping relationship between the third predefined configuration item before the change and the corresponding third configuration item is updated to a third mapping relationship between the third predefined configuration item after the change and the third configuration item.

[0120] The development device of this embodiment can be Figure 1 The terminal device 100 in the exemplary system architecture 100, and the specific layers thereof, may refer to the relevant description of the first embodiment.

[0121] For more technical details or beneficial effects included in this embodiment, please refer to the relevant description of the first embodiment, which will not be repeated here.

[0122] Any number of the functional modules included in the development device 600 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. At least one of the functional modules included in the development device 600 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the functional modules included in the development device 600 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0123] A third exemplary embodiment of the present disclosure provides an electronic device.

[0124] Figure 7 The structural block diagram of the electronic device provided by the embodiment of the present disclosure is schematically shown.

[0125] Reference Figure 7 As shown, the electronic device 700 provided by the embodiment of the present disclosure includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704; the memory 703 is used to store computer programs; the processor 701 is used to implement the method for developing a visualization chart as described above when executing the program stored in the memory.

[0126] The fourth exemplary embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for developing a visualization chart as described above is implemented.

[0127] The computer-readable storage medium may be included in the device or apparatus described in the above embodiment; or it may exist independently without being assembled into the device or apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0128] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0129] It should be noted that the collection, collection, update, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution provided by the embodiments of the present disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0130] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0131] The foregoing is merely a specific embodiment of the present disclosure, which enables those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A method for developing a visual chart, characterized in that: include: Create or select a target container for chart rendering; Obtain a target configuration item list from a configuration item list of a pre-built configuration library and display it on a development interface; the configuration item list is obtained by redefining the pre-defined configuration items corresponding to each chart framework according to a unified specification, and the configuration item list includes configuration items and corresponding description information; the description information is explanatory information for the configuration items based on natural language expression, and the explanatory information includes configuration item index information and setting instructions; Generate target configuration content required by the user according to the interaction information between the user and the target configuration item list; The target configuration content is used as an input parameter, and a target chart framework is called to render in the target container based on the input parameter and the chart data source to obtain a presented visual chart.

2. The development method according to claim 1, characterized in that: The configuration library includes a configuration item list corresponding to at least one chart framework; there is a mapping relationship between the configuration items in the configuration item list and the predefined configuration items in the corresponding chart framework; Wherein, generating target configuration content required by the user according to the interaction information between the user and the target configuration item list includes: receiving a target configuration item selected by a user in the target configuration item list based on the description information; Acquire setting information of the user for the target configuration item, wherein the setting information includes at least one of the following: custom value setting information and default value setting information; According to the mapping relationship, automatically convert the target configuration item into a target predefined configuration item corresponding to the target chart framework; Generate target configuration content according to the setting information and the target predefined configuration items.

3. The development method according to claim 1, characterized in that: Calling the target chart framework to render in the target container based on the input parameters and the chart data source to obtain a rendered visual chart, including: Identify the input parameters based on the target graph framework, and obtain target predefined configuration items and setting information; The target chart framework performs chart instantiation processing in the target container according to the target predefined configuration items, the setting information and the chart data source to obtain a rendered visual chart.

4. The development method according to claim 1, characterized in that: The configuration library includes: the correspondence between the chart framework and the configuration item list; The target configuration item list is obtained from the configuration item list of the pre-built configuration library, including: Based on the correspondence between the chart frame and the configuration item list, a target configuration item list corresponding to the target chart frame is obtained.

5. The development method according to claim 1, characterized in that: Also includes: Loading a rendering packaging tool, wherein the rendering packaging tool includes the pre-built configuration library and has a calling interface for docking to a target chart framework; Wherein, the step of obtaining the target configuration item list from the configuration item list of the pre-built configuration library comprises: reading the configuration library from the rendering packaging tool; and filtering the configuration library to obtain the target configuration item list corresponding to the target chart framework; Among them, calling the target chart framework to render in the target container based on the input parameters and the chart data source to obtain a presented visual chart includes: calling the target chart framework based on the calling interface in the rendering encapsulation tool, rendering in the target container based on the input parameters and the chart data source to obtain a presented visual chart.

6. The development method according to claim 1 or 5, characterized in that: Also includes: Get the update information of the target chart framework version update; The update includes an update to a predefined configuration item or an update to a supported calling interface; Determine a corresponding update type according to the update information; In the case where the update type indicates that a predefined configuration item is to be updated, the associated configuration item in the target configuration item list that is associated with the updated predefined configuration item is updated, and the mapping relationship between the associated configuration item and the updated predefined configuration item is updated; In the case where the update type indicates that the supported calling interface is updated, the calling interface in the rendering encapsulation tool is adapted and updated according to the update information of the supported calling interface after the version is updated.

7. The development method according to claim 6, characterized in that: The update type includes one of the following: a first update type of adding a first predefined configuration item, a second update type of deleting a second predefined configuration item, and a second update type of changing a third predefined configuration item; In the case where the update type is the first update type, adding a first configuration item corresponding to the first predefined configuration item to the target configuration item list, and establishing a first mapping relationship between the first configuration item and the first predefined configuration item; In the case where the update type is the second update type, deleting the second configuration item corresponding to the second predefined configuration item in the target configuration item list, and deleting the second mapping relationship between the second configuration item and the second predefined configuration item; In the case where the update type is the third update type, the mapping relationship between the third predefined configuration item before the change and the corresponding third configuration item is updated to a third mapping relationship between the third predefined configuration item after the change and the third configuration item.

8. The development method according to any one of claims 1 to 5, characterized in that: The configuration item is a configuration field identifier for at least one of a static chart or a dynamic chart described in a front-end development language; The configuration item index information includes: the configuration item name expressed in natural language; the setting description includes at least one of the following: configuration item attributes, enumeration information or default information of configuration item values, and setting specifications of configuration items; The configuration items include: chart types, display positions and display styles of chart components corresponding to each chart type; and at least one group of the following information: Chart interactive operation function object, chart interactive operation execution corresponding display position and display style; A personalized configuration object that performs customized display based on the data source processing results.

9. A device for developing a visual chart, characterized in that: include: A container creation or selection module, used for creating or selecting a target container for chart presentation; A configuration item list acquisition module is used to acquire a target configuration item list from a configuration item list of a pre-built configuration library and display it on a development interface; the configuration item list is obtained by redefining the pre-defined configuration items corresponding to each chart framework according to a unified specification, and the configuration item list includes configuration items and corresponding description information; the description information is explanatory information for configuration items based on natural language expression, and the explanatory information includes configuration item index information and setting instructions; A configuration module, used to generate target configuration content required by the user according to the interaction information between the user and the target configuration item list; The rendering module is used to take the target configuration content as an input parameter, call the target chart framework to render in the target container based on the input parameter and the chart data source, and obtain a presented visual chart.

10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the development method according to any one of claims 1 to 8 when executing a program stored in a memory.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the development method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Instrument panel construction method, electronic equipment and storage medium

    CN120909571A