CN110955854A - Thermodynamic diagram generation method and device - Google Patents

Thermodynamic diagram generation method and device Download PDF

Info

Publication number
CN110955854A
CN110955854A CN201811130399.XA CN201811130399A CN110955854A CN 110955854 A CN110955854 A CN 110955854A CN 201811130399 A CN201811130399 A CN 201811130399A CN 110955854 A CN110955854 A CN 110955854A
Authority
CN
China
Prior art keywords
thermodynamic diagram
layer
page
website page
data
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
CN201811130399.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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811130399.XA priority Critical patent/CN110955854A/en
Publication of CN110955854A publication Critical patent/CN110955854A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a thermodynamic diagram generation method and device, relates to the technical field of thermodynamic diagrams, and mainly aims to draw the thermodynamic diagram in real time in a corresponding page by accessing a user website page and improve the adaption performance of the thermodynamic diagram to the page. The main technical scheme of the invention is as follows: accessing a specified website page, wherein the specified website page is a background image of a thermodynamic diagram to be made; setting a thermodynamic diagram layer in the specified website page; acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters; and adjusting the size of the thermodynamic diagram layer according to the distribution of the thermodynamic diagram data, and drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page. The method is mainly used for making the website thermodynamic diagram.

Description

Thermodynamic diagram generation method and device
Technical Field
The invention relates to the technical field of thermodynamic diagrams, in particular to a thermodynamic diagram generation method and device.
Background
The thermodynamic diagram displays the user page click position or a diagram of the page position of the user in a special highlight form, and the general access condition and the click preference of the user can be visually observed by virtue of the thermodynamic diagram. For example, if 3 links with different positions on a page are pointing to the same particular product page, the thermodynamic diagram would show which link the visitor prefers to click on, and the more links clicked, the higher the intensity. This will help the user to improve the design of the web page and make it more user friendly.
At present, when an thermodynamic diagram is manufactured, a code is inserted into a client website to monitor each click behavior of the website after the client agrees in advance, and then the click behaviors and corresponding information such as page size and website address are collected and stored in a database. Acquiring a page image and website information corresponding to the thermodynamic diagram to be manufactured based on the acquired data, acquiring corresponding click data from a database according to the website information, rendering the click data into colored points in the page image, and generating the thermodynamic diagram. However, with the increase of the adjustment frequency of the website pages and the enhancement of the page universality (a set of page codes is suitable for various terminals such as mobile phones and computers), the thermodynamic diagram generation method requires a designer to adjust thermodynamic diagram production parameters according to the change of the website pages, such as the size and the resolution of the thermodynamic diagram pages. Therefore, the existing thermodynamic diagram making mode lacks the adaptability to the page, and the workload of thermodynamic diagram making and maintenance is increased.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for generating a thermodynamic diagram, and mainly aims to draw the thermodynamic diagram in real time in a corresponding page by accessing a user website page, so as to improve the performance of adapting the thermodynamic diagram to the page.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, the present invention provides a thermodynamic diagram generation method, including:
accessing a specified website page, wherein the specified website page is a background image of a thermodynamic diagram to be made;
setting a thermodynamic diagram layer in the specified website page;
acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters;
and according to the distribution of the thermodynamic diagram data, adjusting the size of the thermodynamic diagram layer, and drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page.
Preferably, after accessing the specified website page, the method further comprises:
adding thermodynamic diagram parameters in a Uniform Resource Locator (URL) of the specified website page, wherein the thermodynamic diagram parameters are parameters set by a user for making a thermodynamic diagram.
Preferably, the setting of the thermodynamic diagram layer in the specified website page includes:
judging whether the thermodynamic diagram parameters exist in the URL of the specified website page or not;
if the background image exists, acquiring a thermodynamic diagram plug-in, initializing the thermodynamic diagram plug-in the specified website page by using the thermodynamic diagram parameters, and setting a thermodynamic diagram layer on the background image by the thermodynamic diagram plug-in.
Preferably, the adjusting the size of the thermodynamic diagram layer according to the distribution of the thermodynamic diagram data includes:
acquiring an initial size of the thermodynamic diagram layer;
judging whether the display range of the thermodynamic diagram layer covers the thermodynamic diagram data or not according to the page position in the thermodynamic diagram data;
if yes, executing operation of drawing thermodynamic diagram data in the thermodynamic diagram layer to generate thermodynamic diagrams of the specified website page;
and if not, increasing the size of the thermodynamic diagram layer until the thermodynamic diagram data are all distributed in the display range of the thermodynamic diagram layer.
Preferably, drawing thermodynamic diagram data in the thermodynamic diagram layer to generate a thermodynamic diagram of the specified website page includes:
dividing the thermodynamic diagram layer into a plurality of data loading areas according to preset line heights;
and loading thermodynamic diagram data distributed in the data loading area in batches according to the sequence from top to bottom.
In another aspect, the present invention provides a thermodynamic diagram generation apparatus, including:
the page access unit is used for accessing a specified website page, and the specified website page is a background image of the thermodynamic diagram to be made;
the layer setting unit is used for setting a thermodynamic diagram layer in a specified website page opened by the page access unit;
the data acquisition unit is used for acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters;
the layer adjusting unit is used for adjusting the size of the thermodynamic diagram layer set by the layer setting unit according to the distribution of the thermodynamic diagram data acquired by the data acquiring unit;
and the drawing unit is used for drawing thermodynamic diagram data in the thermodynamic diagram layer adjusted by the layer adjusting unit to generate the thermodynamic diagram of the specified website page.
Preferably, the apparatus further comprises:
and the parameter setting unit is used for adding thermodynamic diagram parameters into the uniform resource locator URL of the specified website page after the page access unit accesses the specified website page, wherein the thermodynamic diagram parameters are parameters set by a user and used for making a thermodynamic diagram.
Preferably, the layer setting unit includes:
the judging module is used for judging whether the thermodynamic diagram parameters exist in the URL of the specified website page or not;
and the setting module is used for acquiring a thermodynamic diagram plug-in when the judging module determines that thermodynamic diagram parameters exist in the URL, initializing the thermodynamic diagram plug-in the specified website page by using the thermodynamic diagram parameters, and setting a thermodynamic diagram layer on the background image by using the thermodynamic diagram plug-in.
Preferably, the layer adjusting unit includes:
the obtaining module is used for obtaining the initial size of the thermodynamic diagram layer;
the judging module is used for judging whether the display range of the thermodynamic diagram layer acquired by the acquiring module covers the thermodynamic diagram data or not according to the page position in the thermodynamic diagram data;
the execution module is used for executing the operation of drawing thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page when the judgment module determines to cover the thermodynamic diagram data;
and the adjusting module is used for increasing the size of the thermodynamic diagram layer until the thermodynamic diagram data are all distributed in the display range of the thermodynamic diagram layer when the judging module determines that the thermodynamic diagram data are not covered.
Preferably, the drawing unit includes:
the partitioning module is used for partitioning the thermodynamic diagram layer into a plurality of data loading areas according to preset line heights;
and the drawing module is used for loading the thermodynamic diagram data distributed in the data loading area obtained by the partitioning module in batches according to the sequence from top to bottom.
In order to achieve the above object, according to another aspect of the present invention, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the thermodynamic diagram generation method described above.
In order to achieve the above object, according to another aspect of the present invention, there is provided a processor for executing a program, wherein the program executes to perform the thermodynamic diagram generation method described above.
According to the thermodynamic diagram generation method and device provided by the invention, the page of the user website is accessed in real time, the thermodynamic diagram layer is arranged in the page, and the size of the thermodynamic diagram layer is adjusted according to the distribution state of the thermodynamic diagram data, so that the thermodynamic diagram data corresponding to the page of the user website can be rendered on the thermodynamic diagram layer, and the thermodynamic diagram is obtained. Compared with the existing thermodynamic diagram generation mode, the thermodynamic diagram is drawn in real time in the accessed website page, and the thermodynamic diagram layer arranged in the page is utilized.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a thermodynamic diagram generation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another thermodynamic diagram generation method proposed by an embodiment of the present invention;
fig. 3 is a block diagram showing a thermodynamic diagram generating apparatus according to an embodiment of the present invention;
fig. 4 shows a block diagram of another thermodynamic diagram generation apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a method for generating a thermodynamic diagram, as shown in fig. 1, when a user views the thermodynamic diagram through the method, the user draws the thermodynamic diagram on a website page in real time by accessing the corresponding website page. The method comprises the following specific steps:
101. and accessing the specified website page.
And the page data in the specified website page is used as a background image for creating the thermodynamic diagram. It should be noted that, when the step of accessing the page of the specified website is performed, the page is accessed in the specified thermodynamic diagram application, the thermodynamic diagram application may provide corresponding parameters for creating a thermodynamic diagram to the user, the specific content displayed by the thermodynamic diagram may be determined by selecting different parameters, for example, the time parameter may determine a time period corresponding to the heat displayed by the thermodynamic diagram, the dimension parameter is used to determine specific heat data, that is, the thermodynamic diagram drawn in the page may display data heat in different dimensions by analyzing the switching of the dimensions, the resolution parameter generally provides a default parameter value, and the user may also modify the data in real time according to the display requirement. That is to say, the access operation in the embodiment of the present invention is not the same as the page access commonly used in a browser, but is the access performed on the website page corresponding to the thermodynamic diagram to be created after the user sets the specific parameters.
102. And setting a thermodynamic diagram layer in a specified website page.
The thermodynamic diagram layers are one or more layers additionally arranged in the pages of the accessed specified websites and used for drawing thermodynamic diagrams. Correspondingly, the content in the specified website page can be regarded as a background image, and the background image is drawn in a layer which is independent from the thermodynamic diagram layer.
It can be seen that in this step, a thermodynamic diagram layer is further set in the specified website page, so that the thermodynamic diagram corresponding to the specified website page is drawn in real time in the layer.
103. And acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters.
Generally, the thermodynamic diagram data is stored in a specified database based on the URL of a specified website page in the acquisition process, and therefore, the preset parameters can be acquired according to the URL of the specified website page. And extracting corresponding thermodynamic diagram data from the database according to preset parameters.
Further, the preset parameters may also include parameters set by the user before executing accessing the specified website page, and the parameters may be used to further filter the thermodynamic diagram data obtained from the database.
104. And according to the distribution of the thermodynamic diagram data, adjusting the size of a thermodynamic diagram layer, and drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page.
Because the thermodynamic diagram data generally describes operation data of visitors of a website page in the page, such as clicking, sliding and the like, the data generally corresponds to position data in the page, and according to the position data, the distribution state of the thermodynamic diagram data in the page can be determined. In the embodiment of the present invention, when a thermodynamic diagram layer is initially set in a website page, generally, different pages and distribution states of different thermodynamic diagram data are set according to a preset size, in order to draw all thermodynamic diagram data in the thermodynamic diagram layer, a size of the thermodynamic diagram layer needs to be adjusted, a specific adjustment algorithm is not described in detail in this step, the adjusted thermodynamic diagram layer can cover all thermodynamic diagram data, and the thermodynamic diagram of the page is drawn by rendering the thermodynamic diagram data in the thermodynamic diagram layer.
It can be seen from the above implementation manner that, in the thermodynamic diagram generation method adopted in the embodiment of the present invention, the thermodynamic diagram layer for drawing the thermodynamic diagram is loaded in the visited specified website page, so that the thermodynamic diagram is drawn in the website page in real time. In addition, in the process of drawing the thermodynamic diagrams in the page, a thermodynamic diagram layer for drawing the thermodynamic diagrams is arranged in the website page, and the size of the thermodynamic diagram layer is adjusted according to the specific position distribution of thermodynamic diagram data, so that the adaptation of different website pages is realized, and the adaptability of thermodynamic diagram making is improved.
In order to describe the thermodynamic diagram generation method proposed by the present invention in more detail, and in particular how to add a thermodynamic diagram layer to a specified website page and adjust the size of the thermodynamic diagram layer in the specified website page to draw the thermodynamic diagram, an embodiment of the present invention further proposes a thermodynamic diagram generation method, as shown in fig. 2, the method includes the following specific steps:
201. and accessing the specified website page.
The step is the same as step 101 in fig. 1, and before accessing a specified website page, the receiving of the thermodynamic diagram parameters selected by the user specifically includes: the display device refers to terminal devices such as a mobile phone, a PAD, a PC and the like used by a user for accessing a specified website page, and because application operating environments of different terminal devices are different, browsers used in different terminal devices are different, the display page size is different from the page size of different terminals.
It should be noted that, the thermodynamic diagram parameters set by the user can be selectively set by the user according to needs, and each parameter has a corresponding default parameter, and is set according to the default parameter when the user does not select the parameter.
202. Thermodynamic diagram parameters are added to the Uniform Resource Locator (URL) of a specified website page.
After a specified website page is accessed, the URL of the page is extracted, and thermodynamic diagram parameters selected by the user are added to the URL. The purpose of this step is to identify that the purpose of this access is to generate a thermodynamic diagram through a detection program in the page after the server of the specified website page responds to the access request. The detection program is a program which is deployed in a specified website in advance and used for collecting thermodynamic diagram data. That is, for the specified website page, when it detects that the thermodynamic diagram parameters exist in the URL accessed by the accessing client, the acquisition request of the thermodynamic diagram plug-in is sent, and the content of step 203 is executed.
203. And heating the chart plug-in a specified website page.
The thermodynamic diagram plug-in is used for setting a thermodynamic diagram layer on a page with a specified website page as a background image. The thermodynamic diagram insert is the core component that generates the thermodynamic diagram. In the prior art, images corresponding to a specified website page are obtained, and a thermodynamic diagram plug-in is used locally to draw a thermodynamic diagram, but in the embodiment of the invention, the thermodynamic diagram plug-in is loaded into the specified website page and executed based on the operating environment of the specified website, so that the degree of adaptation between the thermodynamic diagram plug-in and the specified website page is higher. In addition, a toolbar for adjusting or counting data in the thermodynamic diagram can be displayed through the thermodynamic diagram plug-in, and a user can switch data analysis dimensions or count results of the thermodynamic diagram data through the toolbar. In addition, based on the thermodynamic diagram drawn by the page of the specified website, the user can perform operations such as page turning, clicking and the like on elements in the page while viewing the thermodynamic diagram, which cannot be realized in the existing thermodynamic diagrams.
Specifically, when judging whether the thermodynamic diagram parameters exist in the URL, since the thermodynamic diagram parameters selected by the user may be multiple, it is only necessary to judge whether at least one thermodynamic diagram parameter exists in the URL, and if so, obtain a thermodynamic diagram plug-in and load the thermodynamic diagram plug-in into a specified website page.
Further, after the thermodynamic diagram plug-in is loaded on the specified website page, the thermodynamic diagram plug-in is initialized in the specified website page by using the thermodynamic diagram parameters, after the thermodynamic diagram plug-in is started, the thermodynamic diagram plug-in inserts the thermodynamic diagram layer in the image of the specified website page, determines preset parameters according to the thermodynamic diagram parameters and the URL of the page, and executes step 204.
204. And acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters.
The content of this step is the same as step 103 in fig. 1, and is not described here again.
205. And adjusting the size of the thermodynamic diagram layer according to the distribution of the thermodynamic diagram data.
After the thermodynamic diagram plug-in is started, a thermodynamic diagram layer is set in a specified website page, and the size of the thermodynamic diagram layer is preset or determined according to page elements existing in the specified website page. However, the thermodynamic diagram layer cannot cover the whole page in some cases, and the thermodynamic diagram data corresponding to the page may be distributed outside the range covered by the preset thermodynamic diagram layer, so that the thermodynamic diagram layer cannot be drawn. On the basis of the started thermodynamic diagram plug-in, the initial size of a preset thermodynamic diagram layer is obtained, then the distribution positions of the thermodynamic diagram data corresponding to the page in the page are obtained according to preset parameters, so that whether the thermodynamic diagram data are all in the display range covered by the thermodynamic diagram layer is judged, if all the thermodynamic diagram data are in the range, the size of the thermodynamic diagram layer does not need to be adjusted, the thermodynamic diagram data can be directly drawn, or the step 206 is executed, and partial drawing of the thermodynamic diagram is performed; if thermodynamic diagram data outside the display range exists, at this time, the size of the thermodynamic diagram layer is adjusted, generally, the display range covered by the thermodynamic diagram layer is increased, when the layer is rectangular, the size of the thermodynamic diagram layer can be adjusted by increasing the width or the high side length, or the whole page size of the page can be directly obtained, and the page size is used as the adjusted thermodynamic diagram layer size. And finally, the distribution position of the thermodynamic diagram data is located within the display range of the thermodynamic diagram layer.
206. And partitioning and drawing thermodynamic diagram data in the thermodynamic diagram layer.
The step is to perform thermodynamic diagram drawing based on the thermodynamic diagram layer. In the embodiment of the invention, when the thermodynamic diagram data in the page is more, the drawing of the page needs longer time, so that the application effect of the thermodynamic diagram viewed by a user is influenced. Therefore, in order to improve the drawing efficiency of the thermodynamic diagram, in the embodiment, the page is divided into a plurality of areas by a partition drawing mode, data loading and drawing are performed on the areas one by one, and the drawn areas are displayed to the user.
Specifically, the thermodynamic diagram layer can be divided into a plurality of data loading areas according to a preset line height, such as 2000 pixels, then thermodynamic diagram data corresponding to each loading area are drawn into the thermodynamic diagram layer one by one from top to bottom, and after the setting of one loading area is completed, the loading area is subjected to image display, so that the drawing waiting time for a user to check the thermodynamic diagram is reduced, and the application experience of the user is improved.
While the specific flow of drawing the thermodynamic diagram in the accessed specified website page has been described in detail through the above embodiments, in order to achieve the above object, according to another aspect of the present invention, an embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, where, when the program runs, a device on which the storage medium is controlled to execute the thermodynamic diagram generation method described above.
In addition, in order to achieve the above object, according to another aspect of the present invention, an embodiment of the present invention further provides a processor, configured to execute a program, where the program executes to perform the thermodynamic diagram generation method described above.
Further, as an implementation of the foregoing method, an embodiment of the present invention provides a thermodynamic diagram generating device, where an embodiment of the device corresponds to the foregoing method embodiment, and details in the foregoing method embodiment are not repeated in this device embodiment for convenience of reading, but it should be clear that the device in this embodiment can correspondingly implement all the contents in the foregoing method embodiment. The device is used for adding a thermodynamic diagram layer in a website page to be accessed, and directly drawing a corresponding thermodynamic diagram, and specifically as shown in fig. 3, the device comprises:
the page access unit 31 is configured to access a specified website page, where the specified website page is a background image of a thermodynamic diagram to be produced;
the layer setting unit 32 is configured to set a thermodynamic diagram layer in the specified website page opened by the page access unit 31;
the data acquisition unit 33 is configured to acquire thermodynamic diagram data corresponding to the specified website page according to preset parameters;
a layer adjusting unit 34, configured to adjust a size of the thermodynamic diagram layer set by the layer setting unit 32 according to the distribution of the thermodynamic diagram data acquired by the data acquiring unit 33;
a drawing unit 35, configured to draw thermodynamic diagram data in the thermodynamic diagram layer adjusted by the layer adjusting unit 34 to generate a thermodynamic diagram of the specified website page.
Further, as shown in fig. 4, the apparatus further includes:
a parameter setting unit 36, configured to add a thermodynamic diagram parameter, which is a parameter set by a user for creating a thermodynamic diagram, to the uniform resource locator URL of the specified website page after the page accessing unit 31 accesses the specified website page.
Further, as shown in fig. 4, the layer setting unit 32 includes:
the judging module 321 is configured to judge whether the thermodynamic diagram parameter exists in the URL of the specified website page;
the setting module 322 is configured to, when the determining module 321 determines that thermodynamic diagram parameters exist in the URL, obtain a thermodynamic diagram plugin, initialize the thermodynamic diagram plugin in the specified website page using the thermodynamic diagram parameters, and set a thermodynamic diagram layer on the background image by the thermodynamic diagram plugin.
Further, as shown in fig. 4, the layer adjusting unit 34 includes:
an obtaining module 341, configured to obtain an initial size of the thermodynamic diagram layer;
the determining module 342 is configured to determine whether the display range of the thermodynamic diagram layer acquired by the acquiring module 341 covers the thermodynamic diagram data according to the page position in the thermodynamic diagram data;
an executing module 343, configured to, when the determining module 342 determines to overlay the thermodynamic diagram data, execute an operation of drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate a thermodynamic diagram of the specified website page;
the adjusting module 344 is configured to, when the determining module 342 determines that the thermodynamic diagram data is not covered, increase the size of the thermodynamic diagram layer until the thermodynamic diagram data is completely distributed in the display range of the thermodynamic diagram layer.
Further, as shown in fig. 4, the drawing unit 35 includes:
the partitioning module 351 is used for partitioning the thermodynamic diagram layer into a plurality of data loading areas according to preset line heights;
the drawing module 352 is configured to load, in batches according to the order from top to bottom, thermodynamic diagram data distributed in the data loading area obtained by the partitioning module 351.
In summary, in the thermodynamic diagram generation method and apparatus adopted by the embodiments of the present invention, when a thermodynamic diagram is drawn, a corresponding page is accessed, a parameter for drawing the thermodynamic diagram is added to a URL of the page, a website page requests to add a thermodynamic diagram plug-in the page by identifying the parameter in the URL, and the thermodynamic diagram layer is added to the page by initializing the thermodynamic diagram plug-in, so as to draw thermodynamic diagram data in the thermodynamic diagram layer, and obtain the thermodynamic diagram. Meanwhile, in order to improve the adaptability of different pages in the embodiment of the invention, the size of the set thermodynamic diagram layer can be adjusted according to the actual position distribution of the thermodynamic diagram data in the page, so as to obtain the diagram layer capable of drawing all the thermodynamic diagram data, and thus, the thermodynamic diagram containing all the thermodynamic diagram data is drawn.
The thermodynamic diagram generating device comprises a processor and a memory, wherein the page access unit, the layer setting unit, the data acquisition unit, the layer adjustment unit, the drawing unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, the fact that the thermodynamic diagram is drawn in real time in a corresponding page through accessing a user website page is achieved through adjusting kernel parameters, and the performance of the thermodynamic diagram for adapting to the page is improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the thermodynamic diagram generation method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for generating the thermodynamic diagram is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: accessing a specified website page, wherein the specified website page is a background image of a thermodynamic diagram to be made; setting a thermodynamic diagram layer in the specified website page; acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters; and according to the distribution of the thermodynamic diagram data, adjusting the size of the thermodynamic diagram layer, and drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page.
And the devices herein are not limited to servers, PCs, PADs, handsets, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: accessing a specified website page, wherein the specified website page is a background image of a thermodynamic diagram to be made; setting a thermodynamic diagram layer in the specified website page; acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters; and according to the distribution of the thermodynamic diagram data, adjusting the size of the thermodynamic diagram layer, and drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page.
Further, after accessing the specified website page, the method further comprises:
adding thermodynamic diagram parameters in a Uniform Resource Locator (URL) of the specified website page, wherein the thermodynamic diagram parameters are parameters set by a user for making a thermodynamic diagram.
Further, the setting of the thermodynamic diagram layer in the specified website page includes:
judging whether the thermodynamic diagram parameters exist in the URL of the specified website page or not;
if the background image exists, acquiring a thermodynamic diagram plug-in, initializing the thermodynamic diagram plug-in the specified website page by using the thermodynamic diagram parameters, and setting a thermodynamic diagram layer on the background image by the thermodynamic diagram plug-in.
Further, the adjusting the size of the thermodynamic diagram layer according to the distribution of the thermodynamic diagram data includes:
acquiring an initial size of the thermodynamic diagram layer;
judging whether the display range of the thermodynamic diagram layer covers the thermodynamic diagram data or not according to the page position in the thermodynamic diagram data;
if yes, executing operation of drawing thermodynamic diagram data in the thermodynamic diagram layer to generate thermodynamic diagrams of the specified website page;
and if not, increasing the size of the thermodynamic diagram layer until the thermodynamic diagram data are all distributed in the display range of the thermodynamic diagram layer.
Further, drawing thermodynamic diagram data in the thermodynamic diagram layer to generate a thermodynamic diagram of the specified website page comprises:
dividing the thermodynamic diagram layer into a plurality of data loading areas according to preset line heights;
and loading thermodynamic diagram data distributed in the data loading area in batches according to the sequence from top to bottom.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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). The 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 magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that 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 identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are 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 (10)

