CN112712574A - Chart generation method and device and electronic equipment - Google Patents

Chart generation method and device and electronic equipment Download PDF

Info

Publication number
CN112712574A
CN112712574A CN202011578050.XA CN202011578050A CN112712574A CN 112712574 A CN112712574 A CN 112712574A CN 202011578050 A CN202011578050 A CN 202011578050A CN 112712574 A CN112712574 A CN 112712574A
Authority
CN
China
Prior art keywords
terminal
chart
configuration information
target
target chart
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.)
Pending
Application number
CN202011578050.XA
Other languages
Chinese (zh)
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.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Beijing Guangqiyuan Digital 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 Guangqiyuan Digital Technology Co ltd filed Critical Beijing Guangqiyuan Digital Technology Co ltd
Priority to CN202011578050.XA priority Critical patent/CN112712574A/en
Publication of CN112712574A publication Critical patent/CN112712574A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a graph, and an electronic device. The method provided by the specification comprises the following steps: the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the second terminal obtains the configuration information generated by the first terminal and renders the configuration information to obtain the target chart; the first terminal and the second terminal use the same graph library dependency package, so that the second terminal can render the target graph according to the configuration information generated by the first terminal. The scheme saves the development process of a developer on the newly designed chart styles, and greatly improves the application efficiency of the newly designed target chart.

Description

