CN112579223A - Display method and device of instrument panel diagram and electronic equipment - Google Patents

Display method and device of instrument panel diagram and electronic equipment Download PDF

Info

Publication number
CN112579223A
CN112579223A CN201910944641.5A CN201910944641A CN112579223A CN 112579223 A CN112579223 A CN 112579223A CN 201910944641 A CN201910944641 A CN 201910944641A CN 112579223 A CN112579223 A CN 112579223A
Authority
CN
China
Prior art keywords
value
instrument panel
dial
range
maximum value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910944641.5A
Other languages
Chinese (zh)
Inventor
翟凯伦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910944641.5A priority Critical patent/CN112579223A/en
Publication of CN112579223A publication Critical patent/CN112579223A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Instrument Panels (AREA)

Abstract

The invention discloses a display method and device of a dashboard map and electronic equipment. Wherein, the method comprises the following steps: receiving a current value to be displayed; determining a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; and according to the current value, pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range. The invention solves the technical problem that the instrument plate in the related technology can not reflect the completion condition of the target value and the current value.

Description

Display method and device of instrument panel diagram and electronic equipment
Technical Field
The invention relates to the field of graph display, in particular to a method and a device for displaying a dashboard graph and electronic equipment.
Background
The dial plate is a relatively common chart form, the existing dial plate is usually a real dial plate and is provided with a rotatable pointer, but the real dial plate is more easily damaged and has shorter service life, so that the dial plate form is displayed through a display screen to replace the original electronic dial plate, and the problem of the former real dial plate is solved. In the electronic dial in the related art, there are usually only a minimum value and a maximum value, and a pointer, the minimum value and the maximum value represent a dial range, and the pointer points to the dial range and represents a ratio of a current value and a current value in the dial range. However, the existing demand has a concept of a target value, which is used for marking the target value and showing the completion relationship between the current value and the target. But the default dashboard map is a concept where no targets exist. The problems of inconvenient use and poor user experience are caused.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a display method and device of an instrument panel diagram and electronic equipment, and aims to at least solve the technical problem that the instrument panel in the related technology cannot show the completion condition of a target value and a current value.
According to an aspect of an embodiment of the present invention, there is provided a dashboard map display method including: receiving a current value to be displayed; determining a maximum value, a minimum value and a target value of an instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; and according to the current value, pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range.
Optionally, determining the maximum value of the instrument panel includes: determining whether the instrument panel has a preset maximum value, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value; taking a target value as the maximum value of the instrument panel under the condition that the instrument panel has no preset maximum value, or determining the maximum value of the instrument panel according to a current value, wherein if the current value is positive, a multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; and if the current value is zero, taking 1 as the maximum value of the instrument panel.
Optionally, determining the minimum value of the instrument panel includes: determining whether the instrument panel has a preset minimum value or not, and taking the preset minimum value as the minimum value of the instrument panel under the condition that the instrument panel has the preset minimum value; determining the minimum value of the instrument panel according to the current value under the condition that the instrument panel has no preset minimum value, wherein if the current value is positive, zero is taken as the minimum value of the instrument panel; and if the current value is negative, taking the multiple of the current value as the minimum value of the instrument panel.
Optionally, determining the target value of the instrument panel includes: and determining whether the instrument panel has a preset target value, and taking the preset target value as the target value of the instrument panel under the condition that the instrument panel has the preset target value.
Optionally, generating a dial according to the maximum value, the minimum value and the target value includes: determining the range of the first dial plate according to the minimum value and the target value, and determining the range of the second dial plate according to the target value and the maximum value; grading interval ranges in the first dial plate range and the second dial plate range, wherein different interval ranges represent different current value completion levels; respectively determining the color of each grade interval range, wherein the color of two adjacent grade interval ranges is different; and generating the dial according to the colors of the grade interval range.
Optionally, the respectively determining the colors of the level interval ranges includes: under the condition that the range of the grade interval has a preset color, determining the color of the range of the grade interval as the preset color; and determining the colors of other grade interval ranges without the preset colors according to the grade interval range with the preset colors, wherein the grade interval range with the preset colors is different from the grade interval range without the preset colors in color.
According to another aspect of the embodiments of the present invention, there is also provided an instrument panel diagram display apparatus including: the receiving module is used for receiving the current value to be displayed; the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a maximum value, a minimum value and a target value of an instrument panel, and the target value is a target value to be reached by data represented by the instrument panel; a generating module, configured to generate a dial according to the maximum value, the minimum value, and the target value, where the dial includes a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; and the pointer module is used for pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range according to the current value.
Optionally, the determining module includes: the first judgment unit is used for determining whether the instrument panel has a preset maximum value or not, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value; a first determining unit, configured to, when the instrument panel has no preset maximum value, take a target value as the maximum value of the instrument panel, or determine the maximum value of the instrument panel according to a current value, where if the current value is positive, a multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; and if the current value is zero, taking 1 as the maximum value of the instrument panel.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute any one of the above methods.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute the method for displaying the dashboard map according to any one of the above items.
In the embodiment of the invention, the current value to be displayed is received; determining a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; according to the current value, the dial plate is divided into two dial plate ranges by setting the target value in a mode that the pointer in the dial plate points to the corresponding position in the first dial plate range or the second dial plate range, and the aim of reflecting the relation between the current value and the target value under the condition of considering the two conditions of the rise or the fall of the current value is fulfilled, so that the technical effect of effectively realizing the completion condition of the current value and the target value in the dial plate is realized, and the technical problem that the instrument dial plate in the related technology cannot reflect the completion condition of the target value and the current value is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a dashboard chart display method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of an instrument panel according to an embodiment of the present invention;
FIG. 3 is a schematic view of an instrument panel display apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an apparatus according to an embodiment of the invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
GVP: an agile business intelligence BI visualization platform.
ECharts: and drawing a chart by a third party, and developing the requirement based on the ECharts.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a dashboard map display method, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a dashboard map display method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, receiving a current value to be displayed;
step S104, determining a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel;
step S106, generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value;
and step S108, according to the current value, enabling the pointer in the dial to point to the corresponding position in the first dial range or the second dial range.
Through the steps, the current value to be displayed is received; determining a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; according to the current value, the dial plate is divided into two dial plate ranges by setting the target value in a mode that the pointer in the dial plate points to the corresponding position in the first dial plate range or the second dial plate range, and the aim of effectively embodying the relation between the current value and the target value under the condition of considering the two conditions of the rise or the fall of the current value is fulfilled, so that the technical effect of effectively realizing the completion condition of the current value and the target value in the dial plate is realized, and the technical problem that the instrument dial plate in the related technology cannot embody the completion condition of the target value and the current value is solved.
The above-mentioned dashboard in the prior art generally has only a maximum value, a minimum value and a pointer representing the current value, the pointer being rotated between the above-mentioned maximum value and minimum value as the current value changes to indicate the relationship between the current value and the maximum value and minimum value, the relative position of the current value in the range of the maximum value and minimum value being determined by a plurality of data between the maximum value and minimum value indicated on the dial. And directly displays the specific numerical value or the specific scale of the current value by a number in the vicinity of the pointer. Such dashboard maps do not meet the user's requirements for target values.
The target value may be located between the maximum value and the minimum value and represents a target value to be reached by the current value, and specifically the target value divides a dial range between the maximum value and the minimum value into two parts, one part being a first dial range between the minimum value and the target value, and the other part being a second dial range between the target value and the maximum value. Since the target value is a target value of the current value, the current value changes toward the target value, and the pointer changes from the minimum value to the target value and increases in value in the first dial range, and the pointer changes from the maximum value to the target value and decreases in value in the second dial range. For example, the current value: quarterly sales, minimum: quarterly completes at least the sum, maximum: quarterly at most completes the amount, target value: quarterly goals are completed.
The current value is located in the first dial range and the second dial range, and represents a relationship between the current value and the target value, and the completion degree of the current value to the target value can be specifically indicated by marking a ratio of the target value at the current station on the dial.
The maximum value, the minimum value and the target value of the instrument panel can be preset, and a corresponding instrument panel graph is automatically generated. When the maximum value is unclear or cannot be specified by the user, the maximum value may not be set, and the maximum value may be automatically generated from other specified numerical values. The method comprises the following specific steps:
determining the maximum value of the instrument panel comprises: determining whether the instrument panel has a preset maximum value, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value; taking the target value as the maximum value of the instrument panel under the condition that the instrument panel has no preset maximum value, or determining the maximum value of the instrument panel according to the current value, wherein if the current value is positive, the multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; if the current value is zero, 1 is taken as the maximum value of the instrument panel.
When the minimum value is unclear or cannot be specified by the user, the minimum value may not be set, and the minimum value may be automatically generated from other specified numerical values. The method comprises the following specific steps:
determining the minimum value of the instrument panel comprises: determining whether the instrument panel has a preset minimum value, and taking the preset minimum value as the minimum value of the instrument panel under the condition that the instrument panel has the preset minimum value; determining the minimum value of the instrument panel according to the current value under the condition that the instrument panel has no preset minimum value, wherein if the current value is positive, zero is taken as the minimum value of the instrument panel; and if the current value is negative, taking the multiple of the current value as the minimum value of the instrument panel.
When the target value is unclear or cannot be specified by the user, the target value may not be set, and the target value may be automatically generated from another specified numerical value. The method comprises the following specific steps:
determining the target value of the instrument panel comprises: and determining whether the instrument panel has a preset target value, and taking the preset target value as the target value of the instrument panel under the condition that the instrument panel has the preset target value. Since the target value is usually the target to be achieved by the current value, it is usually set artificially, thereby realizing a function of proposing a relationship between the current value and the target value. The target value needs to be set manually.
The dial plate can be further graded into a first dial plate range and a second dial plate range, and the first dial plate range and the second dial plate range are embodied through different colors. Optionally, generating the dial according to the maximum value, the minimum value and the target value includes: determining a first dial range according to the minimum value and the target value, and determining a second dial range according to the target value and the maximum value; grading interval ranges in the first dial range and the second dial range, wherein different interval ranges represent different current value completion levels; respectively determining the color of each grade interval range, wherein the color of two adjacent grade interval ranges is different; and generating a dial according to the colors of the grade interval range.
Optionally, the determining the colors of the range of the level interval respectively includes: under the condition that the range of the grade interval has the preset color, determining the color of the range of the grade interval as the preset color; and determining the colors of other grade interval ranges without the preset colors according to the grade interval range with the preset colors, wherein the grade interval range with the preset colors is different from the grade interval range without the preset colors in color.
It should be noted that this embodiment also provides an alternative implementation, which is described in detail below.
The present embodiment fulfills the need for a desired dashboard map with target value concept. And expressing the progress and the actual condition of a certain index by using the instrument panel graph, and showing the index completion condition.
The diagram is a diagram component in the GVP, drawn based on Echarts and added unique logic and configurations.
Because of the concept of the target value, there is a design of the interval from the minimum value to the target value and from the target value to the maximum value, so this scheme is displayed by using two ECharts dashboard maps in superposition, one displays the minimum value to the target value, and the other displays the target value to the maximum value, so that the appearance looks like a dashboard map, fig. 2 is a schematic diagram of the dashboard according to the embodiment of the present invention, as shown in fig. 2, for example: a 270 degree dashboard plot, wherein 150 degrees is dashboard 1, the maximum of which is the concept of the target value in demand, and another 120 degrees is dashboard 2, the minimum of which is the concept of the target value in demand.
The chart supports the configuration of four index fields, which are respectively: current value, minimum value, maximum value, target value, thereby forming a table-like graph to express the completion of the current value. For example: current value: quarterly sales, minimum: quarterly completes at least the sum, maximum: quarterly at most completes the amount, target value: the quarterly target completion amount is shown in fig. 2, the pointer represents the current value, the tooltip is displayed when the mouse is suspended, and the color of the pointer changes along with the color of the interval pointed by the pointer.
In order to overlay the two dashboard maps, four index fields, a minimum value, a maximum value, a target value, and a current value, need to be calculated.
1. And (3) completing the minimum value, the maximum value and the target value: the maximum value, the minimum value and the target value can be configured, and the current value is required to be configured. When the rest three index fields are not configured, the instrument panel has automatic logic to complete the supplement, and when the indexes are not configured, the method specifically comprises the following steps:
1) the value priority of the maximum value is as follows: maximum > target > 2 (current)/0/1, if the current value is canonical 2 (current); if the current value is negative, 0 is selected; if the current value is 0,1 is selected; the target value here is a value actively set by a user, including a configured field value and a fixed value, and a value not automatically given by the system.
2) Value priority of the minimum value: minimum > 0/2 (current value), if the current value is positive or 0, then take 0; if the current value is negative, then 2 (the current value) is taken.
Example 1: when neither the max/min value nor the target value is configured;
when the current value is 5, the numerical range of the dial plate is [0,10 ];
when the current value is-5, the numerical range of the dial is [ -10,0 ];
when the current value is 0, the dial has a numerical range of [0,1 ].
Example 2: when neither the maximum nor the target is configured;
when the current value is 5, the minimum value is not set, and the dial range is [0,10 ];
when the current value is 5, the minimum value is set to be 3, and according to the value priority of the maximum value, the maximum value is 5 x 2, and then the dial range is [3,10 ].
Example 3: when neither the minimum nor the target value is configured;
when the current value is 5, the maximum value is not set, and the dial range is [0,10 ];
when the current value is 5, the maximum value is set to 8, then according to the value priority of the minimum value, the minimum value is 0, and then the dial range is [0,8 ].
In addition, the style editing interface may allow the user to set a fixed value for the indicator, where it will dynamically disappear if the indicator field is configured.
Two dashboard plot ratios: the ratio of the target value divided by the difference between the maximum and minimum values is multiplied by the user-configured presentation angle of the entire chart. And obtaining the angle between the minimum value and the target value, wherein the angle between the target value and the maximum value is obtained by subtracting the angle between the whole chart angle configured by the user and the target value. And drawing two instrument panel graphs according to the two angles respectively, and splicing the two instrument panel graphs together.
Color interval algorithm: the chart supports color configuration, by default without using a conditional format, the minimum-target value color, and the target-maximum value color can be configured. When the condition format is used, colors of any interval can be edited, colorful colors are realized, and the pointer can change along with the colors. If the wrong color or interval is configured, the chart will self-calculate a reasonable logic. For example: 0% -20% red, 30% -100% green, then 20% -30% of the gaps will be filled by default color. 0% -20% red, 10% -30% green, the latest configuration will be adopted, etc.
The algorithm is as follows:
1. and converting the interval configured by the user into the interval if the interval is larger than or smaller than the interval configured by the user. For example: less than 50% of the transformation is [0,50], more than 30% is [30,100], and the interval [20,80] is [20,80 ].
2. And splitting all converted intervals into left and right arrays. For example: left comprises [0,30,20], right comprises [50,100,80 ].
3. And comparing and judging left and right, and deleting the items with conflicts.
4. Left and right are sorted in ascending order and color addition is started. If the first left is not 0, then 0 to first left are the default colors, and if the right maximum is not 100, then the maximum right to 100 are the default colors. The rest items are in sequence, left and right are paired one by one, the color of right is assigned to the interval, if the left and right have difference, such as: left 1 is 30 and left 2 is 40, then 30,40 are also default colors.
5. Finally left and right are combined into intervals and color rendering is performed in ECharts.
The chart also supports some other configurations such as titles, dial outside diameters, thicknesses, pointer styles, scale styles, label styles, and the like.
The method and the device can visually display the progress and the actual condition of a certain index and display the index completion condition.
Fig. 3 is a schematic view of an instrument panel diagram display device according to an embodiment of the present invention, and as shown in fig. 3, according to another aspect of the embodiment of the present invention, there is also provided an instrument panel diagram display device including: a receiving module 32, a determining module 34, a generating module 36 and a pointer module 38, which are described in detail below.
A receiving module 32, configured to receive a current value to be displayed; a determining module 34, connected to the receiving module 32, for determining a maximum value, a minimum value and a target value of the instrument panel, where the target value is a target value to be reached by data represented by the instrument panel; a generating module 36, connected to the determining module 34, for generating a dial according to the maximum value, the minimum value and the target value, wherein the dial includes a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; and the pointer module 38 is connected with the generation module 36 and used for pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range according to the current value.
By the device, the current value to be displayed is received by the receiving module 32; the determining module 34 determines a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; the generation module 36 generates a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; the pointer module 38 divides the dial into two dial ranges by setting the target value in such a manner that the pointer in the dial points to the corresponding position in the first dial range or the second dial range according to the current value, thereby achieving the purpose of reflecting the relationship between the current value and the target value under the two conditions of the current value rising or falling, thereby achieving the technical effect of effectively realizing the completion condition of the current value and the target value in the dial, and further solving the technical problem that the instrument dial in the related art cannot reflect the completion condition of the target value and the current value.
The dashboard map display apparatus includes a processor and a memory, and the receiving module 32, the determining module 34, the generating module 36 and the pointer module 38 are stored in the memory as program module units, and the processor executes the program module units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the Wien diagram and the keywords are displayed simultaneously by adjusting the kernel parameters, so that the use effect is improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
Optionally, the determining module includes: the first judgment unit is used for determining whether the instrument panel has a preset maximum value or not, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value; the first determining unit is used for taking the target value as the maximum value of the instrument panel under the condition that the instrument panel has no preset maximum value, or determining the maximum value of the instrument panel according to the current value, wherein if the current value is positive, the multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; if the current value is zero, 1 is taken as the maximum value of the instrument panel.
Optionally, the determining module includes: the second judgment unit is used for determining whether the instrument panel has a preset minimum value or not, and taking the preset minimum value as the minimum value of the instrument panel under the condition that the instrument panel has the preset minimum value; the second determining unit is used for determining the minimum value of the instrument panel according to the current value under the condition that the instrument panel has no preset minimum value, wherein if the current value is positive, zero is taken as the minimum value of the instrument panel; and if the current value is negative, taking the multiple of the current value as the minimum value of the instrument panel.
Optionally, the determining module includes: and the third judgment unit is used for determining whether the instrument panel has a preset target value or not, and taking the preset target value as the target value of the instrument panel under the condition that the instrument panel has the preset target value.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes to perform the method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute the method for displaying the dashboard map according to any one of the above items.
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus 400 includes at least one processor 401, at least one memory 402 connected to the processor 401, and a bus 403; the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call program instructions in the memory 402 to perform the method of dashboard map display described above. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
receiving a current value to be displayed; determining a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; and according to the current value, pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range.
Optionally, determining the maximum value of the instrument panel includes: determining whether the instrument panel has a preset maximum value, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value; taking the target value as the maximum value of the instrument panel under the condition that the instrument panel has no preset maximum value, or determining the maximum value of the instrument panel according to the current value, wherein if the current value is positive, the multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; if the current value is zero, 1 is taken as the maximum value of the instrument panel.
Optionally, determining the minimum value of the instrument panel includes: determining whether the instrument panel has a preset minimum value, and taking the preset minimum value as the minimum value of the instrument panel under the condition that the instrument panel has the preset minimum value; determining the minimum value of the instrument panel according to the current value under the condition that the instrument panel has no preset minimum value, wherein if the current value is positive, zero is taken as the minimum value of the instrument panel; and if the current value is negative, taking the multiple of the current value as the minimum value of the instrument panel.
Optionally, determining the target value of the instrument panel includes: and determining whether the instrument panel has a preset target value, and taking the preset target value as the target value of the instrument panel under the condition that the instrument panel has the preset target value.
Optionally, generating the dial according to the maximum value, the minimum value and the target value includes: determining a first dial range according to the minimum value and the target value, and determining a second dial range according to the target value and the maximum value; grading interval ranges in the first dial range and the second dial range, wherein different interval ranges represent different current value completion levels; respectively determining the color of each grade interval range, wherein the color of two adjacent grade interval ranges is different; and generating a dial according to the colors of the grade interval range.
Optionally, the determining the colors of the range of the level interval respectively includes: under the condition that the range of the grade interval has the preset color, determining the color of the range of the grade interval as the preset color; and determining the colors of other grade interval ranges without the preset colors according to the grade interval range with the preset colors, wherein the grade interval range with the preset colors is different from the grade interval range without the preset colors in color.
The device in the application can be a server, a PC, a PAD, a mobile phone and the like.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a current value to be displayed; determining a maximum value, a minimum value and a target value of the instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel; generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value; and according to the current value, pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range.
Optionally, determining the maximum value of the instrument panel includes: determining whether the instrument panel has a preset maximum value, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value; taking the target value as the maximum value of the instrument panel under the condition that the instrument panel has no preset maximum value, or determining the maximum value of the instrument panel according to the current value, wherein if the current value is positive, the multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; if the current value is zero, 1 is taken as the maximum value of the instrument panel.
Optionally, determining the minimum value of the instrument panel includes: determining whether the instrument panel has a preset minimum value, and taking the preset minimum value as the minimum value of the instrument panel under the condition that the instrument panel has the preset minimum value; determining the minimum value of the instrument panel according to the current value under the condition that the instrument panel has no preset minimum value, wherein if the current value is positive, zero is taken as the minimum value of the instrument panel; and if the current value is negative, taking the multiple of the current value as the minimum value of the instrument panel.
Optionally, determining the target value of the instrument panel includes: and determining whether the instrument panel has a preset target value, and taking the preset target value as the target value of the instrument panel under the condition that the instrument panel has the preset target value.
Optionally, generating the dial according to the maximum value, the minimum value and the target value includes: determining a first dial range according to the minimum value and the target value, and determining a second dial range according to the target value and the maximum value; grading interval ranges in the first dial range and the second dial range, wherein different interval ranges represent different current value completion levels; respectively determining the color of each grade interval range, wherein the color of two adjacent grade interval ranges is different; and generating a dial according to the colors of the grade interval range.
Optionally, the determining the colors of the range of the level interval respectively includes: under the condition that the range of the grade interval has the preset color, determining the color of the range of the grade interval as the preset color; and determining the colors of other grade interval ranges without the preset colors according to the grade interval range with the preset colors, wherein the grade interval range with the preset colors is different from the grade interval range without the preset colors in color.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for displaying a dashboard map, comprising:
receiving a current value to be displayed;
determining a maximum value, a minimum value and a target value of an instrument panel, wherein the target value is a target value to be reached by data represented by the instrument panel;
generating a dial according to the maximum value, the minimum value and the target value, wherein the dial comprises a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value;
and according to the current value, pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range.
2. The method of claim 1, wherein determining a maximum value for a dashboard comprises:
determining whether the instrument panel has a preset maximum value, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value;
taking a target value as the maximum value of the instrument panel under the condition that the instrument panel has no preset maximum value, or determining the maximum value of the instrument panel according to a current value, wherein if the current value is positive, a multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; and if the current value is zero, taking 1 as the maximum value of the instrument panel.
3. The method of claim 1, wherein determining a minimum value for a dashboard comprises:
determining whether the instrument panel has a preset minimum value or not, and taking the preset minimum value as the minimum value of the instrument panel under the condition that the instrument panel has the preset minimum value;
determining the minimum value of the instrument panel according to the current value under the condition that the instrument panel has no preset minimum value, wherein if the current value is positive, zero is taken as the minimum value of the instrument panel; and if the current value is negative, taking the multiple of the current value as the minimum value of the instrument panel.
4. The method of claim 1, wherein determining a target value for a dashboard comprises:
and determining whether the instrument panel has a preset target value, and taking the preset target value as the target value of the instrument panel under the condition that the instrument panel has the preset target value.
5. The method of claim 1, wherein generating a dial from the maximum, the minimum, and the target value comprises:
determining the range of the first dial plate according to the minimum value and the target value, and determining the range of the second dial plate according to the target value and the maximum value;
grading interval ranges in the first dial plate range and the second dial plate range, wherein different interval ranges represent different current value completion levels;
respectively determining the color of each grade interval range, wherein the color of two adjacent grade interval ranges is different;
and generating the dial according to the colors of the grade interval range.
6. The method of claim 5, wherein separately determining the colors of the level interval ranges comprises:
under the condition that the range of the grade interval has a preset color, determining the color of the range of the grade interval as the preset color;
and determining the colors of other grade interval ranges without the preset colors according to the grade interval range with the preset colors, wherein the grade interval range with the preset colors is different from the grade interval range without the preset colors in color.
7. An instrument panel diagram display device, comprising:
the receiving module is used for receiving the current value to be displayed;
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a maximum value, a minimum value and a target value of an instrument panel, and the target value is a target value to be reached by data represented by the instrument panel;
a generating module, configured to generate a dial according to the maximum value, the minimum value, and the target value, where the dial includes a first dial range and a second dial range, the first dial range is a dial range between the minimum value and the target value, and the second dial range is a dial range between the target value and the maximum value;
and the pointer module is used for pointing the pointer in the dial plate to the corresponding position in the first dial plate range or the second dial plate range according to the current value.
8. The apparatus of claim 7, wherein the determining module comprises:
the first judgment unit is used for determining whether the instrument panel has a preset maximum value or not, and taking the preset maximum value as the maximum value of the instrument panel under the condition that the instrument panel has the preset maximum value;
a first determining unit, configured to, when the instrument panel has no preset maximum value, take a target value as the maximum value of the instrument panel, or determine the maximum value of the instrument panel according to a current value, where if the current value is positive, a multiple of the current value is taken as the maximum value of the instrument panel; if the current value is negative, taking zero as the maximum value of the instrument panel; and if the current value is zero, taking 1 as the maximum value of the instrument panel.
9. A storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform the method of any one of claims 1 to 6.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform a method of displaying a dashboard map according to any of claims 1 to 6.
CN201910944641.5A 2019-09-30 2019-09-30 Display method and device of instrument panel diagram and electronic equipment Pending CN112579223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944641.5A CN112579223A (en) 2019-09-30 2019-09-30 Display method and device of instrument panel diagram and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944641.5A CN112579223A (en) 2019-09-30 2019-09-30 Display method and device of instrument panel diagram and electronic equipment

Publications (1)

Publication Number Publication Date
CN112579223A true CN112579223A (en) 2021-03-30

Family

ID=75116826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944641.5A Pending CN112579223A (en) 2019-09-30 2019-09-30 Display method and device of instrument panel diagram and electronic equipment

Country Status (1)

Country Link
CN (1) CN112579223A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004013609A1 (en) * 2004-03-19 2005-10-06 Adam Opel Ag Analog display instrument e.g. tachometer, for use in motor vehicle, has dial with pointer indicating target value for steering wheel impact, acquired from system, and display arranged around edge of dial
CN108228169A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 Chart production method, apparatus, equipment and medium based on eCharts tools

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004013609A1 (en) * 2004-03-19 2005-10-06 Adam Opel Ag Analog display instrument e.g. tachometer, for use in motor vehicle, has dial with pointer indicating target value for steering wheel impact, acquired from system, and display arranged around edge of dial
CN108228169A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 Chart production method, apparatus, equipment and medium based on eCharts tools

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
采悟: "使用PowerBI制作仪表盘", 《知乎:HTTPS://ZHUANLAN.ZHIHU.COM/P/64404898?UTM_ID=0》 *

Similar Documents

Publication Publication Date Title
US20230298228A1 (en) System for supporting flexible color assignment in complex documents
US9600275B2 (en) Smart source code review system
CN109408685B (en) Thinking guide graph display method and device
US9870362B2 (en) Interactive data-driven presentations
CN104615661B (en) Service recommendation method, equipment and the system of facing cloud platform application
CN110688829B (en) Table generation method, apparatus, device and storage medium
CN107423998B (en) Visual sales data management method and system based on SaaS platform
CN115840567A (en) Application editing method and related equipment
CN110069547B (en) Online database table data statistics method, device, medium and electronic equipment
US9596654B2 (en) Association of applications to clusters mapped to logical battery partitions
CA2968445C (en) Searching available rental vehicles based on adjustable parameters
CN112579223A (en) Display method and device of instrument panel diagram and electronic equipment
US11094096B2 (en) Enhancement layers for data visualization
CN111291543A (en) Data display method and device, storage medium and processor
US20200379786A1 (en) Keyboard interaction model for software builder canvas nodes
CN110705228A (en) Customizable energy management platform data chart display method and device
CN113010582A (en) Data processing method and device, computer readable medium and electronic equipment
US11205294B1 (en) Computer-implemented optimization of animation speed and spatial aspects of visualized temporal data
CN114546375A (en) Page configuration method, page configuration device and electronic equipment
CN111930375B (en) Data visualization application development method and device
CN113065686A (en) Scheduling data optimization processing method, device and equipment
US20200249786A1 (en) Hierarchical menu for application transition
CN112748917A (en) Chart display method and device
US11409951B1 (en) Facilitating annotation of document elements
US11176182B2 (en) Applying approximate measure values from dissimilar maps

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