1. A method of generating a thermodynamic diagram, the method comprising:
accessing a specified website page, wherein the specified website page is a background image of a thermodynamic diagram to be made;
setting a thermodynamic diagram layer in the specified website page;
acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters;
and according to the distribution of the thermodynamic diagram data, adjusting the size of the thermodynamic diagram layer, and drawing the thermodynamic diagram data in the thermodynamic diagram layer to generate the thermodynamic diagram of the specified website page.
2. The method of claim 1, wherein after accessing a specified web site page, the method further comprises:
adding thermodynamic diagram parameters in a Uniform Resource Locator (URL) of the specified website page, wherein the thermodynamic diagram parameters are parameters set by a user for making a thermodynamic diagram.
3. The method of claim 2, wherein the setting of the thermodynamic diagram layer in the specified website page comprises:
judging whether the thermodynamic diagram parameters exist in the URL of the specified website page or not;
if the background image exists, acquiring a thermodynamic diagram plug-in, initializing the thermodynamic diagram plug-in the specified website page by using the thermodynamic diagram parameters, and setting a thermodynamic diagram layer on the background image by the thermodynamic diagram plug-in.
4. The method of claim 1, wherein the resizing the thermodynamic diagram layers according to the distribution of thermodynamic diagram data comprises:
acquiring an initial size of the thermodynamic diagram layer;
judging whether the display range of the thermodynamic diagram layer covers the thermodynamic diagram data or not according to the page position in the thermodynamic diagram data;
if yes, executing operation of drawing thermodynamic diagram data in the thermodynamic diagram layer to generate thermodynamic diagrams of the specified website page;
and if not, increasing the size of the thermodynamic diagram layer until the thermodynamic diagram data are all distributed in the display range of the thermodynamic diagram layer.
5. The method of any one of claims 1-4, wherein drawing thermodynamic diagram data in the thermodynamic diagram layer to generate a thermodynamic diagram for the specified web site page comprises:
dividing the thermodynamic diagram layer into a plurality of data loading areas according to preset line heights;
and loading thermodynamic diagram data distributed in the data loading area in batches according to the sequence from top to bottom.
6. An apparatus for generating a thermodynamic diagram, the apparatus comprising:
the page access unit is used for accessing a specified website page, and the specified website page is a background image of the thermodynamic diagram to be made;
the layer setting unit is used for setting a thermodynamic diagram layer in a specified website page opened by the page access unit;
the data acquisition unit is used for acquiring thermodynamic diagram data corresponding to the specified website page according to preset parameters;
the layer adjusting unit is used for adjusting the size of the thermodynamic diagram layer set by the layer setting unit according to the distribution of the thermodynamic diagram data acquired by the data acquiring unit;
and the drawing unit is used for drawing thermodynamic diagram data in the thermodynamic diagram layer adjusted by the layer adjusting unit to generate the thermodynamic diagram of the specified website page.
7. The apparatus of claim 6, further comprising:
and the parameter setting unit is used for adding thermodynamic diagram parameters into the uniform resource locator URL of the specified website page after the page access unit accesses the specified website page, wherein the thermodynamic diagram parameters are parameters set by a user and used for making a thermodynamic diagram.
8. The apparatus according to claim 7, wherein the layer setting unit includes:
the judging module is used for judging whether the thermodynamic diagram parameters exist in the URL of the specified website page or not;
and the setting module is used for acquiring a thermodynamic diagram plug-in when the judging module determines that thermodynamic diagram parameters exist in the URL, initializing the thermodynamic diagram plug-in the specified website page by using the thermodynamic diagram parameters, and setting a thermodynamic diagram layer on the background image by using the thermodynamic diagram plug-in.
9. A storage medium comprising a stored program, wherein the storage medium is controlled by a device to execute the thermodynamic diagram generation method according to any one of claims 1 to 5 when the program is executed.
10. A processor, configured to execute a program, wherein the program executes to perform the thermodynamic diagram generation method according to any one of claims 1 to 5.
CN201811130399.XA 2018-09-27 2018-09-27 Thermodynamic diagram generation method and device Pending CN110955854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811130399.XA CN110955854A (en) 2018-09-27 2018-09-27 Thermodynamic diagram generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811130399.XA CN110955854A (en) 2018-09-27 2018-09-27 Thermodynamic diagram generation method and device

Publications (1)

Publication Number Publication Date
CN110955854A true CN110955854A (en) 2020-04-03

Family

ID=69967818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811130399.XA Pending CN110955854A (en) 2018-09-27 2018-09-27 Thermodynamic diagram generation method and device

Country Status (1)

Country Link
CN (1) CN110955854A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556574A (en) * 2021-07-14 2021-10-26 深圳市人工智能与机器人研究院 Video recommendation method, server and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332962A1 (en) * 2009-06-30 2010-12-30 International Business Machines Corporation Determining web analytics information
CN102043850A (en) * 2010-12-20 2011-05-04 百度在线网络技术(北京)有限公司 Method and equipment for generating thermodynamic diagram
CN104391951A (en) * 2014-11-27 2015-03-04 北京国双科技有限公司 Web page thermodynamic diagram loading method and device
CN107562811A (en) * 2017-08-11 2018-01-09 湖北盛天网络技术股份有限公司 Click on heating power drawing generating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332962A1 (en) * 2009-06-30 2010-12-30 International Business Machines Corporation Determining web analytics information
CN102043850A (en) * 2010-12-20 2011-05-04 百度在线网络技术(北京)有限公司 Method and equipment for generating thermodynamic diagram
CN104391951A (en) * 2014-11-27 2015-03-04 北京国双科技有限公司 Web page thermodynamic diagram loading method and device
CN107562811A (en) * 2017-08-11 2018-01-09 湖北盛天网络技术股份有限公司 Click on heating power drawing generating method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王家耀: "《网店美工》", 重庆大学出版社 *
高日河: "基于信息为中心架构的物联网浏览器设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556574A (en) * 2021-07-14 2021-10-26 深圳市人工智能与机器人研究院 Video recommendation method, server and computer storage medium