Chart generation method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a graph, and an electronic device.
Background
The common big data visualization project is a chart, and most of charts provided in the industry at present are developed through a third-party open source chart library and are used by users after being opened. Thus, for the chart styles newly designed by designers, developers are usually required to develop the chart styles first and then distribute the chart styles for use after the chart styles are developed. The existing chart development process usually involves more personnel, so that the personnel cost is high, the online is not timely, and the quick enrichment of the chart styles is not facilitated.
In view of this, the present application is specifically made.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method and an apparatus for generating a chart, and an electronic device, so as to save development time of a chart style and improve application efficiency of the chart.
The embodiment of the specification adopts the following technical scheme:
an embodiment of the present specification provides a method for generating a graph, including:
the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information;
the second terminal obtains the configuration information generated by the first terminal and renders the configuration information to obtain the target chart;
the first terminal and the second terminal use the same graph library dependency package, so that the second terminal can render the target graph according to the configuration information generated by the first terminal.
An embodiment of the present specification further provides a method for generating a graph, where the method includes:
the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the first terminal is a configuration terminal of a target chart;
the second terminal acquires the configuration information of the first terminal and sends a chart generation request containing the configuration information to a management terminal; the second terminal is a demand terminal of the target chart;
and the management terminal renders according to the configuration information to obtain a target chart and feeds the target chart back to the second terminal.
An embodiment of the present specification further provides a method for generating a graph, where the method includes:
the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the first terminal is a configuration terminal of a target chart;
the management terminal obtains the configuration information generated by the first terminal, renders the configuration information to obtain the target diagram, and stores the target diagram;
and the second terminal sends a target chart acquisition request to the management terminal so that the management terminal feeds back the target chart to the second terminal according to the target chart acquisition request.
An embodiment of the present specification provides a chart generation apparatus, including:
the first terminal is used for receiving the attribute information of the target chart and generating the configuration information of the target chart according to the attribute information;
the second terminal is used for acquiring the configuration information generated by the first terminal and rendering the configuration information to obtain the target chart;
the first terminal and the second terminal use the same graph library dependency package, so that the second terminal can render the target graph according to the configuration information generated by the first terminal.
The embodiment of the present specification further provides another apparatus for generating a graph, including:
the configuration terminal is used for receiving the attribute information of the target chart and generating the configuration information of the target chart according to the attribute information;
the demand terminal acquires the configuration information of the configuration terminal and sends a chart generation request containing the configuration information to a management terminal;
and the management terminal can generate a request according to the received chart sent by the demand terminal, render the chart according to the configuration information to obtain a target chart and feed the target chart back to the demand terminal.
The embodiment of the present specification further provides another apparatus for generating a graph, including:
the configuration terminal is used for receiving the attribute information of the target chart and generating the configuration information of the target chart according to the attribute information;
the management terminal is used for acquiring the configuration information generated by the configuration terminal, rendering the configuration information to obtain the target chart and storing the target chart;
and the demand terminal is used for sending a target chart acquisition request to the management terminal so that the management terminal feeds back the target chart to the demand terminal according to the target chart acquisition request.
This specification also provides an electronic device, including: at least one processor and a memory, the memory storing a program and configured to perform the above method by the at least one processor.
The present specification also provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the above-described method.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: in the solution provided in this specification, the first terminal and the second terminal use the same graph library dependency package, and thus, for a designed target graph, the first terminal inputs attribute information of the target graph to generate configuration information of the target graph, so that the second terminal can render the target graph according to the configuration information. Therefore, when the demander needs to use the newly designed target chart, the target chart can be rendered according to the configuration information only by acquiring the configuration information generated by the first terminal according to the attribute information of the target chart through the second terminal, so that the development process of a developer on the newly designed chart style is saved, and the application efficiency of the newly designed target chart is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the specification, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise:
FIG. 1 is a main flowchart of a method for generating a chart according to an embodiment of the present disclosure;
FIG. 2 is a main flowchart of a chart generation method provided in the second embodiment of the present specification;
FIG. 3 is a main flowchart of a method for generating a chart according to a third embodiment of the present disclosure;
FIG. 4 is a block diagram of a chart generation apparatus according to a first embodiment of the present disclosure;
FIG. 5 is a block diagram of a diagram generation apparatus according to a second embodiment of the present disclosure;
FIG. 6 is a block diagram of the result of a chart generation apparatus corresponding to the third embodiment.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
The method and the device aim to reduce the complexity of a chart new style development process, reduce the personnel cost and improve the chart style enrichment efficiency. Therefore, the main idea of the present application is as follows: multiple ends use the same chart library, and the chart library can be uniformly maintained by developers; simultaneously, providing a visual chart editing tool for a designer, inputting attribute information corresponding to a newly designed chart style through the chart editing tool according to the final effect of the newly designed chart style by the designer, and further generating and exporting corresponding configuration information, wherein the configuration information is readable configuration information of a chart library; when different terminals use the chart styles newly designed by designers, only the configuration information needs to be acquired, and then the corresponding chart styles are displayed based on the configuration information, so that the effect synchronization is achieved at multiple terminals. Furthermore, the configuration information can be uploaded to a management end (such as a chart resource library of a server) to quickly enrich the chart resources of the visual platform, so that according to the scheme of the application, a designer can independently complete design and issue to the chart resource library, development time is saved, and personnel cost is reduced.
The following detailed description of embodiments of the present application will be made with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a main flowchart of a method for generating a graph according to a first embodiment of the present disclosure. In a first embodiment, the method includes:
s110: the first terminal receives the attribute information of the target chart and generates the configuration information of the target chart according to the attribute information.
In this step, the first terminal may be a configuration terminal of the target diagram used by the designer, and the configuration terminal may be a terminal installed with a diagram editing tool, such as a mobile phone, a tablet, a computer, and the like, which is not limited in this description.
Specifically, the chart editing tool installed on the first terminal is provided with a displayable editing panel, the editing panel is used for displaying editable attribute information of the chart, and the editable attribute information can comprise the background, the internal graph and all attributes related to the animation in the chart library, which are opened and placed in the attribute editing panel, such as the width and the height of the background, the round angle of the background, the border style of the background, the transparency of the background, the filling color of the background, the filling picture of the background, the shadow in the background and the shadow of the background, the font of the text, the word size of the text, the inclination of the text, the boldness of the text, the color of the text, the name of the animation, the animation speed and other attribute contents. The designer can input the attribute information of a target chart (such as a chart style newly designed by the designer) by adjusting the editable attribute information on the editing panel, namely, for the chart style newly designed by the designer, the final effect of the new chart style is represented by adjusting the corresponding attribute information. As an example, a preview window may be set on the editing panel, when the designer adjusts the corresponding attribute information, the preview window may display an effect of the chart style corresponding to the currently adjusted attribute information in real time, and the designer determines whether the effect meets the effect of the newly designed chart style until the final preview effect meets the effect of the chart style newly designed by the designer, so as to complete the attribute information input of the target chart.
After the input of the attribute information of the target diagram is finished, the first terminal receives the attribute information of the target diagram and then generates the configuration information of the target diagram according to the received attribute information. For example, after the designer inputs the attribute information corresponding to the target chart, the designer may click the export function on the editing panel, and the chart editing tool may export the attribute information into the corresponding configuration information according to the export instruction.
It should be noted that the above-mentioned chart editing tool may be a pre-developed application program, which can provide an editable panel with chart attribute information in an editable state, and a designer can modify the attribute information of the chart on the editable panel to obtain a designed target chart style. In other words, the application program can generate a corresponding chart style according to the chart attribute data input by the designer through the editing panel, so that the designer can judge whether the expected effect is achieved according to the previewed chart style. Furthermore, the chart editing tool also has a function of exporting configuration information, namely, chart attribute information data input by designers are exported to the readable configuration information of the chart library, so that corresponding chart styles can be obtained based on the configuration information in the following process, and developers are prevented from spending a large amount of time to develop charts.
S120: and the second terminal acquires the configuration information generated by the first terminal and renders the configuration information to obtain the target chart.
In this step, the second terminal may be a demand terminal of the target chart, for example, a terminal used by a production person, including but not limited to a mobile phone, a tablet, a computer, and the like. In addition, the second terminal may be a plurality of terminals that are distributed for different people to use, and the specific number of the second terminal is not limited in this specification, and for convenience of description, the specification takes one second terminal as an example.
As an example, after the first terminal derives the configuration information, the second terminal may send a target graph obtaining request to the first terminal, and after receiving the graph obtaining request, the first terminal may send the configuration information of the target graph to the second terminal. In addition, after deriving the configuration information, the first terminal may directly transmit the configuration information to the second terminal.
As another example, the second terminal may further obtain the configuration information generated by the first terminal through the graph management terminal. Specifically, after the first terminal derives the configuration information, the configuration information may be transmitted to a chart management side, which receives and stores the configuration information. When the second terminal needs to acquire the configuration information generated by the first terminal, a target chart acquisition request may be sent to the chart management terminal, and the chart management terminal sends the configuration information of the target chart to the second terminal according to the target chart acquisition request. In addition, the chart management side usually stores configuration information of a plurality of charts, and optionally, after receiving a chart acquisition request sent by the second terminal, the chart management side may directly feed back a configuration information list to the second terminal, where the configuration information category includes configuration information of the plurality of charts, and the user may select configuration information of a target chart in the configuration information list.
Further, since the first terminal and the second terminal use the same graph library dependency package, after the second terminal acquires the configuration information derived by the first terminal, the second terminal can render the target graph corresponding to the configuration information according to the configuration information. Specifically, rendering the target graph according to the configuration information includes: the method comprises the steps of instantiating a chart object and simultaneously transmitting configuration information of a target chart, wherein the configuration information comprises all attribute information of the chart, the configuration information of the target chart is processed mainly through technologies such as JavaScript, CSS3, Canvas and SVG, for example, filling color of a background is changed into color of the configuration information through the JavaScript, and the instantiated chart object is rendered into the effect of the target chart. Therefore, developers do not need to develop the new chart styles of designers, and the corresponding target charts can be rendered after the corresponding configuration information is read by the chart library.
In practical application, the chart library can be added into corresponding visual application in a mode of importing a chart library dependency package, when a target chart pattern needs to be rendered, the configuration information of the chart is imported through a chart library instantiation method, so that the target chart pattern made by designers is rendered, the instantiation method is written once only during docking, codes compatible with charts of different styles are not required to be written when a new target chart pattern is added, and accordingly a large amount of development time is saved.
Referring to fig. 2, fig. 2 is a main flowchart of a chart generation method provided in the second embodiment of the present specification. In this embodiment two, the method includes:
s210: the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the first terminal is a configuration terminal of a target chart;
s220: the second terminal acquires the configuration information of the first terminal and sends a chart generation request containing the configuration information to a management terminal; the second terminal is a demand terminal of the target chart;
s230: and the management terminal renders according to the configuration information to obtain a target chart and feeds the target chart back to the second terminal.
In this embodiment, a first terminal (i.e., a configuration terminal), a second terminal (a demand terminal), and a management terminal are included.
The configuration terminal may be a terminal used by a designer and equipped with a diagram editing tool, including but not limited to a mobile phone, a tablet, a computer, and the like. The chart editing tool is described above. The designer uses the configuration terminal to input attribute information of a newly designed target chart (for example, the attribute information of the target chart may be input to the configuration terminal through an edit panel for displaying editable attribute information of the chart), and then derives the configuration information of the target chart.
The second terminal may be a demand terminal used by a demand party and installed with corresponding visualization software, including but not limited to a mobile phone, a tablet, a computer, and the like. The demand terminal may obtain configuration information of a target graph derived by the configuration terminal, and the specification does not limit a specific obtaining manner, and a person skilled in the art may select an appropriate manner to obtain, for example: the method comprises the steps that a demand terminal sends an acquisition request to a configuration terminal, so that the configuration terminal sends configuration information of a target chart to the demand terminal according to the acquisition request; or may be: the configuration terminal directly sends the configuration information of the derived target chart to the demand terminal; or it may also be: and the configuration terminal sends the derived configuration information to the server for storage, and the demand terminal requests the server to acquire the configuration information of the corresponding target icon. In any way, after the demand terminal acquires the configuration information, a chart generation request including the configuration information may be sent to the management terminal.
The management terminal can render the target chart corresponding to the configuration information according to the configuration information derived by the configuration terminal. After receiving a chart generation request containing configuration information sent by a demand terminal, a management terminal can render a corresponding target chart according to the configuration information contained in the request, and further feed back the rendered target chart to the demand terminal.
In the method of the embodiment, developers do not need to develop the new chart styles of designers, and the corresponding target chart can be rendered after the corresponding configuration information is read by the management terminal.
Referring to fig. 3, fig. 3 is a main flowchart of a generating method of a graph provided in the third embodiment of the present specification. In a third embodiment, the method includes:
s310: the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the first terminal is a configuration terminal of a target chart;
s320: the management terminal obtains the configuration information generated by the first terminal, renders the configuration information to obtain the target diagram, and stores the target diagram;
s330: and the second terminal sends a target chart acquisition request to the management terminal so that the management terminal feeds back the target chart to the second terminal according to the target chart acquisition request.
In this embodiment, a first terminal (i.e., a configuration terminal), a second terminal (a demand terminal), and a management terminal are included.
The configuration terminal may be a terminal used by a designer and equipped with a diagram editing tool, including but not limited to a mobile phone, a tablet, a computer, and the like. The chart editing tool is described above. The designer uses the configuration terminal to input attribute information of a newly designed target chart (for example, the attribute information of the target chart may be input to the configuration terminal through an edit panel for displaying editable attribute information of the chart), and then derives the configuration information of the target chart.
The management terminal can render and obtain a target chart corresponding to the configuration information according to the configuration information derived by the configuration terminal and store the target chart. Specifically, after the configuration terminal generates the configuration information of the target chart, the configuration information can be sent to the management terminal, and the management terminal renders the configuration information to obtain the target chart; the management side may also obtain the configuration information generated by the configuration terminal from other ways, and this description is not limited thereto.
The second terminal may be a demand terminal used by a demand party and installed with corresponding visualization software, including but not limited to a mobile phone, a tablet, a computer, and the like. When the demand terminal needs to use the target chart, the management terminal only needs to send a target chart acquisition request to the management terminal, and after receiving the target chart acquisition request, the management terminal can feed back the corresponding target chart to the demand terminal. Optionally, the management terminal may also feed back a chart list to the demand terminal according to the target chart acquisition request, and a user of the demand terminal selects a corresponding target chart from the chart list.
In the method of the embodiment, developers do not need to develop the new chart styles of designers, and the corresponding target chart can be rendered after the corresponding configuration information is read by the management terminal.
Based on the same conception, the specification also provides a chart generation device. Referring to fig. 4, fig. 4 is a block diagram of a diagram generation apparatus according to a first embodiment of the present disclosure. As shown in fig. 4, the apparatus includes:
the system comprises a first terminal 401, wherein the first terminal 401 is used for receiving attribute information of a target chart and generating configuration information of the target chart according to the attribute information;
the second terminal 402 is configured to obtain configuration information generated by the first terminal 401, and render the target graph according to the configuration information;
the first terminal and the second terminal use the same graph library dependency package, so that the second terminal can render the target graph according to the configuration information generated by the first terminal.
Further, the apparatus further comprises: and the chart management end is used for acquiring the configuration information generated by the first terminal and storing the configuration information.
The chart management terminal is further configured to receive a chart acquisition request sent by the second terminal, and send configuration information of the target chart to the second terminal according to the chart acquisition request, so that the second terminal obtains the configuration information generated by the first terminal.
For a detailed description of the apparatus, reference is made to the description of the method above, which is not repeated here.
Based on the same conception, the specification also provides a chart generation device. Referring to fig. 5, fig. 5 is a block diagram showing a schematic diagram of a chart generating apparatus according to a second embodiment of the present specification. As shown in fig. 5, the apparatus includes:
the system comprises a configuration terminal 501, wherein the configuration terminal 501 is used for receiving attribute information of a target chart and generating configuration information of the target chart according to the attribute information;
the demand terminal 502 acquires the configuration information of the configuration terminal 501, and sends a chart generation request containing the configuration information to the management terminal 503;
and the management terminal 503, wherein the management terminal 503 can generate a request according to the received chart sent by the demand terminal 502, render a target chart according to the configuration information, and feed the target chart back to the demand terminal 502.
For a detailed description of the apparatus, reference is made to the description of the method above, which is not repeated here.
Based on the same conception, the specification also provides a chart generation device. Referring to fig. 6, fig. 6 is a block diagram of a diagram generation apparatus corresponding to a third embodiment of the present specification. As shown in fig. 6, the apparatus includes:
the system comprises a configuration terminal 601, a processing terminal and a processing terminal, wherein the configuration terminal 601 is used for receiving attribute information of a target chart and generating configuration information of the target chart according to the attribute information;
a management terminal 602, where the management terminal 602 is configured to obtain the configuration information generated by the configuration terminal 601, render the configuration information to obtain the target diagram, and store the target diagram;
a requirement terminal 603, where the requirement terminal 603 is configured to send a target chart acquisition request to the management terminal 602, so that the management terminal 602 feeds back the target chart to the requirement terminal 603 according to the target chart acquisition request.
For the specific description of the apparatus, reference is made to the description of the method above, which is not repeated herein.
Based on the same concept, the present specification also provides an electronic device, including: at least one processor and a memory, the memory storing a program and configured to execute the graph generating and obtaining method described above by the at least one processor.
Based on the same inventive concept, the present specification also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the graph generating and acquiring method described above.
While certain embodiments of the present disclosure have been described above, other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily have to be in the particular order shown or in sequential order to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, device, and non-volatile computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some portions of the description of the method embodiments.
The apparatus, the device, the nonvolatile computer readable storage medium, and the method provided in the embodiments of the present specification correspond to each other, and therefore, the apparatus, the device, and the nonvolatile computer storage medium also have similar advantageous technical effects to the corresponding method.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (17)

1. A method of generating a chart, the method comprising:
the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information;
the second terminal obtains the configuration information generated by the first terminal and renders the configuration information to obtain the target chart;
the first terminal and the second terminal use the same graph library dependency package, so that the second terminal can render the target graph according to the configuration information generated by the first terminal.
2. The method of claim 1, the first terminal receiving attribute information of a target graph, comprising:
the first terminal receives attribute information of a target chart input through an editing panel; the editing panel is used for displaying editable attribute information of the chart.
3. The method of claim 1, wherein the second terminal obtaining the configuration information generated by the first terminal comprises:
the second terminal sends a target chart acquisition request to the first terminal;
and the first terminal sends the configuration information of the target chart to the second terminal according to the target chart acquisition request.
4. The method of claim 1, prior to the second terminal obtaining the configuration information generated by the first terminal, the method further comprising:
and the first terminal sends the generated configuration information to a chart management terminal so that the chart management terminal stores the configuration information.
5. The method of claim 4, wherein the second terminal obtaining the configuration information generated by the first terminal comprises:
the second terminal sends a target chart acquisition request to the chart management terminal;
and the chart management terminal sends the configuration information of the target chart to the second terminal according to the target chart acquisition request.
6. The method of claim 4, wherein the second terminal obtaining the configuration information generated by the first terminal comprises:
the second terminal sends a target chart acquisition request to the chart management terminal;
the chart management terminal sends a configuration information list to the first terminal according to the chart acquisition request; wherein the configuration information list at least comprises the configuration information of the target chart.
7. The method of any of claims 1 to 6, rendering the target graph according to the configuration information, comprising:
acquiring an instantiated chart object;
and rendering the instantiated chart object into a target chart according to the configuration information.
8. A method of generating a chart, the method comprising:
the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the first terminal is a configuration terminal of a target chart;
the second terminal acquires the configuration information of the first terminal and sends a chart generation request containing the configuration information to a management terminal; the second terminal is a demand terminal of the target chart;
and the management terminal renders according to the configuration information to obtain a target chart and feeds the target chart back to the second terminal.
9. The method of claim 8, the first terminal receiving attribute information of a target graph, comprising:
the first terminal receives attribute information of a target chart input through an editing panel; the editing panel is used for displaying editable attribute information of the chart.
10. A method of generating a chart, the method comprising:
the method comprises the steps that a first terminal receives attribute information of a target chart and generates configuration information of the target chart according to the attribute information; the first terminal is a configuration terminal of a target chart;
the management terminal obtains the configuration information generated by the first terminal, renders the configuration information to obtain the target diagram, and stores the target diagram;
and the second terminal sends a target chart acquisition request to the management terminal so that the management terminal feeds back the target chart to the second terminal according to the target chart acquisition request.
11. The method of claim 10, the first terminal receiving attribute information of a target graph, comprising:
the first terminal receives attribute information of a target chart input through an editing panel; the editing panel is used for displaying editable attribute information of the chart.
12. An apparatus for generating a chart, the apparatus comprising:
the first terminal is used for receiving the attribute information of the target chart and generating the configuration information of the target chart according to the attribute information;
the second terminal is used for acquiring the configuration information generated by the first terminal and rendering the configuration information to obtain the target chart;
the first terminal and the second terminal use the same graph library dependency package, so that the second terminal can render the target graph according to the configuration information generated by the first terminal.
13. The apparatus of claim 12, further comprising: the chart management terminal is used for acquiring the configuration information generated by the first terminal and storing the configuration information;
the chart management terminal is further configured to receive a chart acquisition request sent by the second terminal, and send configuration information of the target chart to the second terminal according to the chart acquisition request, so that the second terminal obtains the configuration information generated by the first terminal.
14. An apparatus for generating a chart, the apparatus comprising:
the configuration terminal is used for receiving the attribute information of the target chart and generating the configuration information of the target chart according to the attribute information;
the demand terminal acquires the configuration information of the configuration terminal and sends a chart generation request containing the configuration information to a management terminal;
and the management terminal can generate a request according to the received chart sent by the demand terminal, render the chart according to the configuration information to obtain a target chart and feed the target chart back to the demand terminal.
15. An apparatus for generating a chart, the apparatus comprising:
the configuration terminal is used for receiving the attribute information of the target chart and generating the configuration information of the target chart according to the attribute information;
the management terminal is used for acquiring the configuration information generated by the configuration terminal, rendering the configuration information to obtain the target chart and storing the target chart;
and the demand terminal is used for sending a target chart acquisition request to the management terminal so that the management terminal feeds back the target chart to the demand terminal according to the target chart acquisition request.
16. An electronic device, comprising: at least one processor and memory, the memory storing a program and configured to perform the method of any of claims 1-11 by the at least one processor.
17. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the method of any one of claims 1 to 11.
CN202011578050.XA 2020-12-28 2020-12-28 Chart generation method and device and electronic equipment Pending CN112712574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011578050.XA CN112712574A (en) 2020-12-28 2020-12-28 Chart generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011578050.XA CN112712574A (en) 2020-12-28 2020-12-28 Chart generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112712574A true CN112712574A (en) 2021-04-27

Family

ID=75545703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011578050.XA Pending CN112712574A (en) 2020-12-28 2020-12-28 Chart generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112712574A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572098A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Updating method and device of mobile terminal page diagram
KR101910179B1 (en) * 2017-07-24 2018-10-19 주식회사 뉴스젤리 Web-based chart library system for data visualization
WO2019062693A1 (en) * 2017-09-28 2019-04-04 阿里巴巴集团控股有限公司 Information interaction method, apparatus, and device
CN110148214A (en) * 2019-05-21 2019-08-20 北京光启元数字科技有限公司 A kind of data visualization method and device of more scenes
CN111752565A (en) * 2020-06-30 2020-10-09 深圳壹账通智能科技有限公司 Interface generation method and device, computer equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572098A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Updating method and device of mobile terminal page diagram
KR101910179B1 (en) * 2017-07-24 2018-10-19 주식회사 뉴스젤리 Web-based chart library system for data visualization
WO2019062693A1 (en) * 2017-09-28 2019-04-04 阿里巴巴集团控股有限公司 Information interaction method, apparatus, and device
CN110148214A (en) * 2019-05-21 2019-08-20 北京光启元数字科技有限公司 A kind of data visualization method and device of more scenes
CN111752565A (en) * 2020-06-30 2020-10-09 深圳壹账通智能科技有限公司 Interface generation method and device, computer equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何冬辉;叶振起;赵奕州;: "JFreeChart在转子动平衡计算***图表开发中的应用与实现", 软件导刊, no. 10, 15 October 2017 (2017-10-15) *
张少应等: "图表技术在Java Web应用程序中的应用研究", 西安航空学院学报, vol. 38, no. 1, 31 January 2020 (2020-01-31), pages 1 *

Similar Documents

Publication Publication Date Title
CN110489116B (en) Page rendering method and device and computer storage medium
CN109978972B (en) Method and device for editing characters in picture
CN110941784A (en) Page generation method and device
CN106991096B (en) Dynamic page rendering method and device
CN105786417B (en) A kind of dynamic display method of static images, device and equipment
CN110020231A (en) Webpage capture method and device thereof
CN106952114A (en) A kind of advertisement editing customized method, device and advertisement editing machine
CN111796821A (en) Page updating method and device
CN112559935A (en) Method and device for creating page
US20240160410A1 (en) Application Development Platform, Micro-program Generation Method, and Device and Storage Medium
CN111857718A (en) List editing method, device, equipment and storage medium
CN115080016A (en) Extended function implementation method, device, equipment and medium based on UE editor
CN110865863A (en) Interface display method and device for fast application and storage medium
CN106648623B (en) Display method and device for characters in android system
CN112732252A (en) Method and device for dynamically generating UI (user interface) and electronic equipment
CN113110829A (en) Multi-UI component library data processing method and device
CN108920241B (en) Display state adjusting method, device and equipment
CN112712574A (en) Chart generation method and device and electronic equipment
CN110968991A (en) Method and related device for editing characters
CN110992438B (en) Picture editing method and device
CN116302230A (en) Page display method, device and equipment
CN114896020A (en) Popup window generation method and device, electronic equipment and readable storage medium
CN114489645A (en) Form generation construction method, system and storage medium based on Vue and Element-UI
CN112000329B (en) Data display method, device, equipment and medium
CN114356324A (en) Interface processing method, device, equipment and storage medium

Legal Events

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

Effective date of registration: 20220706

Address after: 100190 Beijing Haidian District Zhichun Road 49 No. 3 West 309

Applicant after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 100102 rooms 1901-1903, 19th floor, building 19, District 7, Wangjing East Garden, Chaoyang District, Beijing

Applicant before: Beijing Guangqiyuan Digital Technology Co.,Ltd.

TA01 Transfer of patent application right