CN115146135A - Data display method and device, computer storage medium and electronic equipment - Google Patents

Data display method and device, computer storage medium and electronic equipment Download PDF

Info

Publication number
CN115146135A
CN115146135A CN202210820928.9A CN202210820928A CN115146135A CN 115146135 A CN115146135 A CN 115146135A CN 202210820928 A CN202210820928 A CN 202210820928A CN 115146135 A CN115146135 A CN 115146135A
Authority
CN
China
Prior art keywords
data
pie chart
parameters
instrument panel
intervals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210820928.9A
Other languages
Chinese (zh)
Other versions
CN115146135B (en
Inventor
王超克
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yancheng Tianyanchawei Technology Co ltd
Original Assignee
Yancheng Jindi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yancheng Jindi Technology Co Ltd filed Critical Yancheng Jindi Technology Co Ltd
Priority to CN202210820928.9A priority Critical patent/CN115146135B/en
Publication of CN115146135A publication Critical patent/CN115146135A/en
Application granted granted Critical
Publication of CN115146135B publication Critical patent/CN115146135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a data display method and device, a computer storage medium and electronic equipment. The method comprises the steps of obtaining a plurality of pre-divided data intervals and target data of a target object; respectively configuring parameters of a dashboard and parameters of a pie chart according to the data intervals and the target data, enabling the dashboard to only display a pointer, and enabling the pie chart to display the data intervals; determining parameters of a prompt box of the pie chart according to the target data, and displaying the prompt box above a data interval to which the target data belongs; and displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that a pointer of the instrument panel points to a data interval to which target data in the pie chart belongs. Therefore, the data display effect of the target enterprise is better through the combined display of the pie chart and the instrument panel, and further, the user can visually and clearly know the target data of the target enterprise and the position of the target data in the same industry.

Description

Data display method and device, computer storage medium and electronic equipment
Technical Field
The invention relates to the technical field of computer technology and data processing, in particular to a data display method and device, a computer storage medium and electronic equipment.
Background
When inquiring information of a target enterprise, information such as registered capital and established time of the enterprise is usually displayed, but only the information of the target enterprise is displayed, so that a user cannot intuitively know the distribution condition of the industry where the target enterprise is located and the position condition of the target enterprise in a distribution interval of the same industry, such as: in the prior art, an Echarts dashboard is generally required to support a hover to a corresponding data module to display a Tooltip prompt, and a pointer of the dashboard is required to point to the middle part of the Echarts corresponding data module, but the function of the Echarts dashboard cannot support the two technical requirements.
Disclosure of Invention
Embodiments of the present invention provide a data display method and apparatus, a computer storage medium, and an electronic device, so as to overcome the above technical problems in the related art.
The technical scheme adopted by the invention is as follows: acquiring a plurality of pre-divided data intervals and target data of a target object; respectively configuring parameters of an instrument panel and parameters of a pie chart according to the data intervals and the target data, enabling the instrument panel to only display a pointer, and enabling the pie chart to display the data intervals; determining parameters of a prompt box of the pie chart according to the target data, and displaying the prompt box above a data interval to which the target data belongs; and displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that a pointer of the instrument panel points to a data interval to which target data in the pie chart belongs.
Optionally, configuring parameters of the dashboard according to the plurality of data sections and the target data, so that the dashboard only displays the pointer, including: determining scale parameters of an instrument panel; and determining the position parameters of the pointer in the instrument panel according to the sequence of the data intervals, the occupation ratio of the data interval to which the target data belongs and the occupation ratio of the rest data intervals.
Optionally, determining a calibration parameter of the instrument panel comprises: determining the number of the scale mark segmentation sections of the instrument panel as 100; and/or determining the starting angle of the instrument panel as 180 degrees and determining the ending angle of the instrument panel as 0 degree; and/or determining the scale pattern and the scale mark of the instrument panel to be in a non-display state.
Optionally, determining a position parameter of the pointer in the dashboard according to the sequence 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: determining the ratio of the data interval to which the target data belongs; determining the sum of the ratio of other data intervals before the data interval to which the target data belongs in the pie chart along the sequence direction of the data intervals; calculating the ratio sum of one half of the ratio of the data interval to which the target data belongs and the sum of the ratios of other data intervals; and determining the position parameter of the pointer according to the ratio sum.
Optionally, configuring parameters of the pie chart according to a plurality of data intervals, including: configuring content parameters of the pie chart according to the plurality of data intervals; the size of the container for configuring the pie chart is the same as that of the container of the instrument panel; and configuring appearance parameters of the pie chart.
Optionally, configuring appearance parameters of the pie chart, comprising: and determining display parameters of the data intervals in the pie chart according to the occupation ratios of the data intervals, wherein the sum of central angles of the 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.
Optionally, determining display parameters of a plurality of data intervals in the pie chart according to the percentage of the plurality of data intervals, including: and determining display parameters of the pie chart according to one half of the ratio of the plurality of data intervals and a preset ratio, wherein the preset ratio is fifty percent.
Optionally, determining display parameters of a plurality of data intervals in the pie chart according to the occupation ratio of the plurality of data intervals, further comprising: and allocating the occupation ratios of the plurality of data intervals into the pie chart along the clockwise direction according to a preset rule, wherein the preset rule refers to the sequence of allocating the plurality of data intervals.
Optionally, configuring content parameters of the pie chart according to a plurality of data intervals, including: and determining that the text information in the pie chart is in a non-display state, wherein the text information at least comprises the title name of the pie chart and label information of a plurality of data sections, and determining that the part except the plurality of data sections in the pie chart is transparent.
Optionally, determining parameters of a prompt box of the pie chart according to the target data, so that the prompt box is displayed above a data interval to which the target data belongs, including: and according to the target data, determining that a prompt box of a data interval to which the target data belongs is in a permanent display state, and determining that prompt boxes of other data intervals are in a non-display state, wherein the other data intervals refer to data intervals except the data interval to which the target data belongs in the plurality of data intervals.
A data display device comprising: the data acquisition module is used for acquiring a plurality of pre-divided data intervals and target data of a target object; the parameter configuration module is used for respectively configuring parameters of the instrument panel and parameters of the pie chart according to the data intervals and the target data, enabling the instrument panel to only display a pointer, enabling the pie chart to display the data intervals, determining parameters of a prompt box of the pie chart according to the target data, and enabling the prompt box to be displayed above the data interval to which the target data belongs; and the display module is used for displaying the instrument panel, the pie chart and the prompt box in the display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that the pointer of the instrument panel points to the data interval to which the target data in the pie chart belongs.
A computer storage medium having stored thereon a computer executable program, the computer executable program being operative to implement the method of any one of the embodiments of the present invention.
An electronic device comprising a memory for storing a computer-executable program thereon and a processor for running the computer-executable program to implement the method of any one of the embodiments of the invention.
According to the embodiment of the invention, a plurality of data intervals which are divided in advance and target data of a target object are obtained; respectively configuring parameters of a dashboard and parameters of a pie chart according to the data intervals and the target data, enabling the dashboard to only display a pointer, and enabling the pie chart to display the data intervals; determining parameters of a prompt box of the pie chart according to the target data, and displaying the prompt box above a data interval to which the target data belongs; and displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that a pointer of the instrument panel points to a data interval to which target data in the pie chart belongs. Therefore, the data display effect of the target enterprise is better through the combined display of the pie chart and the instrument panel, and further, the user can visually and clearly know the target data of the target enterprise and the position of the target data in the same industry.
Drawings
FIG. 1 is a schematic flow chart diagram of a data display method according to an exemplary embodiment of the present invention;
FIG. 2 is a schematic flow chart of a data display method according to another exemplary embodiment of the present invention;
FIG. 3 is a flow chart illustrating a data display method according to another exemplary embodiment of the present invention;
FIG. 4 is a flow chart illustrating a data display method according to another exemplary embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of a data display device of an embodiment of the present invention;
fig. 6 schematically shows an electronic device according to an embodiment of the invention.
Detailed Description
To make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
For convenience of understanding, before describing the specific embodiments of the present invention in detail, an application scenario of a data display method and apparatus, a computer storage medium, and an electronic device according to the present invention will be described in an exemplary manner.
When inquiring information of a target enterprise, inquiring information such as registration capital, establishment time and the like of the enterprise is usually displayed, but only the information of the target enterprise is displayed, so that a user cannot visually know the position of the target enterprise in the same industry, and the user cannot rapidly utilize the inquired information. In view of the above, the present invention provides a data display method and apparatus, a computer storage medium, and an electronic device, which can solve the above problems in the prior art.
Specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a data display method according to an exemplary embodiment of the present invention, and as shown in fig. 1, this embodiment mainly includes the following steps:
s101, acquiring a plurality of pre-divided data intervals and target data of a target object;
different types of target data can correspond to different data interval division modes.
Taking the registered capital of the enterprise as an example, the data interval is divided based on the value of the registered capital, and the enterprise type can be divided according to the data interval of the registered capital, for example, the registered capital can be divided into 6 data intervals, which are: 50-ten thousand micro enterprises, 50-100 thousand small enterprises, 100-500 thousand medium enterprises, 500-1000 thousand medium and high type enterprises, 1000-5000 thousand large enterprises and over 5000 thousand ultra large enterprises. The target data for the target object may then be the registered capital of a certain business.
Of course, the data interval may be divided in other ways for other kinds of target data, and this is not limited.
S102, respectively configuring parameters of a dashboard and parameters of a pie chart according to the data intervals and the target data, enabling the dashboard to only display a pointer, and enabling the pie chart to display the data intervals;
illustratively, the parameters of the pie chart may be configured according to the proportion of 6 data intervals of the registered capital.
For example, in the existing enterprise data, the percentage of micro-enterprises within 50 ten thousand may be 25%, the percentage of small-sized enterprises within 50-100 ten thousand may be 10%, the percentage of medium-sized enterprises within 100-500 ten thousand may be 35%, the percentage of medium-sized enterprises within 500-1000 ten thousand may be 15%, the percentage of large-sized enterprises within 1000-5000 ten thousand may be 10%, and the percentage of ultra-large-sized enterprises above 5000 ten thousand may be 5%, then the percentage of 6 data intervals is displayed by configuring the pie chart parameters. If yes, respectively configuring the value of 25% and the name of a micro enterprise in the data parameters of the pie chart; { value:10%, name: small business }; { value:35%, name: medium-sized Enterprise }; { value:15%, name: medium and high enterprise }; { value:5%, name: very Large Enterprise }.
Of course, the above parameter configuration is only one possible example, and other ways of configuring the parameters may be adopted in other embodiments, which is not limited in this respect.
The above-mentioned occupation ratio of 6 data intervals of registered capital can be obtained by big data statistics.
For example, the parameter of the dashboard may be configured according to the data section and the target data, so that the pointer of the dashboard points to the data section to which the target data belongs, for example, if the target data may be a medium-sized enterprise with a registered capital of 300 ten thousand, and the data section to which the target data belongs is 100-500 ten thousand, the parameter of the pointer in the dashboard is configured, and the pointer of the dashboard points to the location of the medium-sized enterprise with 100-500 ten thousand. And hide other display content of the dashboard, such as tick marks, graduations, names, etc.
S103, determining parameters of a prompt box of the pie chart according to the target data, and displaying the prompt box above a data interval to which the target data belongs;
for example, parameters of a prompt box of the pie chart may be configured according to the target data, for example, if the target data is 300 thousands of registered capital, and the data interval to which the target data belongs is 100-500 thousands of medium-sized enterprises, the prompt box corresponding to 100-500 thousands of medium-sized enterprises in the pie chart displays information of the data interval to which the target data belongs, and hides the prompt box of other data intervals, for example, 35% of 100-500 thousands of medium-sized enterprises may be displayed in the prompt box. Further, other information of the target data, for example, the registered capital information of the target data, may also be displayed in the prompt box, which is not limited in the present invention.
In a specific implementation manner, determining parameters of a prompt box of a pie chart according to target data, and displaying the prompt box above a data interval to which the target data belongs includes: and according to the target data, determining that a prompt box of a data interval to which the target data belongs is in a permanent display state, and determining that prompt boxes of other data intervals are in a non-display state, wherein the other data intervals refer to data intervals except the data interval to which the target data belongs in the plurality of data intervals.
For example, the trigger type of the prompt box may be configured as no trigger, the prompt box in the data interval may be configured as displaying a prompt box floating layer and displaying the content of the prompt box forever, and the prompt boxes in other data intervals may be configured as not displaying the prompt box floating layer and not displaying the content of the prompt box. The position of the floating layer of the prompt box can be represented by an array, the absolute position can be set by using numbers, and the relative position can be set by using percentages, so that the prompt box is displayed above the data interval to which the target data belongs. In addition, the frame format, the text format, and the like of the prompt box can be configured as required.
By the implementation mode, 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 in other data intervals is hidden, so that the position of the target object in the same industry can be clear to a user, and the interference of other information is avoided.
And S104, displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, and enabling a pointer of the instrument panel to point to a data interval to which target data in the pie chart belongs.
For example, the dashboard, the pie chart and the prompt box which are configured are displayed in the display interface, and the dashboard and the pie chart are overlapped, for example, the position parameters and the container parameters of the dashboard and the pie chart can be configured, so that the pointer of the dashboard points to the data section to which the target data in the pie chart belongs, and the prompt box is correspondingly displayed above the data section.
Exemplarily, displaying the configured dashboard, pie chart and prompt box in the display interface specifically includes: establishing a new instrument panel layer on the display interface, so that an instrument panel on the instrument panel layer is overlapped with a pie chart on an original image layer on the display interface, for example, position parameters and container parameters of the instrument panel and the pie chart can be configured, so that a pointer of the instrument panel points to a data interval to which target data in the pie chart belongs, and a prompt box is correspondingly displayed above the data interval; or, a new pie chart layer is established on the display interface, so that the instrument panel on the original chart layer on the display interface is overlapped with the pie chart on the pie chart layer, for example, the position parameters and the container parameters of the instrument panel and the pie chart can be configured, so that the pointer of the instrument panel points to the data interval to which the target data in the pie chart belongs, and the prompt box is correspondingly displayed above the data interval. By the method, instrument panels and pie charts on different layers can be changed respectively and rapidly.
According to the embodiment of the invention, a plurality of data intervals which are divided in advance and target data of a target object are obtained; respectively configuring parameters of a dashboard and parameters of a pie chart according to the data intervals and the target data, enabling the dashboard to only display a pointer, and enabling the pie chart to display the data intervals; determining parameters of a prompt box of the pie chart according to the target data, and displaying the prompt box above a data interval to which the target data belongs; and displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that a pointer of the instrument panel points to a data interval to which target data in the pie chart belongs. Therefore, the data display effect of the target enterprise is better through the combined display of the pie chart and the instrument panel, and further, the user can visually and clearly know the target data of the target enterprise and the position of the target data in the same industry.
Fig. 2 is a schematic flow chart of a data display method according to another exemplary embodiment of the present invention, and this embodiment mainly shows an alternative implementation of step S102 described above. As shown in fig. 2, the present embodiment mainly includes the following steps:
s201, determining scale parameters of an instrument panel;
s202, determining position parameters of the pointer in the instrument panel according to the sequence of the data intervals, the proportion of the data interval to which the target data belongs and the proportion of the rest data intervals.
For example, the scale parameters of the instrument panel may include the number of scale mark segments, the start angle and the end angle of the instrument panel, the scale pattern of the instrument panel, the scale marks, and the like, and the number of scale mark segments, the start angle and the end angle of the instrument panel may be configured as needed, and the scale pattern and the scale marks of the instrument panel may be hidden. Calculating a position range occupied by the data section to which the target data belongs on the instrument panel according to an arrangement sequence of the data sections from a starting position to an ending position of the instrument panel, an occupation ratio of the data section to which the target data belongs and occupation ratios of the remaining data sections, wherein the position range can be represented by an angle of the instrument panel or a scale of the instrument panel, for example, the number of scale line segments of the instrument panel can be 100, the starting angle of the instrument panel can be 0 degree, and the ending angle can be 360 degrees, and the 6 data sections are arranged in sequence: the position range of the data interval occupied by the target data on the instrument panel is represented by 126-252 degrees according to the angle of the instrument panel, or is represented by 35-70 degrees through the scale of the instrument panel, so that the position parameter of the pointer in the instrument panel can be determined to be the position range.
Through the embodiment, the position parameters of the pointer can be accurately calculated, so that the pointer can point to the data interval to which the target data in the pie chart belongs after the instrument panel is overlapped with the pie chart.
In a specific implementation, determining a scale parameter of an instrument panel includes: determining the dividing segment number of the scale mark of the instrument panel as 100; and/or determining the starting angle of the instrument panel as 180 degrees and determining the ending angle of the instrument panel as 0 degree; and/or determining the scale pattern and the scale mark of the instrument panel to be in a non-display state.
For example, the number of segments of the scale mark of the dashboard may be configured to be 100, so as to facilitate the calculation of the position parameter of the pointer using the scale mark of the dashboard. The starting angle of the instrument panel can be configured to be 180 degrees, the ending angle of the instrument panel is determined to be 0 degree, namely the instrument panel is displayed to be in a semicircular shape, and the scale pattern and the scale lines of the instrument panel are configured to be in a non-display state, so that the final display result is more attractive.
Fig. 3 is a schematic flow chart of a data display method according to another exemplary embodiment of the present invention, and this embodiment mainly shows an alternative implementation of step S202 described above. As shown in fig. 3, the present embodiment mainly includes the following steps:
s301, determining the ratio of the data interval to which the target data belongs;
s302, determining the sum of the ratio of other data intervals before the data interval to which the target data belongs in the pie chart along the sequence direction of the data intervals;
s303, calculating the ratio sum of one half of the ratio of the data interval to which the target data belongs and the sum of the ratios of other data intervals; and determining the position parameter of the pointer according to the ratio sum.
For example, the target data may be 300 ten thousand of registered capital, the percentage ratio of the data section to which the target data belongs may be 35% of a medium-sized enterprise of 100-500 ten thousand, the data sections are arranged in a descending order, along the sequential direction of the data sections, the sum of the percentage ratios of other data sections before the data section to which the target data belongs in the pie chart is calculated to be 35%, one half of the percentage ratio of the data section to which the target data belongs is calculated to be 17.5%, the sum of the percentage ratios of the ratio and the sum of the percentage ratios of other data sections is calculated to be 52.5%, and the position parameter of the pointer is configured according to 52.5% of the sum of the percentage ratios.
Through the embodiment, the calculated position parameters of the pointer can enable the pointer to point to the middle position of the data interval to which the target data belongs, so that the final display effect is more excellent and harmonious.
Fig. 4 is a schematic flow chart of a data display method according to another exemplary embodiment of the present invention, and this embodiment mainly shows an alternative implementation of step S102 described above. As shown in fig. 4, the present embodiment mainly includes the following steps:
s401, configuring content parameters of a pie chart according to a plurality of data intervals;
s402, the size of a container for configuring the pie chart is the same as that of a container of the instrument panel;
and S403, configuring appearance parameters of the pie chart.
Illustratively, the content parameters configuring the pie chart include a text format of the pie chart, such as a title name of the pie chart and a label of each data interval; the container size of the configuration pie chart is the same as the size of the dashboard container, for example, a < div > node may be defined in the HTML, and the node has a width and a height through CSS (Cascading Style Sheets), and the node is introduced when the dashboard and pie chart are initialized, and the size of the dashboard and pie chart is the size of the node by default. The appearance parameters for configuring the pie chart comprise proportion display of each data interval in the pie chart, appearance style of the pie chart and the like.
Through the embodiment, the container size of the pie chart and the instrument panel is configured to be the same, so that after the pie chart and the instrument panel are overlapped, the pointer of the instrument panel points to the data interval to which the target data in the pie chart belongs, and the pointing accuracy of the pointer is ensured.
In a specific implementation manner, configuring an appearance parameter of a pie chart according to a plurality of data intervals includes: and determining display parameters of the data intervals in the pie chart according to the proportion of the data intervals, and enabling the sum of central angles of the data intervals displayed in the pie chart to be equal to the central angle of the instrument panel, wherein the central angle of the instrument panel refers to the angle from the initial position to the end position of the instrument panel.
For example, the central angle degree of each data interval in the pie chart is calculated according to the proportion of each data interval, the sum of the central angles of the data intervals displayed in the pie chart is equal to the central angle of the instrument panel, for example, the central angle of the instrument panel is 180 degrees, and the central angle degrees of the data intervals in the pie chart are configured to be 180 degrees. Therefore, the instrument panel can be overlapped with the pie chart, and the displayed result is integrally more coordinated.
In a specific implementation manner, determining display parameters of a plurality of data intervals in a pie chart according to the occupation ratios of the plurality of data intervals includes: and determining display parameters of the pie chart according to one half of the ratio of the plurality of data intervals and a preset ratio, wherein the preset ratio is fifty percent.
For example, the starting angle of the instrument panel is 0 degree, the planting angle is 180 degrees, the shape of the instrument panel is an upper semicircle, in order to enable the pie chart to be overlapped with the instrument panel and further enable the pointer of the instrument panel to point to the data interval in the pie chart, the preset ratio can be set to be 50%, and the ratio of the multiple data intervals is configured with the display parameters of the pie chart according to one half of the original ratio, so that the data intervals in the pie chart are distributed in the upper semicircle of the pie chart, after the pie chart is overlapped with the instrument panel, the pointer of the instrument panel points to the data interval to which the target data in the pie chart belongs, and the upper semicircle of the pie chart is presented, and the whole is more beautiful.
In a specific implementation manner, determining display parameters of a plurality of data intervals in a pie chart according to the occupation ratios of the plurality of data intervals, further includes: and allocating the occupation ratios of the plurality of data intervals into the pie chart along the clockwise direction according to a preset rule, wherein the preset rule refers to the sequence of allocating the plurality of data intervals.
For example, the order of allocating the occupancy of the plurality of data intervals into the pie chart in the clockwise direction may be from large to small according to the range of the registered capital, for example, 50 ten thousand micro-scale enterprises account for 25%, 50-100 ten thousand small-scale enterprises account for 10%, 100-500 ten thousand medium-scale enterprises account for 35%, 500-1000 ten thousand medium-scale enterprises account for 15%, 1000-5000 ten thousand large-scale enterprises account for 10%, and 5000 ten thousand or more ultra-large-scale enterprises account for 5%. According to the clockwise sequence, the sequencing habits of the users are relatively met, and the experience sense of the users is better when the users acquire the information of the target objects.
In a specific implementation manner, configuring content parameters of a pie chart according to a plurality of data intervals includes: and determining that the text information in the pie chart is in a non-display state, wherein the text information at least comprises the title name of the pie chart and label information of a plurality of data sections, and determining that the part except the plurality of data sections in the pie chart is transparent.
Exemplarily, configuring the text information in the pie chart to be in a non-display state, for example, configuring the title name of the pie chart and the label information of the multiple data intervals to be in the non-display state, so that the displayed chart only displays the content of a prompt box in the data interval to which the target data belongs, and the whole chart is simple and clear, so that the user can watch the chart more intuitively and clearly, and the interference of other information is avoided; the part of the pie chart outside the data sections is configured to be transparent, for example, the part corresponding to the preset ratio of 50% is configured to be transparent, so that the pie chart can be hidden, and therefore, after the pie chart is overlapped with the instrument panel, the pointer of the instrument panel points to the data section to which the target data belongs in the pie chart, and an upper semicircle chart form is presented, and the whole appearance is more attractive.
It should be noted that the pie chart in the above embodiment may be set as an annular pie chart, so that the display of the pointer is clearer, and the final display effect is more beautiful. The invention is not limited in this regard.
Fig. 5 schematically shows a data display device of an embodiment of the present invention.
As shown in fig. 5, the data display device 500 of the present embodiment mainly includes: a data acquisition module 501, a parameter configuration module 502 and a display module 503.
A data obtaining module 501, configured to obtain a plurality of data intervals divided in advance and target data of a target object; the parameter configuration module 502 is configured to configure parameters of the instrument panel and parameters of the pie chart according to the multiple data intervals and the target data, so that the instrument panel only displays the pointer, the pie chart displays the multiple data intervals, parameters of a prompt box of the pie chart are determined according to the target data, and the prompt box is displayed above the data interval to which the target data belongs; the display module 503 is configured to display the dashboard, the pie chart, and the prompt box in the display interface according to the parameter of the dashboard, the parameter of the pie chart, and the parameter 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.
Optionally, the parameter configuration module 502 is specifically configured to: determining scale parameters of the instrument panel; and determining the position parameters of the pointer in the instrument panel according to the sequence of the data intervals, the occupation ratio of the data interval to which the target data belongs and the occupation ratio of the rest data intervals.
Optionally, the parameter configuration module 502 is specifically configured to: determining the dividing segment number of the scale mark of the instrument panel as 100; and/or determining the starting angle of the instrument panel as 180 degrees and determining the ending angle of the instrument panel as 0 degree; and/or determining the scale pattern and the scale mark of the instrument panel to be in a non-display state.
Optionally, the parameter configuration module 502 is specifically configured to: determining the ratio of the data interval to which the target data belongs; determining the sum of the ratio of other data intervals before the data interval to which the target data belongs in the pie chart along the sequence direction of the data intervals; calculating the ratio sum of one half of the ratio of the data interval to which the target data belongs and the sum of the ratios of other data intervals; and determining the position parameter of the pointer according to the ratio sum.
Optionally, the parameter configuration module 502 is specifically configured to: configuring content parameters of the pie chart according to the plurality of data intervals; the size of the container for configuring the pie chart is the same as that of the container of the instrument panel; and configuring appearance parameters of the pie chart.
Optionally, the parameter configuration module 502 is specifically configured to: and determining display parameters of the data intervals in the pie chart according to the proportion of the data intervals, and enabling the sum of central angles of the data intervals displayed in the pie chart to be equal to the central angle of the instrument panel, wherein the central angle of the instrument panel refers to the angle from the initial position to the end position of the instrument panel.
Optionally, the parameter configuration module 502 is specifically configured to: and determining display parameters of the pie chart according to one half of the ratio of the plurality of data intervals and a preset ratio, wherein the preset ratio is fifty percent.
Optionally, the parameter configuration module 502 is specifically configured to: and allocating the occupation ratios of the plurality of data intervals into the pie chart along the clockwise direction according to a preset rule, wherein the preset rule refers to the sequence of allocating the plurality of data intervals.
Optionally, the parameter configuration module 502 is specifically configured to: and determining that the text information in the pie chart is in a non-display state, wherein the text information at least comprises the title name of the pie chart and label information of a plurality of data sections, and determining that the part except the plurality of data sections in the pie chart is transparent.
Optionally, the parameter configuration module 502 is specifically configured to: and according to the target data, determining that a prompt box of a data interval to which the target data belongs is in a permanent display state, and determining that prompt boxes of other data intervals are in a non-display state, wherein the other data intervals refer to data intervals except the data interval to which the target data belongs in the plurality of data intervals.
Fig. 6 schematically shows an electronic device according to an embodiment of the invention. As shown in fig. 6, the electronic device comprises a memory 601 for storing thereon a computer-executable program and a processor 602 for executing the computer-executable program to implement the method of any of the above embodiments.
Embodiments of the present invention also provide a computer storage medium having a computer-executable program stored thereon, where the computer-executable program is executed to implement the method of any one of the above embodiments.
The above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (13)

1. A method of displaying data, the method comprising:
acquiring a plurality of pre-divided data intervals and target data of a target object;
respectively configuring parameters of a dashboard and parameters of a pie chart according to the data intervals and the target data, enabling the dashboard to only display a pointer, and enabling the pie chart to display the data intervals;
determining parameters of a prompt box of the pie chart according to the target data, and displaying the prompt box above the data interval corresponding to the target data;
and displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that a pointer of the instrument panel points to the data interval corresponding to the target data in the pie chart.
2. The method of claim 1, wherein configuring parameters of a dashboard according to a plurality of the data intervals and the target data, such that the dashboard displays only a pointer, comprises:
determining scale parameters of the instrument panel;
and determining the position parameters of the pointer in the instrument panel according to the sequence of each data interval, the ratio of the data interval to which the target data belongs and the ratio of the rest data intervals.
3. The method of claim 2, wherein the determining a calibration parameter of the instrument panel comprises:
determining the dividing segment number of the scale mark of the instrument panel as 100; and/or determining that the starting angle of the instrument panel is 180 degrees and determining that the ending angle of the instrument panel is 0 degree; and/or determining the scale pattern and the scale mark of the instrument panel to be in a non-display state.
4. The method according to claim 2, wherein the determining a position parameter of a pointer in the dashboard according to an order of each of the data intervals, a proportion of a data interval to which the target data belongs, and a proportion of the remaining data intervals comprises:
determining the ratio of the data interval to which the target data belongs;
determining the sum of the ratio values of other data intervals before the data interval to which the target data belongs in the pie chart along the sequence direction of the data intervals;
calculating the ratio sum of one half of the ratio of the data interval to which the target data belongs and the sum of the ratios of the other data intervals;
and determining the position parameter of the pointer according to the ratio sum.
5. The method of claim 1, wherein configuring parameters of a pie chart according to a plurality of the data intervals comprises:
configuring content parameters of the pie chart according to the plurality of data intervals;
configuring the size of a container of the pie chart to be the same as the size of the instrument panel container;
and configuring the appearance parameters of the pie chart.
6. The method of claim 5, wherein configuring the appearance parameters of the pie chart comprises:
and determining display parameters of the data intervals in the pie chart according to the proportion of the data intervals, so that the sum of central angles of the 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 initial position to the end position of the instrument panel.
7. The method of claim 6, wherein the determining the display parameters of the plurality of data intervals in the pie chart according to the percentage of the plurality of data intervals comprises:
and determining display parameters of the pie chart according to one half of the ratio of the data intervals and a preset ratio, wherein the preset ratio is fifty percent.
8. The method according to claim 6 or 7, wherein the determining a display parameter of a plurality of data intervals in the pie chart according to the percentage of the plurality of data intervals further comprises:
and allocating the occupation ratios of the plurality of data intervals into the pie chart along the clockwise direction according to a preset rule, wherein the preset rule refers to the sequence of allocating the plurality of data intervals.
9. The method of claim 5, wherein configuring the content parameters of the pie chart according to the plurality of data intervals comprises:
and determining that the text information in the pie chart is in a non-display state, wherein the text information at least comprises the title name of the pie chart and the label information of the data intervals, and determining that the part outside the data intervals in the pie chart is transparent.
10. The method of claim 1, wherein the determining parameters of a prompt box of the pie chart according to the target data to display the prompt box above the data interval corresponding to the target data comprises:
and according to the target data, determining that a prompt box of the data interval corresponding to the target data is in a permanent display state, and determining that prompt boxes of other data intervals are in a non-display state, wherein the other data intervals refer to the data intervals except the data interval corresponding to the target data in the plurality of data intervals.
11. A data display device, the device comprising:
the data acquisition module is used for acquiring a plurality of pre-divided data intervals and target data of a target object;
the parameter configuration module is used for respectively configuring parameters of a dashboard and parameters of a pie chart according to the data intervals and the target data, enabling the dashboard to only display a pointer, enabling the pie chart to display the data intervals, determining parameters of a prompt box of the pie chart according to the target data, and enabling the prompt box to be displayed above the data interval corresponding to the target data;
and the display module is used for displaying the instrument panel, the pie chart and the prompt box in a display interface according to the parameters of the instrument panel, the parameters of the pie chart and the parameters of the prompt box, so that a pointer of the instrument panel points to the data interval corresponding to the target data in the pie chart.
12. A computer storage medium having a computer-executable program stored thereon, the computer-executable program being executed to implement the method of any one of claims 1-10.
13. An electronic device, comprising a memory for storing a computer-executable program thereon and a processor for executing the computer-executable program to implement the method of any one of claims 1-10.
CN202210820928.9A 2022-07-13 2022-07-13 Data display method and device, computer storage medium and electronic equipment Active CN115146135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820928.9A CN115146135B (en) 2022-07-13 2022-07-13 Data display method and device, computer storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820928.9A CN115146135B (en) 2022-07-13 2022-07-13 Data display method and device, computer storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN115146135A true CN115146135A (en) 2022-10-04
CN115146135B CN115146135B (en) 2024-09-03

Family

ID=83413155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820928.9A Active CN115146135B (en) 2022-07-13 2022-07-13 Data display method and device, computer storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115146135B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07282278A (en) * 1994-04-11 1995-10-27 Casio Comput Co Ltd Pie chart drawing method
US20050068320A1 (en) * 2003-09-26 2005-03-31 Denny Jaeger Method for creating and manipulating graphic charts using graphic control devices
US20170053425A1 (en) * 2015-08-20 2017-02-23 Autodesk, Inc. Techniques for dynamically displaying pie charts for direct comparison
CN108399386A (en) * 2018-02-26 2018-08-14 阿博茨德(北京)科技有限公司 Information extracting method in pie chart and device
CN114416861A (en) * 2022-01-26 2022-04-29 重庆允丰科技有限公司 Pie chart-based data visualization method, device, and computer-readable storage medium
CN114595416A (en) * 2021-12-08 2022-06-07 新华三大数据技术有限公司 A data visualization method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07282278A (en) * 1994-04-11 1995-10-27 Casio Comput Co Ltd Pie chart drawing method
US20050068320A1 (en) * 2003-09-26 2005-03-31 Denny Jaeger Method for creating and manipulating graphic charts using graphic control devices
US20170053425A1 (en) * 2015-08-20 2017-02-23 Autodesk, Inc. Techniques for dynamically displaying pie charts for direct comparison
CN108399386A (en) * 2018-02-26 2018-08-14 阿博茨德(北京)科技有限公司 Information extracting method in pie chart and device
CN114595416A (en) * 2021-12-08 2022-06-07 新华三大数据技术有限公司 A data visualization method and device
CN114416861A (en) * 2022-01-26 2022-04-29 重庆允丰科技有限公司 Pie chart-based data visualization method, device, and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
木木西里科技官方: "Excel教程:仪表盘图表居然可以这么简单,一学就会", pages 1 - 11, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/339015267> *

Also Published As

Publication number Publication date
CN115146135B (en) 2024-09-03

Similar Documents

Publication Publication Date Title
US11263228B2 (en) Continuously scrollable calendar user interface
US20210232304A1 (en) Modifying style layer properties of a digital map
KR101717444B1 (en) Hiding portions of display content
EP2051158B1 (en) System for text entry
US20070024490A1 (en) Modification of Chart Representation of Tabular Data in an Information Display System
US20120017176A1 (en) Method and apparatus for displaying a menu
JP2003337041A (en) Map display system, method for displaying map and program
US10613725B2 (en) Fixing spaced relationships between graphic objects
US11269950B2 (en) Analysis for framework assessment
CN106155988A (en) Data drawing list method for drafting based on excel and relevant apparatus
CN101685368A (en) Method for displaying and browsing layered information
US20200342552A1 (en) Editing and Representing Property Values for a Digital Map
US8743134B2 (en) Interactive comparative analysis of multiple object data visualizations
CN110134354A (en) Display panel control method, display system and vehicle
CN106020685A (en) Thinking guide graph operation method and device
US20180004374A1 (en) Process visualization toolkit
CN115730113A (en) Graph display method, device, equipment and medium
CN106535002B (en) Desktop starter template layout updating method and device
CN115146135A (en) Data display method and device, computer storage medium and electronic equipment
EP1069549A1 (en) Character information transmission system
CN106598315B (en) Touch display device and background image replacement method thereof
CN104484093A (en) Graphical interface arrangement display method and graphical interface arrangement display device
US20240086024A1 (en) Creation and deployment of digital activity
Wood Adobe Illustrator CC Classroom in a book
JP2022172009A (en) Computer program, information processing method and computer

Legal Events

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

Effective date of registration: 20230728

Address after: Room 404-405, 504, Building B-17-1, Big data Industrial Park, Kecheng Street, Yannan High tech Zone, Yancheng, Jiangsu Province, 224000

Applicant after: Yancheng Tianyanchawei Technology Co.,Ltd.

Address before: 224000 room 501-503, building b-17-1, Xuehai road big data Industrial Park, Kecheng street, Yannan high tech Zone, Yancheng City, Jiangsu Province (CNK)

Applicant before: Yancheng Jindi Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant