Data display method and device, computer storage medium, and electronic device
By configuring the parameters of the dashboard and pie chart, the problem of being unable to display the industry distribution and location of the target enterprise in the existing technology is solved, and the function of the dashboard pointer pointing to the target data interval in the pie chart is realized, which improves the intuitiveness and convenience of data display. Clarity.
Patent Information
- Application Number
- CN202210820928.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-07-13
AI Technical Summary
Existing technology cannot effectively display the distribution and position of target companies in the industry. The Echarts dashboard does not support pointers pointing to the middle part of the data interval, and cannot visually display information from multiple data intervals.
By obtaining multiple pre-divided data intervals and target data, configure the parameters of the dashboard and pie chart so that the dashboard only displays pointers and the pie chart displays multiple data intervals, and determine the parameters of the prompt box based on the target data to make the target data A prompt box is displayed above the corresponding data interval, and the pointer on the dashboard points to the data interval to which the target data in the pie chart belongs.
It achieves a better display effect of the target company's data, allowing users to intuitively and clearly understand the target company's data and its position in the same industry, avoiding the interference of other information.
Smart Images

Figure CN115146135B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology and data processing technology, and in particular to a data display method and device, a computer storage medium, and an electronic device. Background Art
[0002] When querying the information of the target enterprise, the enterprise's registered capital, establishment time and other information are usually displayed. However, only displaying the above information of the target enterprise cannot enable the user to intuitively understand the distribution of the industry in which the target enterprise is located, and the position of the target enterprise in the distribution range of the same industry. For example: the prior art generally requires the use of Echarts dashboard to support hovering to the corresponding data module to display Tooltip prompts, and requires the pointer of the dashboard to point to the middle part of the corresponding data module of Echarts. However, the Echarts dashboard function cannot support these two technical requirements. Summary of the invention
[0003] The embodiments of the present invention provide a data display method and device, a computer storage medium, and an electronic device to overcome the above-mentioned technical problems existing in the related art.
[0004] The technical solution adopted by the present invention is: obtaining multiple pre-divided data intervals and target data of the target object; configuring the parameters of the dashboard and the pie chart respectively according to the multiple data intervals and the target data, so that the dashboard only displays a pointer and the pie chart displays multiple data intervals; determining the parameters of the pie chart prompt box according to the target data, so that the prompt box is displayed above the data interval to which the target data belongs; according to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, displaying the dashboard, the pie chart and the prompt box in the display interface, so that the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs.
[0005] Optionally, the parameters of the dashboard are configured according to multiple data intervals and target data so that the dashboard only displays a pointer, including: determining the scale parameters of the dashboard; determining the position parameters of the pointer in the dashboard according to the order of each data interval, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals.
[0006] Optionally, determining the scale parameters of the instrument panel includes: determining the number of scale line segments of the instrument panel to be 100; and / or determining the starting angle of the instrument panel to be 180 degrees, and determining the ending angle of the instrument panel to be 0 degrees; and / or determining that the scale style and scale lines of the instrument panel are not displayed.
[0007] Optionally, the position parameters of the pointer in the dashboard are determined based on the order of each data interval, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals, including: determining the proportion ratio of the data interval to which the target data belongs; determining the sum of the proportion ratios of other data intervals before the data interval to which the target data belongs in the pie chart along the order direction of the data intervals; calculating the total proportion of one half of the proportion ratio of the data interval to which the target data belongs and the sum of the proportion ratios of other data intervals; and determining the position parameters of the pointer based on the total proportion.
[0008] Optionally, configuring the pie chart parameters according to the multiple data intervals includes: configuring the content parameters of the pie chart according to the multiple data intervals; configuring the container size of the pie chart to be the same as the size of the dashboard container; and configuring the appearance parameters of the pie chart.
[0009] Optionally, configure the appearance parameters of the pie chart, including: determining the display parameters of multiple data intervals in the pie chart based on the proportions of the multiple data intervals, so that the sum of the central angles of the multiple data intervals displayed in the pie chart is equal to the central angle of the instrument panel, and the central angle of the instrument panel refers to the angle from the starting position to the ending position of the instrument panel.
[0010] Optionally, display parameters of multiple data intervals in the pie chart are determined based on proportions of the multiple data intervals, including: determining the display parameters of the pie chart based on half of the proportion ratio of the multiple data intervals and a preset ratio, where the preset proportion ratio is fifty percent.
[0011] Optionally, determining display parameters of multiple data intervals in a pie chart based on proportions of the multiple data intervals also includes: configuring the proportions of the multiple data intervals in the pie chart in a clockwise direction according to preset rules, wherein the preset rules refer to the order of configuring the multiple data intervals.
[0012] Optionally, according to the multiple data intervals, the content parameters of the pie chart are configured, including: determining that the text information in the pie chart is not displayed, the text information at least includes the title name of the pie chart and label information of the multiple data intervals, and determining that the part outside the multiple data intervals in the pie chart is transparent.
[0013] Optionally, according to the target data, the parameters of the pie chart's prompt box are determined so that the prompt box is displayed above the data interval to which the target data belongs, including: according to the target data, determining that the prompt box of the data interval to which the target data belongs is always displayed, and determining that the prompt boxes of other data intervals are not displayed, where other data intervals refer to data intervals among multiple data intervals except the data interval to which the target data belongs.
[0014] A data display device includes: a data acquisition module for acquiring target data of a plurality of pre-divided data intervals and a target object; a parameter configuration module for respectively configuring the parameters of a dashboard and a pie chart according to the plurality of data intervals and the target data, so that the dashboard only displays a pointer and the pie chart displays the plurality of data intervals, and the parameters of a prompt box of the pie chart are determined according to the target data, so that the prompt box is displayed above the data interval to which the target data belongs; a display module for displaying the dashboard, the pie chart and the prompt box in a display interface according to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, so that the pointer of the dashboard points to the data interval to which the target data belongs in the pie chart.
[0015] A computer storage medium stores a computer executable program, and the computer executable program is run to implement any method in the embodiments of the present invention.
[0016] An electronic device includes a memory and a processor, wherein the memory is used to store a computer executable program, and the processor is used to run the computer executable program to implement any method in the embodiments of the present invention.
[0017] The embodiment of the present invention obtains multiple pre-divided data intervals and target data of the target object; configures the parameters of the dashboard and the pie chart respectively according to the multiple data intervals and the target data, so that the dashboard only displays the pointer and the pie chart displays multiple data intervals; determines the parameters of the prompt box of the pie chart according to the target data, so that the prompt box is displayed above the data interval to which the target data belongs; displays the dashboard, the pie chart and the prompt box in the display interface according to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, so that the pointer of the dashboard points to the data interval to which the target data belongs in the pie chart. Thus, through the combined display of the pie chart and the dashboard, the data display effect of the target enterprise is better, and further, the user can intuitively and clearly understand the target data of the target enterprise and its position in the same industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic flow chart of a data display method according to an exemplary embodiment of the present invention;
[0019] Figure 2 A schematic flow chart of a data display method according to another exemplary embodiment of the present invention;
[0020] Figure 3 A schematic flow chart of a data display method according to another exemplary embodiment of the present invention;
[0021] Figure 4 A schematic flow chart of a data display method according to another exemplary embodiment of the present invention;
[0022] Figure 5 A schematic diagram exemplarily showing a data display device according to an embodiment of the present invention;
[0023] Figure 6 The schematic diagram exemplarily shows an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0025] For ease of understanding, before describing in detail the specific embodiments of the present invention, an application scenario of a data display method and device, a computer storage medium, and an electronic device of the present invention is first exemplarily described.
[0026] When querying the information of a target enterprise, the enterprise's registered capital, establishment time and other query information are usually displayed. However, only displaying the above information of the target enterprise does not allow the user to intuitively understand the position of the target enterprise in the same industry, resulting in the user being unable to quickly use the queried information. In view of this, the present invention proposes a data display method and device, a computer storage medium, and an electronic device, which can solve the various problems existing in the above-mentioned prior art.
[0027] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0028] Figure 1 A flow chart of a data display method according to an exemplary embodiment of the present invention is shown as follows: Figure 1 As shown, this embodiment mainly includes the following steps:
[0029] S101, obtaining a plurality of pre-divided data intervals and target data of a target object;
[0030] Different types of target data can correspond to different data interval division methods.
[0031] Taking the registered capital of an enterprise as an example, the data intervals are divided based on the value of the registered capital, and the enterprise type can be divided according to the data intervals of the registered capital. For example, the registered capital can be divided into 6 data intervals, namely: micro-enterprises within 500,000, small enterprises between 500,000 and 1 million, medium-sized enterprises between 1 million and 5 million, medium and high-end enterprises between 5 million and 10 million, large enterprises between 10 million and 50 million, and super-large enterprises above 50 million. The target data of the target object can be the registered capital of a certain enterprise.
[0032] Of course, other methods may be used to divide data intervals for other types of target data, and there is no limitation to this.
[0033] S102, respectively configuring parameters of the instrument panel and the pie chart according to the multiple data intervals and the target data, so that the instrument panel only displays the pointer and the pie chart displays the multiple data intervals;
[0034] Exemplarily, the parameters of the pie chart may be configured according to the proportions of six data intervals of the registered capital.
[0035] For example, in the existing enterprise data, micro-enterprises with less than 500,000 may account for 25%, small enterprises with 500,000 to 1 million may account for 10%, medium-sized enterprises with 1 million to 5 million may account for 35%, medium- and high-end enterprises with 5 million to 10 million may account for 15%, large enterprises with 10 million to 50 million may account for 10%, and super-large enterprises with more than 50 million may account for 5%. Then, the proportions of the six data intervals can be displayed by configuring the pie chart parameters. For example, configure {value:25%, name:micro-enterprises}; {value:10%, name:small enterprises}; {value:35%, name:medium-sized enterprises}; {value:15%, name:medium- and high-end enterprises}; {value:5%, name:super-large enterprises} in the data parameters of the pie chart.
[0036] Of course, the above parameter configuration is only a feasible example, and other parameter configuration methods may be used in other embodiments, which is not limited to this.
[0037] The proportion of the above six data intervals of registered capital can be obtained through big data statistics.
[0038] For example, the parameters of the dashboard can be configured according to the data interval and the target data, so that the pointer of the dashboard points to the data interval to which the target data belongs. For example, the target data can be a registered capital of 3 million, and the data interval to which the target data belongs is a medium-sized enterprise with a registered capital of 1 million to 5 million. Then the parameters of the pointer in the dashboard are configured so that the pointer of the dashboard points to the position of the medium-sized enterprise with a registered capital of 1 million to 5 million. Other display contents of the dashboard, such as scale lines, scales, names, etc., are hidden.
[0039] S103, determining the parameters of the prompt box of the pie chart according to the target data, so that the prompt box is displayed above the data interval to which the target data belongs;
[0040] Exemplarily, the parameters of the prompt box of the pie chart can be configured according to the target data. For example, if the target data is a registered capital of 3 million, and the data interval to which the target data belongs is a medium-sized enterprise of 1 million to 5 million, then the information of the data interval to which the target data belongs is displayed in the prompt box corresponding to the medium-sized enterprises of 1 million to 5 million in the pie chart, and the prompt boxes of other data intervals are hidden. For example, the above prompt box can display 35% of medium-sized enterprises of 1 million to 5 million. Further, other information of the target data can also be displayed in the prompt box, such as the registered capital information of the target data, etc., and the present invention is not limited to this.
[0041] In a specific implementation, the parameters of the prompt box of the pie chart are determined according to the target data so that the prompt box is displayed above the data interval to which the target data belongs, including: according to the target data, determining that the prompt box of the data interval to which the target data belongs is always displayed, and determining that the prompt boxes of other data intervals are not displayed, and other data intervals refer to data intervals other than the data interval to which the target data belongs among multiple data intervals.
[0042] Exemplarily, according to the target data, the data interval in the pie chart corresponding to the target data is determined, and the properties of the prompt box corresponding to the data interval are configured. For example, the trigger type of the prompt box can be configured to be not triggered, and the prompt box of the data interval can be configured to display the prompt box floating layer and always display the prompt box content, and the prompt boxes of other data intervals can be configured not to display the prompt box floating layer and not to display the prompt box content. The position of the prompt box floating layer can also be represented by an array, and the absolute position can be set by a number, or the relative position can be set by a percentage, so that the prompt box is displayed above the data interval to which the target data belongs. In addition, the border format, text format, etc. of the prompt box can also be configured as needed.
[0043] Through this implementation method, the information of the data interval in the pie chart corresponding to the target object can be fixedly displayed in the prompt box, and the information of the prompt boxes of other data intervals can be hidden, so that the user can see the position of the target object in the same industry at a glance and avoid interference from other information.
[0044] S104. Display the dashboard, the pie chart and the prompt box in the display interface according to the parameters of the dashboard, the pie chart and the prompt box, so that the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs.
[0045] Exemplarily, the configured dashboard, pie chart, and prompt box are displayed in the presentation interface, and the dashboard and pie chart are overlapped. For example, the position parameters and container parameters of the dashboard and pie chart can be configured so that the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs, and the prompt box is displayed above the data interval.
[0046] Exemplarily, the configured dashboard, pie chart, and prompt box are displayed in the display interface as follows: a new dashboard layer is created on the display interface, so that the dashboard on the dashboard layer overlaps with the pie chart on the original layer on the display interface. For example, the position parameters and container parameters of the dashboard and the pie chart can be configured so that the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs, and the prompt box is displayed above the data interval; or, a new pie chart layer is created on the display interface, so that the dashboard on the original layer on the display interface overlaps with the pie chart on the pie chart layer. For example, the position parameters and container parameters of the dashboard and the pie chart can be configured so that the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs, and the prompt box is displayed above the data interval. In this way, dashboards and pie charts on different layers can be quickly changed separately.
[0047] The embodiment of the present invention obtains multiple pre-divided data intervals and target data of target objects; configures the parameters of the dashboard and the pie chart respectively according to the multiple data intervals and target data, so that the dashboard only displays the pointer and the pie chart displays multiple data intervals; determines the parameters of the prompt box of the pie chart according to the target data, so that the prompt box is displayed above the data interval to which the target data belongs; displays the dashboard, the pie chart and the prompt box in the display interface according to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, so that the pointer of the dashboard points to the data interval to which the target data belongs in the pie chart. Thus, through the combined display of the pie chart and the dashboard, the data display effect of the target enterprise is better, and further, the user can intuitively and clearly understand the target data of the target enterprise and its position in the same industry.
[0048] Figure 2 This is a flow chart of a data display method according to another exemplary embodiment of the present invention. This embodiment mainly shows an optional implementation scheme of the above step S102. Figure 2 As shown, this embodiment mainly includes the following steps:
[0049] S201, determining scale parameters of the instrument panel;
[0050] S202: Determine the position parameters of the pointer in the instrument panel according to the order of each data interval, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals.
[0051] Exemplarily, the scale parameters of the dashboard may include the number of scale line segments, the starting angle and ending angle of the dashboard, the scale style of the dashboard, scale lines, etc. The number of scale line segments, the starting angle and ending angle of the dashboard can be configured as needed, and the scale style and scale lines of the dashboard can be hidden. According to the arrangement order of each data interval from the starting position to the ending position of the dashboard, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals, the position range of the data interval to which the target data belongs on the dashboard is calculated. The position range can be represented by the angle of the dashboard or by the scale of the dashboard. For example, the number of scale line segments of the dashboard can be 100, the starting angle of the dashboard can be 0 degrees, and the ending angle can be 360 degrees. The above 6 data intervals are arranged in order: micro-enterprises with less than 500,000 account for 25%, small enterprises with 500,000-1 million account for 10% , medium-sized enterprises with a revenue of 1-5 million account for 35%, medium and high-sized enterprises with a revenue of 5-10 million account for 15%, large enterprises with a revenue of 10-50 million account for 10%, and super large enterprises with a revenue of more than 50 million account for 5%. The data interval to which the target data belongs is medium-sized enterprises with a revenue of 1-5 million. According to the angle of the dashboard, the position range of the data interval to which the target data belongs on the dashboard is 126 degrees to 252 degrees, and it can also be expressed by the scale of the dashboard as a position range of 35-70. Therefore, the position parameters of the pointer in the dashboard can be determined to be the above-mentioned position range.
[0052] Through this embodiment, the position parameters of the pointer can be accurately calculated, thereby ensuring that after the instrument panel and the pie chart overlap, the pointer can point to the data interval to which the target data in the pie chart belongs.
[0053] In a specific implementation, determining the scale parameters of the instrument panel includes: determining the number of scale line segments of the instrument panel to be 100; and / or determining the starting angle of the instrument panel to be 180 degrees, and determining the ending angle of the instrument panel to be 0 degrees; and / or determining the scale style and scale lines of the instrument panel to be not displayed.
[0054] For example, the number of segments of the scale line of the instrument panel can be configured to 100, so as to facilitate the use of the instrument panel scale to calculate the position parameters of the pointer. You can also configure the starting angle of the instrument panel to 180 degrees, determine the end angle of the instrument panel to 0 degrees, that is, the instrument panel is displayed as an upper semicircle, and configure the scale style and scale lines of the instrument panel to be non-displayed, which can make the final display result more beautiful.
[0055] Figure 3 This is a flow chart of a data display method according to another exemplary embodiment of the present invention. This embodiment mainly shows an optional implementation scheme of the above step S202. Figure 3As shown, this embodiment mainly includes the following steps:
[0056] S301, determining the proportion of the data interval to which the target data belongs;
[0057] S302, determining the sum of the proportions of other data intervals before the data interval to which the target data belongs in the pie chart along the order direction of the data intervals;
[0058] S303, calculating the sum of the proportions of half of the proportion of the data interval to which the target data belongs and the sum of the proportions of other data intervals; and determining the position parameter of the pointer according to the sum of the proportions.
[0059] Exemplarily, the target data may be a registered capital of 3 million, and the proportion ratio of the data interval to which the target data belongs may be 35% of medium-sized enterprises with a registered capital of 1-5 million. The data intervals are arranged in order from small to large. Along the order of the data intervals, the sum of the proportion ratios of other data intervals before the data interval to which the target data belongs in the pie chart is calculated to be 35%, and half of the proportion ratio of the data interval to which the target data belongs is calculated to be 17.5%. The total proportion of this ratio and the sum of the proportion ratios of other data intervals is calculated to be 52.5%. The position parameters of the pointer are configured according to the total proportion of 52.5%.
[0060] Through this embodiment, the position parameters of the pointer calculated can make the pointer point to the middle position of the data interval to which the target data belongs, so that the final display effect is more beautiful and coordinated.
[0061] Figure 4 This is a flow chart of a data display method according to another exemplary embodiment of the present invention. This embodiment mainly shows an optional implementation scheme of the above step S102. Figure 4 As shown, this embodiment mainly includes the following steps:
[0062] S401, configuring content parameters of a pie chart according to multiple data intervals;
[0063] S402, configuring the container size of the pie chart to be the same as the size of the dashboard container;
[0064] S403: Configure the appearance parameters of the pie chart.
[0065] For example, the content parameters of the pie chart include the text format of the pie chart, such as the title of the pie chart and the labels of each data interval; the container size of the pie chart is configured to be the same as the size of the dashboard container. For example, a Node, and through CSS (Cascading Style Sheets, Cascading Style Sheets), the node has width and height. When initializing the dashboard and pie chart, the node is passed in, and the size of the dashboard and pie chart defaults to the size of the node. The appearance parameters of the pie chart include the proportion of each data interval in the pie chart, the appearance style of the pie chart, etc.
[0066] Through this embodiment, the container sizes of the pie chart and the instrument panel are configured to be the same, so that after the pie chart and the instrument panel overlap, the pointer of the instrument panel points to the data interval to which the target data in the pie chart belongs, thereby ensuring the accuracy of the pointer pointing.
[0067] In a specific implementation, the appearance parameters of the pie chart are configured according to the multiple data intervals, including: according to the proportions of the multiple data intervals, the display parameters of the multiple data intervals in the pie chart are determined, so that the sum of the central angles of the multiple data intervals displayed in the pie chart is equal to the central angle of the instrument panel, and the central angle of the instrument panel refers to the angle from the starting position to the ending position of the instrument panel.
[0068] Exemplarily, display parameters of multiple data intervals in a pie chart are determined according to the proportions of multiple data intervals. For example, the degree of the center angle of each data interval in the pie chart is calculated according to the proportion of each data interval, so that the sum of the center angles of the multiple data intervals displayed in the pie chart is equal to the center angle of the dashboard. For example, if the center angle of the dashboard is 180 degrees, the degree of the center angle of each data interval in the pie chart is configured so that the sum is 180 degrees. This allows the dashboard to overlap with the pie chart, making the overall display result more coordinated.
[0069] In a specific implementation, display parameters of multiple data intervals in a pie chart are determined based on the proportions of the multiple data intervals, including: determining the display parameters of the pie chart based on half of the proportion ratio of the multiple data intervals and a preset ratio, wherein the preset proportion ratio is fifty percent.
[0070] Exemplarily, the starting angle of the dashboard is 0 degrees and the planting angle is 180 degrees, then the shape of the dashboard is an upper semicircle. In order for the pie chart to overlap with the dashboard and thus make the pointer of the dashboard point to the data interval in the pie chart, the preset ratio can be set to 50%, and the display parameters of the pie chart can be configured according to half of the original ratio of the proportion of multiple data intervals, so that the data intervals in the pie chart are distributed in the upper semicircle of the pie chart, so that after the pie chart overlaps with the dashboard, the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs, and the chart is presented in the form of an upper semicircle, which is more beautiful overall.
[0071] In a specific implementation, display parameters of multiple data intervals in a pie chart are determined based on the proportions of the multiple data intervals, and also include: configuring the proportions of the multiple data intervals in the pie chart in a clockwise direction according to preset rules, and the preset rules refer to the order of configuring the multiple data intervals.
[0072] For example, the order of configuring the proportions of multiple data intervals in the pie chart in a clockwise direction can be arranged from large to small according to the range of registered capital, for example, micro-enterprises within 500,000 account for 25%, small enterprises between 500,000 and 1 million account for 10%, medium-sized enterprises between 1 million and 5 million account for 35%, medium and high-end enterprises between 5 million and 10 million account for 15%, large enterprises between 10 million and 50 million account for 10%, and super-large enterprises above 50 million account for 5%. The clockwise order is more in line with the user's sorting habits, which can make the user have a better experience when obtaining information about the target object.
[0073] In a specific implementation, content parameters of a pie chart are configured according to multiple data intervals, including: determining that text information in the pie chart is not displayed, the text information includes at least the title name of the pie chart and label information of multiple data intervals, and determining that the portion outside the multiple data intervals in the pie chart is transparent.
[0074] Exemplarily, the text information in the pie chart is configured to be hidden, for example, the title name of the pie chart and the label information of multiple data intervals are configured to be hidden, so that the chart displayed in the total only displays the prompt box content of the data interval to which the target data belongs, and the entire chart is concise and clear, making it more intuitive and clear for users to watch and avoiding interference from other information; the parts outside the multiple data intervals in the pie chart are configured to be transparent, for example, the part corresponding to the preset ratio of 50% is configured to be transparent, so that part of the pie chart can be hidden, so that after the pie chart overlaps with the dashboard, the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs, and the chart is presented in the form of an upper semicircle, which is more beautiful overall.
[0075] It should be noted that the pie chart in the above embodiment can be set as a ring-shaped pie chart, so that the pointer display is clearer and the final display effect is more beautiful. The present invention is not limited to this.
[0076] Figure 5 A schematic diagram exemplarily shows a data display device according to an embodiment of the present invention.
[0077] like Figure 5 As shown, the data display device 500 of this embodiment mainly includes: a data acquisition module 501 , a parameter configuration module 502 and a display module 503 .
[0078] The data acquisition module 501 is used to acquire the target data of multiple pre-divided data intervals and target objects; the parameter configuration module 502 is used to configure the parameters of the dashboard and the pie chart according to the multiple data intervals and the target data, so that the dashboard only displays a pointer and the pie chart displays multiple data intervals. According to the target data, the parameters of the prompt box of the pie chart are determined so that the prompt box is displayed above the data interval to which the target data belongs; the display module 503 is used to display the dashboard, the pie chart and the prompt box in the display interface according to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, so that the pointer of the dashboard points to the data interval to which the target data in the pie chart belongs.
[0079] Optionally, the parameter configuration module 502 is specifically used to: determine the scale parameters of the instrument panel; determine the position parameters of the pointer in the instrument panel according to the order of each data interval, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals.
[0080] Optionally, the parameter configuration module 502 is specifically used to: determine the number of scale line segments of the instrument panel to be 100; and / or, determine the starting angle of the instrument panel to be 180 degrees, determine the ending angle of the instrument panel to be 0 degrees; and / or, determine the scale style and scale lines of the instrument panel to be not displayed.
[0081] Optionally, the parameter configuration module 502 is specifically used to: determine the proportion of the data interval to which the target data belongs; determine the sum of the proportions of other data intervals before the data interval to which the target data belongs in the pie chart along the sequential direction of the data intervals; calculate the sum of the proportions of half of the proportion of the data interval to which the target data belongs and the sum of the proportions of other data intervals; and determine the position parameters of the pointer based on the sum of the proportions.
[0082] Optionally, the parameter configuration module 502 is specifically used to: configure content parameters of the pie chart according to multiple data intervals; configure the container size of the pie chart to be the same as the size of the dashboard container; and configure appearance parameters of the pie chart.
[0083] Optionally, the parameter configuration module 502 is specifically used to: determine the display parameters of multiple data intervals in the pie chart according to the proportion of multiple data intervals, so that the sum of the central angles of the multiple data intervals displayed in the pie chart is equal to the central angle of the instrument panel, and the central angle of the instrument panel refers to the angle from the starting position to the ending position of the instrument panel.
[0084] Optionally, the parameter configuration module 502 is specifically used to determine the display parameters of the pie chart according to half of the proportion ratio of the multiple data intervals and a preset ratio, and the preset proportion ratio is fifty percent.
[0085] Optionally, the parameter configuration module 502 is specifically used to: configure the proportions of multiple data intervals in a pie chart in a clockwise direction according to a preset rule, and the preset rule refers to the order of configuring the multiple data intervals.
[0086] Optionally, the parameter configuration module 502 is specifically used to: determine that the text information in the pie chart is not displayed, the text information at least includes the title name of the pie chart and label information of multiple data intervals, and determine that the part outside the multiple data intervals in the pie chart is transparent.
[0087] Optionally, the parameter configuration module 502 is specifically used to: according to the target data, determine that the prompt box of the data interval to which the target data belongs is always displayed, and determine that the prompt boxes of other data intervals are not displayed, and other data intervals refer to data intervals other than the data interval to which the target data belongs in multiple data intervals.
[0088] Figure 6 The schematic diagram of the electronic device according to the embodiment of the present invention is exemplarily shown. Figure 6 As shown, the electronic device includes a memory 601 and a processor 602, the memory is used to store a computer executable program, and the processor is used to run the computer executable program to implement any of the methods described in the above embodiments.
[0089] An embodiment of the present invention further provides a computer storage medium, on which a computer executable program is stored. The computer executable program is executed to implement the method described in any one of the above embodiments.
[0090] The above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, it should be understood by those skilled in the art that any person familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A data display method, characterized in that: The method comprises: Acquire target data of a plurality of pre-divided data intervals and target objects; According to the multiple data intervals and the target data, the parameters of the dashboard and the pie chart are respectively configured, so that the dashboard only displays the pointer and the pie chart displays the multiple data intervals, and the dashboard is an Echarts dashboard; Determine the parameters of the prompt box of the pie chart according to the target data, so that the prompt box is displayed above the data interval corresponding to the target data; According to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, the dashboard, the pie chart and the prompt box are displayed in the display interface, so that the pointer of the dashboard points to the data interval corresponding to the target data in the pie chart; The step of configuring the parameters of the dashboard according to the plurality of data intervals and the target data so that the dashboard only displays the pointer includes: Determining the scale parameters of the instrument panel; Determining the position parameters of the pointer in the instrument panel according to the order of each of the data intervals, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals; Wherein, determining the scale parameters of the instrument panel includes: Determine that the number of segments of the scale lines of the instrument panel is 100; and / or determine that the starting angle of the instrument panel is 180 degrees, and the ending angle of the instrument panel is 0 degrees; and / or determine that the scale style and scale lines of the instrument panel are not displayed; The step of determining the position parameter of the pointer in the instrument panel according to the order of the data intervals, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals includes: Determine the proportion of the data interval to which the target data belongs; Determine, along the order direction of the data intervals, the sum of the proportions of the other data intervals before the data interval to which the target data belongs in the pie chart; Calculate the total of one half of the proportion of the data interval to which the target data belongs and the sum of the proportions of the other data intervals; Determine the position parameter of the pointer according to the total proportion; The step of determining the parameters of the prompt box of the pie chart according to the target data so that the prompt box is displayed above the data interval corresponding to the target data includes: According to the target data, the prompt box of the data interval corresponding to the target data is determined to be always displayed, and the prompt boxes of other data intervals are determined to be not displayed. The other data intervals refer to the data intervals among the multiple data intervals except the data interval corresponding to the target data.
2. The method according to claim 1, characterized in that Configuring parameters of the pie chart according to the plurality of data intervals includes: According to the plurality of data intervals, configuring content parameters of the pie chart; Configuring the container size of the pie chart to be the same as the size of the dashboard container; Configure the appearance parameters of the pie chart.
3. The method according to claim 2, characterized in that The configuration of the appearance parameters of the pie chart includes: According to the proportion of the multiple data intervals, display parameters of the multiple data intervals in the pie chart are determined so that the sum of the central angles of the multiple data intervals displayed in the pie chart is equal to the central angle of the instrument panel, and the central angle of the instrument panel refers to the angle from the starting position to the ending position of the instrument panel.
4. The method according to claim 3, characterized in that Determining display parameters of the plurality of data intervals in the pie chart according to the proportions of the plurality of data intervals includes: The display parameters of the pie chart are determined based on half of the proportion of the multiple data intervals and a preset ratio, and the preset ratio is fifty percent.
5. The method according to claim 3, characterized in that: The determining, according to the proportions of the plurality of data intervals, display parameters of the plurality of data intervals in the pie chart further includes: According to a preset rule, the proportions of the multiple data intervals are configured in the pie chart in a clockwise direction, and the preset rule refers to the order of configuring the multiple data intervals.
6. The method according to claim 2, characterized in that The configuring content parameters of the pie chart according to the plurality of data intervals includes: The text information in the pie chart is determined to be in a non-display state, wherein the text information at least includes a title name of the pie chart and label information of the plurality of data intervals, and the portion outside the plurality of data intervals in the pie chart is determined to be transparent.
7. A data display device, characterized in that: The device comprises: A data acquisition module, used to acquire target data of a plurality of pre-divided data intervals and target objects; A parameter configuration module, configured to respectively configure the parameters of the dashboard and the pie chart according to the multiple data intervals and the target data, so that the dashboard only displays the pointer and the pie chart displays the multiple data intervals, and to determine the parameters of the prompt box of the pie chart according to the target data, so that the prompt box is displayed above the data interval corresponding to the target data, and the dashboard is an Echarts dashboard; The configuring the parameters of the dashboard according to the plurality of data intervals and the target data so that the dashboard only displays the pointer includes: Determining the scale parameters of the instrument panel; Determining the position parameters of the pointer in the instrument panel according to the order of each of the data intervals, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals; Determining the scale parameters of the instrument panel includes: Determine that the number of segments of the scale lines of the instrument panel is 100; and / or determine that the starting angle of the instrument panel is 180 degrees, and the ending angle of the instrument panel is 0 degrees; and / or determine that the scale style and scale lines of the instrument panel are not displayed; Determining the position parameter of the pointer in the instrument panel according to the order of each of the data intervals, the proportion of the data interval to which the target data belongs, and the proportion of the remaining data intervals includes: Determine the proportion of the data interval to which the target data belongs; Determine, along the order direction of the data intervals, the sum of the proportions of the other data intervals before the data interval to which the target data belongs in the pie chart; Calculate the total of one half of the proportion of the data interval to which the target data belongs and the sum of the proportions of the other data intervals; Determine the position parameter of the pointer according to the total proportion; The step of determining the parameters of the prompt box of the pie chart according to the target data so that the prompt box is displayed above the data interval corresponding to the target data includes: According to the target data, determining that the prompt box of the data interval corresponding to the target data is in a permanent display state, and determining that the prompt boxes of other data intervals are in a non-display state, wherein the other data intervals refer to the data intervals other than the data interval corresponding to the target data among the multiple data intervals; A display module is used to display the dashboard, the pie chart and the prompt box in a display interface according to the parameters of the dashboard, the parameters of the pie chart and the parameters of the prompt box, so that the pointer of the dashboard points to the data interval corresponding to the target data in the pie chart.
8. A computer storage medium, characterized in that: A computer executable program is stored on the computer storage medium, and the computer executable program is executed to implement the method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer executable program, and the processor is used to run the computer executable program to implement the method according to any one of claims 1 to 6.
