Data visualization method, system, device and storage medium
By introducing an independent paging component into the data visualization system, the resource waste problem caused by repeatedly embedding the traditional paging function in each component is solved, achieving faster display speed and lower resource overhead.
Patent Information
- Application Number
- CN202211726998.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-12-26
AI Technical Summary
In traditional data visualization systems, the paging function exists in each component or function item, resulting in unnecessary resource overhead.
By introducing an independent pager component into the data visualization system, associating it with the target component that needs to be paging, and receiving the data to be rendered for paging processing after detecting the rendering instruction, the paging function is only implemented in the pager component, avoiding repeated embedding in each component.
It speeds up the display and initialization speed of the visualization platform, reduces resource overhead, and improves the stability and aesthetics of the system.
Smart Images

Figure CN116050350B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a data visualization method, system, device, and computer-readable storage medium. Background Art
[0002] The rapid development of data visualization systems has led to the emergence of large data volumes. When presenting large amounts of data, data paging is crucial. However, traditional paging functionality is often implemented within every component or function within a visualization platform, making it redundant and leading to unnecessary resource consumption. Summary of the Invention
[0003] The main purpose of this application is to provide a data visualization method, system, device and computer-readable storage medium, aiming to solve the technical problem that the paging function in the data visualization system exists in each component or function item, resulting in unnecessary resource consumption.
[0004] To achieve the above objectives, the present application provides a data visualization method, which is applied to a pager component in a data visualization system. The data visualization system also includes multiple other components communicatively connected to the pager component. The data visualization method includes the following steps:
[0005] Associating target elements that need to be paginated among the multiple other elements;
[0006] After detecting the rendering instruction, receiving the to-be-rendered data sent by the target component;
[0007] Performing paging processing on the data to be rendered according to the rendering instruction to obtain target data;
[0008] The target data is sent to the target component for visual display.
[0009] Optionally, the step of associating a target component that needs to be paginated among multiple other components includes:
[0010] After receiving the unique identifier, the other component among the plurality of other components that sent the unique identifier is used as a target component;
[0011] A topic corresponding to the unique identifier in the target element is associated.
[0012] Optionally, the step of performing paging processing on the data to be rendered according to the rendering instruction to obtain target data includes:
[0013] Obtaining preset input parameter fields, wherein the input parameter fields include at least a number of entries bound value, a total number of data entries, a current page number value, and a page number bound value;
[0014] Constructing a paging mode corresponding to the data to be rendered according to the input parameter field;
[0015] The data to be rendered is paged according to the paging mode to obtain target data.
[0016] Optionally, the step of constructing a paging mode corresponding to the data to be rendered according to the input parameter field includes:
[0017] Adjusting the input parameter field according to the to-be-rendered data and / or a preset adjustment instruction, and sending the adjusted input parameter field to the target component;
[0018] A paging mode corresponding to the data to be rendered is constructed according to the adjusted input parameter field.
[0019] Furthermore, to achieve the above-mentioned object, the present application further provides a data visualization method, which is applied to a target component in the data visualization system, wherein the data visualization system further includes a pager component communicatively connected to the plurality of other components, and the data visualization method includes the following steps:
[0020] Associating with the paginator element;
[0021] If it is detected that the content of the data to be rendered in the target component has changed, a rendering instruction is generated, and the rendering instruction is sent to the pager component, and the data to be rendered is sent to the pager component;
[0022] Target data fed back by the pager component based on the data to be rendered is received, and the target data is visually displayed.
[0023] Optionally, the step of associating with the pager element comprises:
[0024] A preset unique identifier is sent to the pager element, and after detecting that the pager element associates the subject of the target element based on the unique identifier, it is determined to be associated with the pager element.
[0025] Optionally, the step of receiving target data fed back by the pager component based on the data to be rendered includes:
[0026] After receiving the adjusted input parameter field sent by the pager component, the application data interface corresponding to the target component is called according to the adjusted input parameter field to receive the target data sent by the pager component.
[0027] In addition, to achieve the above-mentioned purpose, the present application further provides a data visualization system, the data visualization system comprising a communicatively connected pager element and a plurality of other elements, the plurality of other elements including at least a target element, the data visualization system comprising:
[0028] The target element is used to associate with the pager element;
[0029] The paging element is used to associate target elements that need to be paging among the other elements;
[0030] The target component is configured to generate a rendering instruction if a change is detected in the content of the data to be rendered in the target component, and send the rendering instruction to the pager component, and send the data to be rendered to the pager component;
[0031] The pager component is configured to receive the to-be-rendered data sent by the target component after detecting a rendering instruction;
[0032] The pager component is used to perform paging processing on the data to be rendered according to the rendering instruction to obtain target data;
[0033] The paging component is used to send the target data to the target component for visual display;
[0034] The target component is configured to receive target data fed back by the pager component based on the data to be rendered, and to visually display the target data.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a data visualization device, which includes a memory, a processor, and a data visualization program stored on the memory and executable on the processor, and when the data visualization program is executed, the steps of the data visualization method as described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a data visualization program is stored. When the data visualization program is executed by the processor, the steps of the data visualization method as described above are implemented.
[0037] The present application associates a pager element in a data visualization system with a target element that needs to be paging among multiple other elements in the data visualization system, and receives the data to be rendered in the target element after detecting a rendering instruction, wherein the rendering instruction is generated by the pager element or the target element. After receiving the data to be rendered, the data to be rendered is rendered to obtain target data, and the target element is notified to receive the target data, and the target data is sent to the target element for visual display. That is, in the visualization platform, for elements that need to be paging, it is only necessary to call the pager element, and there is no need to embed elements with the same paging function in each element, which speeds up the display speed and initialization speed of the visualization platform. In addition, there is only one pager element in the data visualization system, which avoids the paging function existing in each element or function item, resulting in unnecessary resource overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;
[0039] Figure 2 This is a flowchart of the steps of the first embodiment of the data visualization method of the present application;
[0040] Figure 3 This is a schematic flow chart of the steps of the second embodiment of the data visualization method of the present application;
[0041] Figure 4 A schematic diagram of a scenario for the data visualization method of this application;
[0042] Figure 5 This is a flowchart of the steps of the third embodiment of the data visualization method of the present application;
[0043] Figure 6 A schematic diagram of a functional module of an embodiment of the data visualization device of the present application;
[0044] Figure 7 This is another functional module diagram of an embodiment of the data visualization device of the present application.
[0045] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0047] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0048] Reference Figure 1 , Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0049] like Figure 1 As shown, the device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0050] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation of the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0051] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a data visualization program.
[0052] exist Figure 1In the device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the device of the present invention can be set in the device, and the device calls the data visualization program stored in the memory 1005 through the processor 1001, and executes the data visualization method provided by the embodiment of the present invention.
[0053] like Figure 1 As shown, the memory 1005, which is a readable storage medium, may include an operating system, a network communication module, a user interface module, and a data visualization program. The operating system is a program that manages and controls the devices and software resources based on the embodiments of the present application, and supports the operation of the network communication module, the user interface module, the data visualization program, and other programs or software. The network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
[0054] exist Figure 1 In the device hardware structure shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; the processor 1001 can call the data visualization program stored in the memory 1005 and perform the following operations:
[0055] Associating target elements that need to be paginated among the multiple other elements;
[0056] After detecting the rendering instruction, receiving the to-be-rendered data sent by the target component;
[0057] Performing paging processing on the data to be rendered according to the rendering instruction to obtain target data;
[0058] The target data is sent to the target component for visual display.
[0059] The embodiment of the present invention provides a data visualization method, referring to Figure 2 , Figure 2 This is a flow chart of a first embodiment of a data visualization method according to the present invention.
[0060] In this embodiment, the data visualization method is applied to a pager component in a data visualization system. The data visualization system further includes a plurality of other components communicatively connected to the pager component. The data visualization method includes the following steps:
[0061] Step S10, associating target components that need to be paginated among the multiple other components;
[0062] With the rapid development of data visualization systems, the way data is presented is becoming increasingly important. The data displayed is no longer limited to a specific moment in time, but is trending towards comprehensive, large-scale presentations. When displaying large amounts of data, if all data is displayed on a single page, the data visualization system is likely to become sluggish and load very slowly. This makes data paging particularly important. After paging, each page only loads a set amount of data, and the number of displayed data items, text color, and other content can be flexibly configured. This not only improves system stability but also enhances the presentation quality and aesthetics. Data paging can be implemented in every component or function within a data visualization system. However, embedding multiple paging devices with the same functionality within a data visualization system can make the platform appear bloated and redundant, adding unnecessary resource overhead to the terminals running the data visualization system.
[0063] In this embodiment, a pager element is provided that is independent of a specified function item or target element and is no longer limited to a specified usage scenario. When a certain element in a data visualization system requires a paging function, the above-mentioned pager element can be called to complete the paging function, thereby solving the problem of visual display of large amounts of data in the data visualization system. The independent existence of the pager element in the data visualization system, that is, the pager element in this embodiment, determines that during use, the pager element can be arbitrarily combined with any target element in the data visualization system and is no longer dependent on a specified function item. The pager element and the target element are flexibly matched to realize the paging function, that is, at the same time, the pager element is associated with at least one other element in the data visualization system that needs to perform paging processing and uses it as the target element. It is understandable that any other element that requires a paging function can call the above-mentioned pager element, but the pager element can only provide paging services for one other element at the same time.
[0064] In this embodiment, the pager element can be used in conjunction with the most common table element. The pager element controls the table element to receive configured input parameter fields to perform paging queries on the data, rather than full data queries. It can be understood that when the pager element and the target element are used in combination, the pager element is no longer oriented to the display content specified by the traditional pager element, but only operates on the data received by the pager element. As for the specific display method or form, the pager element can control the target element associated with the pager element through the received data to display and present it. At this time, the pager element no longer cares about the specific display content, but only implements the paging function of the received data, and drives the associated target element to change parameters and query data.
[0065] It should be noted that the data visualization system in this embodiment can be a website dedicated to processing big data, or an APP (Application) that needs to implement data visualization, without limitation here. The above-mentioned target element can be an element that can receive and store data and is implemented with code, such as a table element, or a chart element that records historical alarm information. As long as it is a target element that requires paging function, the pager element in this embodiment can be used, without limitation here. The pager element in this embodiment is also an element implemented with code, and the type of code that implements the corresponding function is not limited here.
[0066] Step S20, after detecting the rendering instruction, receiving the data to be rendered sent by the target component;
[0067] In this embodiment, the paging component can acquire data through a sharing strategy, such as through topic subscriptions, thereby implementing a data sharing mechanism. This significantly reduces the query pressure on the data visualization system while ensuring that the data content of the paging component and the target component are completely consistent. The paging component can subscribe to the topic corresponding to the target component with which it is associated to complete data interaction. Alternatively, the paging component can interact with data by calling an API (Application Programming Interface) data interface multiple times when data paging is required, that is, calling the API data interface once for each data operation.
[0068] In this embodiment, after the pager component subscribes to the topic corresponding to the target component associated with itself, when the data in the target component changes, for example, operations such as adding, deleting, modifying, and querying are performed, the specified topic is triggered and the corresponding rendering instructions are generated; or when the state of the pager component itself changes, for example, it triggers an event to switch the page number, the specified topic is triggered and the corresponding rendering instructions are generated.
[0069] In this embodiment, when a change in the target component data is detected, the theme is triggered, and the pager component can be controlled to trigger notification and callback to receive the data shared by the target component.
[0070] Step S30, paging the data to be rendered according to the rendering instruction to obtain target data;
[0071] In this embodiment, the pager component can independently configure itself to select different paging modes, such as page number or number of items per page, paging from item to item, number of items displayed per page, text color and content, etc. After receiving data shared by the target component, the pager component can render the received data using different paging modes to achieve the purpose of paging and obtain the rendered target data. At this point, the target component can be notified to receive the rendered target data.
[0072] Step S40: sending the target data to the target component for visual display.
[0073] In this embodiment, the pager component can process the received large amount of data to be rendered by the configured paging mode, that is, the user can easily jump to different pages to access
[0074] The original data content. After rendering, the data can display any specified number of data items on the current page, for example, 10 data items per page. The number of consecutive pages in the paginator can also be set arbitrarily. For example, if the number of consecutive pages is set to 3, then if there are 10 pages and the current page is 5, the page should display "1...4 5 6...10". The rest will not be displayed and will be replaced by ellipsis. After rendering the data to be rendered, the target component can be notified to receive the rendered target data to be displayed.
[0075] It should be noted that the configuration of the above paging mode can be a 0-line configuration of the page number and the number of pages per article, or a configuration of the page segmentation from the first article to the first article, or a flexible configuration.
[0076] The number of data items displayed on each page, the text color of the data, etc. can also be configured, and any combination of the above different configuration methods can be used. The configured paging mode can also be adjusted at any time. For example, the paging mode can be configured before rendering the data and can be reconfigured after rendering.
[0077] The present application associates a pager component in a data visualization system with a target component in the data visualization system, and after detecting a rendering instruction, receives the data to be rendered in the target component, wherein the rendering instruction is generated by the pager component or the target component, renders the data to be rendered after receiving the data to be rendered, obtains the target data, and notifies the target component to receive the data.
[0078] The target data is sent to the target element for visual display. That is, in the visualization platform, for elements that need paging, it is only necessary to call the pager element, and there is no need to embed elements with the same paging function in each element, which speeds up the display speed and initialization speed of the visualization platform. In addition, there is only one pager element in the data visualization system, which avoids the paging function existing in each element or function item, resulting in unnecessary resource overhead.
[0079] 5 Further, based on the first embodiment of the present application, a second embodiment of the data visualization method of the present application is proposed, referring to Figure 3 In this embodiment, the refinement of the step S10 of the above embodiment, associating the target components that need to be paged among the multiple other components, includes:
[0080] Step S101, after receiving the unique identifier, send the
[0081] the other element with the unique identifier as the target element;
[0082] In step S102, the subject corresponding to the unique identifier in the target element is associated.
[0083] In this embodiment, when a pager component selects and associates with a target component, it records the target component's unique identifier in its own configuration item, where the unique identifier includes at least a CID (Content Identifier). This identifier serves as a credential for the directional association with the target component and as an identifier for subscribing to events from the target component. Simultaneously, the target component associated with the pager component generates a specific topic associated with its own CID. In other words, in an actual combination, when the pager component contains the target component's CID, it subscribes to the target component's corresponding topic.
[0084] It should be noted that the pager element can receive at least one unique identifier at the same time and be thematically associated with other elements corresponding to the unique identifier. For ease of understanding, this embodiment uses the same time pager element to be associated with one other element, and is not intended to limit the number of associations in this embodiment.
[0085] Exemplarily, the step of paging the data to be rendered according to the rendering instruction to obtain target data includes:
[0086] Step S301: Obtain preset input parameter fields, wherein the input parameter fields at least include a number of entries binding value, a total number of data entries, a current page number value, and a page number binding value;
[0087] Step S302: constructing a paging mode corresponding to the data to be rendered according to the input parameter field;
[0088] Step S303 : paging the data to be rendered according to the paging mode to obtain target data.
[0089] In this embodiment, the pager component, as an independent component, is no longer attached to the specified content or structure. It can select different paging modes through its own independent configuration. The paging mode may include the number of pages of data, the number of data items per page, the number of consecutive pages, etc. It can also include the paging cut-off form from the number of items to the number of items, the text color content, etc. The above paging modes can be selected by the user and configured independently without affecting the target component. When configuring the input parameter field, the pager component can configure the paging parameters required for paging by configuring the selected paging mode, page number binding value, number of items binding value, etc., where the input parameter field is the input parameter of whether the target component responds to the event.
[0090] In this embodiment, the pager component can render the data to be rendered according to the preset paging mode or the default paging mode to obtain the target data; after obtaining the target data, it is necessary to notify the target component to receive the data. At this time, the pager component obtains the unique identifier CID corresponding to the target component in the configuration item to adjust the input parameter corresponding to the specified CID, so that the target component starts to receive the rendered target data.
[0091] In this embodiment, after the paginator component triggers an event such as switching the page number or a data change in the target component triggers an event, the paginator component will re-render the received data and present the adjusted input parameter fields to the target component, where the adjusted input parameter fields include paging parameters. After receiving the adjusted input parameter fields, the target component will respond to this event and complete the re-acquisition of the data after paging rendering. At this time, the target component will return the parameters of the current page number of the paginator component to inform the paginator component of the current status content, so that it can render the correct page number and visualize the rendered data.
[0092] In this embodiment, when the data in the shared target component changes, such as addition, deletion, modification or query, the specified topic will be triggered. At this time, the paginator component that subscribes to the topic will trigger notification and callback, and receive the data content from the shared target component; at the same time, when the state of the paginator component itself changes, such as switching the page number, it obtains the CID identifier corresponding to the target component in its own configuration, which is used to adjust the specified input to the input parameter field of the target component corresponding to the CID, and re-render the target component and re-call the API data interface of the target component itself.
[0093] In this embodiment, when the data in the target component changes, the specified topic will be re-triggered. At this time, the paginator component subscribed to this topic will re-render the data and change the data content inside the component, that is, render the data according to the preset paging mode to achieve the paging effect.
[0094] In this embodiment, two independent components—the pager component and its associated target component—use the aforementioned low-cost, low-overhead sharing strategy to access only one component's data interface, significantly reducing performance overhead. Furthermore, because of the data sharing strategy, a single copy of the data is used for multiple purposes, ensuring complete data consistency across the two independent components.
[0095] Exemplarily, the step of constructing a paging mode corresponding to the data to be rendered according to the input parameter field includes:
[0096] Step S304: adjusting the input parameter field according to the to-be-rendered data and / or a preset adjustment instruction, and sending the adjusted input parameter field to the target component;
[0097] Step S305 : constructing a paging mode corresponding to the data to be rendered according to the adjusted input parameter field.
[0098] In this embodiment, after obtaining the total amount of data to be rendered, the number of pages to be divided into and the number of data items per page can be determined based on the number of data items. For example, for 1000 data items, it can be divided into 50 pages, with 20 data items per page. At this time, the number of items bound in the input parameter field is 20, the total number of data items is 1000, the current page number value can be defaulted to 1, and the page number binding value is 50. The input parameter field can also be set before paging. For example, before receiving the data to be rendered or when receiving the data to be rendered, if an adjustment instruction is received, the input parameter field can be changed first. For example, the number of items bound value is set to 10 and the current page number value is 1. Then, after obtaining the total amount of data to be rendered, the page number binding value can be determined, and paging can also be performed. At this time, the corresponding paging mode can be constructed based on the adjusted input parameter field to process the data to be rendered.
[0099] In this embodiment, the adjusted input parameter fields are formed into a key-value format and presented to the target component through parameter injection. At this time, when the paginated target component obtains the API interface, the paging parameters passed by the paginator will be added to the input parameter fields it carries to complete the acquisition of the paging data.
[0100] In addition, to assist in understanding the data visualization method of the pager component in this embodiment, an example is given below.
[0101] Reference Figure 4 , which is a flow chart of the data visualization method of the pager element of this embodiment. Before the independent pager element is flexibly combined and arbitrarily matched with the target element, it first independently and flexibly configures the paging mode and the input parameter fields; the target element shares data with the pager element through a sharing strategy. At this time, the independent pager element will subscribe to the subject of the target element. When, for example, the pager element switches paging, or other interactions, or the target element re-calls the data model, and the data therein changes, etc., which trigger events of the subject, the pager element will obtain the data in the target element in real time, and render and process it according to the specified paging mode and call back the data. After receiving the input parameter fields sent by the independent pager, the target element will respond to this event, receive the rendered data, and visualize the rendered data.
[0102] In this embodiment, the pager element can be flexibly configured with the target element and can be configured independently, which solves the problem that simple built-in paging cannot meet more scenarios. It also exchanges data through a sharing strategy, greatly reducing the query pressure of the data visualization system and reducing resource overhead. Corresponding to the solutions under various paging modes, new event connections can be established between independent elements, ensuring the smooth paging form, as well as the data and return content presented in an interactive manner, and further stabilizing the status and content of the pager element.
[0103] Furthermore, based on the first embodiment or the second embodiment of the present application, the present application proposes a third embodiment of the data visualization method of the present application, referring to Figure 5 The data visualization method is applied to a target component in a data visualization system, the data visualization system further comprising a pager component communicatively connected to a plurality of the other components, the data visualization method comprising the following steps:
[0104] Step S50, associating with the paging element;
[0105] Step S60: if it is detected that the content of the data to be rendered in the target component has changed, a rendering instruction is generated, and the rendering instruction is sent to the pager component, and the data to be rendered is sent to the pager component;
[0106] Step S70 , receiving target data fed back by the pager component based on the data to be rendered, and visually displaying the target data.
[0107] In this embodiment, other components that require paging can send their own unique identifiers to associate with the pager component, causing it to subscribe to its own topic. Upon detecting a change in the component's own data content, such as an update, a rendering instruction is generated and sent to the pager component, which then responds to the event to receive the data to be rendered sent by the target component. When the target component receives the adjusted input parameter fields and responds to the pager component's event, it can receive the target data based on the data to be rendered and visually display the target data.
[0108] Exemplarily, the step of associating with the paging element includes:
[0109] Step S501: sending a preset unique identifier to the pager component, and determining association with the pager component after detecting that the pager component is associated with the subject of the target component based on the unique identifier.
[0110] In this embodiment, other components that require paging processing will send their own unique identifiers to an independent paginator component. After the paginator component receives the unique identifier, records it in its own configuration item, and subscribes to the topic events corresponding to other components, the other components will detect that the paginator component associates the topic of the target component based on the unique identifier. At this time, it can be determined to associate with the paginator component, and then send the data to be rendered or receive the target data from the paginator component based on the data to be rendered.
[0111] Exemplarily, the step of receiving target data fed back by the paging component based on the data to be rendered includes:
[0112] Step S701 : after receiving the adjusted input parameter field sent by the pager component, calling the application data interface corresponding to the target component according to the adjusted input parameter field to receive the target data sent by the pager component.
[0113] In this embodiment, after receiving the input parameter fields sent by the pager component, the target component begins calling the API data interface to receive the target data. In this embodiment, the pager component and the target component share data in a shared mode, which greatly reduces the pressure of background queries and energy consumption. While forming an independent component, the components can share data with each other, achieving 100% data uniformity between the pager component and the target component. Therefore, the received target data and the data to be rendered do not have any actual data content changes, and the only difference is the display method, that is, the target data is the data obtained after the data to be rendered is paged and rendered.
[0114] In addition, an embodiment of the present application further provides a data visualization system, the data visualization system including a communicatively connected pager element and multiple other elements, the multiple other elements including at least a target element, the data visualization system including:
[0115] The target element is used to associate with the pager element;
[0116] The paging element is used to associate target elements that need to be paging among the other elements;
[0117] The target component is configured to generate a rendering instruction if a change is detected in the content of the data to be rendered in the target component, and send the rendering instruction to the pager component, and send the data to be rendered to the pager component;
[0118] The pager component is configured to receive the to-be-rendered data sent by the target component after detecting a rendering instruction;
[0119] The pager component is used to perform paging processing on the data to be rendered according to the rendering instruction to obtain target data;
[0120] The paging component is used to send the target data to the target component for visual display;
[0121] The target component is configured to receive target data fed back by the pager component based on the data to be rendered, and to visually display the target data.
[0122] When the data visualization system in this embodiment is executed, the steps in each embodiment of the data visualization method are implemented, and this embodiment will not elaborate on them.
[0123] In addition, refer to Figure 6 The present application further provides a data visualization device, which is provided in the paging element and includes:
[0124] The component association module A10 is used to associate target components that need to be paged among the multiple other components;
[0125] The data receiving module A20 is used to receive the data to be rendered sent by the target component after detecting the rendering instruction;
[0126] The data processing module A30 is used to perform paging processing on the data to be rendered according to the rendering instruction to obtain target data;
[0127] The data sending module A40 is used to send the target data to the target component for visual display.
[0128] In one embodiment, the component association module A10 is further configured to:
[0129] After receiving the unique identifier, the other component among the plurality of other components that sent the unique identifier is used as a target component;
[0130] A topic corresponding to the unique identifier in the target element is associated.
[0131] In one embodiment, the data processing module A30 is further configured to:
[0132] Obtaining preset input parameter fields, wherein the input parameter fields include at least a number of entries bound value, a total number of data entries, a current page number value, and a page number bound value;
[0133] Constructing a paging mode corresponding to the data to be rendered according to the input parameter field;
[0134] The data to be rendered is paged according to the paging mode to obtain target data.
[0135] In one embodiment, the data processing module A30 is further configured to:
[0136] Adjusting the input parameter field according to the to-be-rendered data and / or a preset adjustment instruction, and sending the adjusted input parameter field to the target component;
[0137] A paging mode corresponding to the data to be rendered is constructed according to the adjusted input parameter field.
[0138] In addition, to achieve the above-mentioned purpose, the present invention further provides a data visualization device, which is provided on the target element and includes:
[0139] The component association module A50 is used to associate with the paging component;
[0140] A data sending module A60 is configured to generate a rendering instruction if it is detected that the content of the data to be rendered in the target component has changed, and send the rendering instruction to the pager component, and send the data to be rendered to the pager component;
[0141] The data receiving module A70 is configured to receive target data fed back by the pager component based on the data to be rendered, and to visually display the target data.
[0142] In one embodiment, the component association module A50 is further configured to:
[0143] A preset unique identifier is sent to the pager element, and after detecting that the pager element associates the subject of the target element based on the unique identifier, it is determined to be associated with the pager element.
[0144] In one embodiment, the data receiving module A70 is further configured to:
[0145] After receiving the adjusted input parameter field sent by the pager component, the application data interface corresponding to the target component is called according to the adjusted input parameter field to receive the target data sent by the pager component.
[0146] In addition, the present application also provides a data visualization device, which includes: a memory, a processor, and a data visualization program stored on the above-mentioned memory and executable on the above-mentioned processor. When the above-mentioned data visualization program is executed by the processor, the steps of the various embodiments in the above-mentioned data visualization method are implemented.
[0147] The present application also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can also be executed by one or more processors to implement the steps of each embodiment of the above-mentioned data visualization method.
[0148] The specific implementation of the storage medium of this application is basically the same as the above-mentioned data visualization method embodiment, and will not be repeated here.
[0149] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0150] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0152] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data visualization method, characterized in that: The data visualization method is applied to a pager component in a data visualization system, wherein the data visualization system further includes a plurality of other components communicatively connected to the pager component. The data visualization method includes the following steps: Associating a target element that needs to be paginated among the plurality of other elements; wherein the step of associating the target element that needs to be paginated among the plurality of other elements comprises: after receiving a unique identifier, taking the other element that sends the unique identifier among the plurality of other elements as a target element; associating the subject corresponding to the unique identifier among the target element; generating a rendering instruction when detecting that the content of the data to be rendered in the target component has changed; and receiving the data to be rendered sent by the target component after detecting the rendering instruction; The data to be rendered is subjected to paging processing according to the rendering instruction to obtain target data, wherein the step of paging the data to be rendered according to the rendering instruction to obtain target data includes: obtaining preset input parameter fields, wherein the input parameter fields at least include a number binding value, a total number of data items, a current page number value, and a page number binding value; adjusting the input parameter fields according to the data to be rendered and / or a preset adjustment instruction, and sending the adjusted input parameter fields to the target component; constructing a paging mode corresponding to the data to be rendered according to the adjusted input parameter fields; and paging the data to be rendered according to the paging mode to obtain target data; The target data is sent to the target element for visual display, wherein, after receiving the adjusted input parameter field sent by the pager element, the target element calls the application data interface corresponding to the target element according to the adjusted input parameter field to receive the target data sent by the pager element.
2. A data visualization method, characterized in that: The data visualization method is applied to a target component in a data visualization system, wherein the data visualization system further includes a pager component communicatively connected to other components. The data visualization method includes the following steps: Associating with the pager element; wherein the step of associating with the pager element comprises: sending a preset unique identifier to the pager element, and determining to associate with the pager element after detecting that the pager element associates with the subject of the target element based on the unique identifier; If a change is detected in the content of the data to be rendered in the target component, a rendering instruction is generated and sent to the pager component, and the data to be rendered is also sent to the pager component; wherein the pager component obtains preset input parameter fields, wherein the input parameter fields include at least a number of items bound value, a total number of data items, a current page number value, and a page number bound value; the input parameter fields are adjusted according to the data to be rendered and / or a preset adjustment instruction, and the adjusted input parameter fields are sent to the target component; a paging mode corresponding to the data to be rendered is constructed according to the adjusted input parameter fields; the data to be rendered is paging-processed according to the paging mode to obtain target data; Receive target data fed back by the pager component based on the data to be rendered, and visually display the target data, wherein the step of receiving target data fed back by the pager component based on the data to be rendered includes: after receiving the adjusted input parameter field sent by the pager component, calling the application data interface corresponding to the target component according to the adjusted input parameter field to receive the target data sent by the pager component.
3. A data visualization system, characterized in that: The data visualization system is applied to the data visualization method according to claim 1 or claim 2, the data visualization system comprising a communicatively connected pager element and a plurality of other elements, the plurality of other elements including at least a target element, the data visualization system comprising: The target element is used to associate with the pager element; The paging element is used to associate target elements that need to be paging among the other elements; The target component is configured to generate a rendering instruction if a change is detected in the content of the data to be rendered in the target component, and send the rendering instruction to the pager component, and send the data to be rendered to the pager component; The pager component is configured to receive the to-be-rendered data sent by the target component after detecting a rendering instruction; The pager component is used to perform paging processing on the data to be rendered according to the rendering instruction to obtain target data; The paging component is used to send the target data to the target component for visual display; The target component is configured to receive target data fed back by the pager component based on the data to be rendered, and to visually display the target data.
4. A data visualization device, characterized in that: The data visualization device includes: a memory, a processor, and a data visualization program stored in the memory and executable on the processor, wherein the data visualization program implements the steps of the data visualization method according to any one of claims 1 to 2 when executed by the processor.
5. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a data visualization program, which, when executed by a processor, implements the steps of the data visualization method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Data visualization realization system and method
CN107844297A
A method for implementing a paging function in an ios system
CN109254807A