Similar Documents

Publication Publication Date Title
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
KR102268940B1 (en) Service processing method and device
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
CN106933887B (en) Data visualization method and device
CN107276842B (en) Interface test method and device and electronic equipment
CN110659092B (en) Webpage screenshot method and device, computer equipment and storage medium
CN107957837B (en) Method and device for generating shortcut of webpage application program and terminal equipment
CN104881273A (en) Webpage rendering analysis method and terminal device
CN112783783A (en) Webpage point burying method, device and equipment and readable storage medium
CN110968314B (en) Page generation method and device
CN108399119B (en) Method and device for data processing and automatic testing of browsing service kernel engine
CN105678127A (en) Verification method and device for identity information
US9503551B2 (en) Hybrid native networked applications
CN109598526B (en) Method and device for analyzing media contribution
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
CN114157568B (en) Browser secure access method, device, equipment and storage medium
CN114329281A (en) Rendering server, webpage rendering method and webpage rendering device
CN106682044B (en) Data processing method and device
CN108664191B (en) System access method and device
CN108874379B (en) Page processing method and device
CN107704464B (en) Method and device for analyzing path of static resource
CN110955854A (en) Thermodynamic diagram generation method and device
JP6505849B2 (en) Generation of element identifier
CN117093386A (en) Page screenshot method, device, computer equipment and storage medium
CN110708270B (en) Abnormal link detection method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200403