WO2019052151A1 - Dashboard display method and apparatus, terminal device and storage medium - Google Patents
Dashboard display method and apparatus, terminal device and storage medium Download PDFInfo
- Publication number
- WO2019052151A1 WO2019052151A1 PCT/CN2018/081214 CN2018081214W WO2019052151A1 WO 2019052151 A1 WO2019052151 A1 WO 2019052151A1 CN 2018081214 W CN2018081214 W CN 2018081214W WO 2019052151 A1 WO2019052151 A1 WO 2019052151A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- displayed
- dashboard
- target
- display area
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004364 calculation method Methods 0.000 claims description 27
- 238000012790 confirmation Methods 0.000 claims description 12
- 238000012417 linear regression Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 7
- 230000006870 function Effects 0.000 description 14
- 238000012545 processing Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000004973 liquid crystal related substance Substances 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 241000586542 Aonidiella citrina Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 238000011478 gradient descent method Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K35/00—Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K35/00—Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
- B60K35/20—Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor
- B60K35/21—Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor using visual output, e.g. blinking lights or matrix displays
- B60K35/213—Virtual instruments
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K35/00—Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
- B60K35/80—Arrangements for controlling instruments
- B60K35/81—Arrangements for controlling instruments for controlling displays
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
Definitions
- the present application relates to the field of instrument panel technology, and in particular, to a dashboard display method, device, terminal device, and storage medium.
- the pointer type instrument panel is widely used in people's life or production.
- the pointer meter panel is widely used in the enterprise to visually display the business data
- the LCD instrument panel is widely used in the automobile to display the odometer and tachometer of the vehicle.
- Driving information such as oil pressure gauge, fuel gauge, water temperature gauge, ammeter and barometer.
- the current pointer type instrument panel includes a plurality of scale lines, each scale line corresponding to a scale value, and the scale precision between any two adjacent scale lines is the same.
- the data to be displayed refers to the data that needs to be displayed in the dashboard.
- the data to be displayed may use at least two thresholds to divide the data to be displayed into different states, such as a normal state, a critical state, and an abnormal state, or a first security level state, a second security level. Status and third security level status and more.
- the difference between any two thresholds is small and the pointer of the dashboard points between two thresholds, the indication is unclear, resulting in a problem that is difficult to identify.
- the embodiment of the present invention provides a method, a device, a terminal device, and a storage medium for displaying a dashboard, so as to solve the problem that the difference between the current two thresholds is small, resulting in unclear indication.
- an embodiment of the present application provides a dashboard display method, including:
- an embodiment of the present application provides a dashboard display device, including:
- a data acquisition module to be displayed, configured to acquire data to be displayed
- a data parameter obtaining module configured to acquire, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N ⁇ 2;
- a dashboard template obtaining module configured to acquire a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display areas;
- a target dashboard acquisition module configured to display the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;
- And indicating a location confirmation module configured to acquire, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and control a pointer to the indicated location.
- an embodiment of the present application provides a terminal device, including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, where the processor executes the following steps when executing the computer readable instructions :
- the embodiment of the present application provides one or more non-volatile readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, such that the one or Multiple processors perform the following steps:
- FIG. 1 is a flow chart showing a method of displaying a dashboard in Embodiment 1;
- FIG. 2 is a specific flow chart of step S20 of Figure 1;
- FIG. 3 is a specific flow chart of step S50 of Figure 1;
- FIG. 4 is a schematic block diagram of an instrument panel display device in Embodiment 2;
- FIG. 5 is a schematic diagram of a terminal device in Embodiment 4.
- Fig. 1 shows a dashboard display method in this embodiment.
- the dashboard display method can be applied to an ECU (Electronic Control Unit, ECU, or an electronic control unit), a processor or a terminal device connected to the physical dashboard for controlling the display of the dashboard, for controlling the physical dashboard to be treated.
- Display data for display In this embodiment, the physical instrument panel is a liquid crystal instrument panel.
- the dashboard display method may be applied to a terminal device installed with a dashboard program, and the terminal device may be configured in a financial institution such as a bank, a securities, an insurance, or other institutions, and is used to form a financial institution or other institution. Display data for visual display.
- terminal devices include, but are not limited to, a PC terminal, a smart phone, and a tablet computer.
- the dashboard display method includes the following steps:
- the data to be displayed refers to the data that needs to be displayed on the dashboard, and the data to be displayed is specific data. If the instrument panel is the physical instrument panel of the odometer, the corresponding data to be displayed may be the current vehicle speed, such as 80 km/h. If the dashboard is a virtual dashboard set on the terminal device, the data to be displayed may be the service data formed by the financial institution or other organization that installs the terminal device during the production and operation process.
- the data to be displayed may be the business that needs to be counted in the dashboard, such as the daily or monthly sales amount of the insurance institution, the amount of the ticket, the attendance rate of the salesperson, the number of customers received, or the amount of publicity activities.
- data Taking the business data of the claim in the insurance institution as an example, the data to be displayed may include, but is not limited to, the average aging workday of the claims investigation mentioned in the embodiment, the number of open unresolved cases, and the proportion of fraud refusal cases.
- the policy investigates business data such as the proportion of chargebacks, policy insurance rates, and short-term insurance claims.
- the data upper limit is a maximum value corresponding to the data to be displayed set according to the actual situation.
- the lower limit of the data is the minimum value corresponding to the data to be displayed set according to the actual situation.
- the threshold is a value that is set according to an actual situation to distinguish that the data to be displayed is in different states, wherein the N thresholds are values between the lower limit of the data and the lower limit of the data.
- the data to be displayed is the actual measured tire pressure value.
- the data upper limit and the lower data limit of the data to be displayed are acquired, and the high pressure threshold is obtained.
- a low voltage threshold when the data to be displayed is between the lower limit of the data and the low pressure threshold; when the data to be displayed is between the low pressure threshold and the high pressure threshold; when the data to be displayed is at the high voltage threshold and the data upper limit High pressure state.
- the dashboard is a virtual dashboard set on the terminal device, if the data to be displayed is the number of unresolved cases, if the corresponding data lower limit is 0, the data upper limit is 100, and three thresholds are respectively set. For 7, 10 and 12, the number of unresolved cases per capita is divided into four data ranges, corresponding to a processing progress state; for example, 0-7 processes the progress status faster, 7-10 is the general processing progress status, 10 -12 is the overdue processing progress status, and 12-100 is the serious overdue processing progress status.
- the data to be displayed is specifically service data, and may be service data such as sales, signing amount, sales attendance rate, number of receiving customers, or amount of publicity activities of any institution.
- step S20 of the dashboard display method as shown in FIG. 2, based on the data to be displayed, the corresponding data upper limit, data lower limit, and N thresholds are obtained, N ⁇ 2, and specifically includes the following steps:
- the historical data refers to historical data corresponding to the data to be displayed that is pre-stored in the big data platform. That is, if the data to be displayed is the attendant rate, the number of customers received, or the amount of publicity activities to be displayed, the historical data acquired is the data corresponding to the attendance rate of the salesperson, the number of customers received, or the amount of promotional activities stored in the big data platform. .
- the big data platform is specifically the Hadoop big data platform.
- the Hadoop big data platform enables users to develop distributed programs and perform high-speed computing and storage of data without knowing the underlying details of the distributed. By using the Hadoop big data platform to collect historical data, the efficiency of obtaining historical data is greatly improved, the time required to obtain a large amount of historical data is shortened, and the raw data of a certain order of magnitude is efficiently collected.
- S22 The maximum value selected from the historical data is determined as the upper limit of the data, and the minimum value is determined as the lower limit of the data.
- the standard value corresponding to the data to be displayed is any one of the sales, the amount of the ticket, the attendance rate of the salesperson, the number of the customer, the amount of the promotion, the number of the active users, and the amount of the newly registered user
- the service data has its corresponding specific data
- the upper and lower limits of the data to be displayed may correspond to a specific data range, and the maximum value thereof may be determined as the data upper limit, and the minimum value thereof is determined as the data lower limit.
- h ⁇ (x) is a hypothesis function
- each ⁇ is an angle vector between input values
- each x is a corresponding plurality of variable vector values.
- the Cost Function expression is as follows: Where x (i) represents the i-th element in vector x, y (i) represents the i-th element in vector y, h ⁇ (x (i) ) represents a known hypothesis function, and m is the training set Quantity. Then find the minimum value of the cost function function according to the gradient descent method, first determine the step size to the next step, and then arbitrarily give an initial value ⁇ 0 , ⁇ 1 , determine a downward direction, and go down the predetermined Step, and update ⁇ 0 , ⁇ 1 , when the descending height is less than a certain defined value, stop falling.
- the specific algorithm is Where ⁇ is called the learning rate and is used to determine the magnitude of the gradient descent. According to the above regression processing of the historical data by the linear regression algorithm, the standard value corresponding to the data to be displayed can be obtained efficiently and accurately.
- S24 Acquire at least one upper limit range and at least one lower limit range input by the user.
- the upper limit range is a range value larger than a standard value of the data to be displayed
- the lower limit range is a range value smaller than a standard value of the data to be displayed.
- the upper and lower ranges are range values relative to standard values and may be expressed as percentages or specific values.
- S25 Determine a threshold based on the upper limit range and the standard value, and determine a threshold based on the lower limit range and the standard value.
- determining a threshold based on the upper limit range and the standard value means that the sum of the upper limit range and the standard value is used as a threshold. If the standard value is 50% and the upper limit is 20%, the obtained threshold is 70%. Correspondingly, determining a threshold based on the lower limit range and the standard value means that the difference between the standard value and the lower limit range is taken as a threshold. If the standard value is 50% and the lower limit is 20%, the obtained threshold is 30%. It can be understood that since at least one of the upper limit range and the lower limit range can be set, the threshold thus obtained includes at least two, that is, N ⁇ 2.
- the dashboard template is a template that is pre-formed and stored in the database.
- the dashboard template is a template that is determined based on the number of thresholds.
- Each dashboard template includes a plurality of tick marks, wherein the tick lines corresponding to the N thresholds are extended, deepened, or otherwise highlighted, and the tick marks corresponding to the upper data limit and the lower data limit are extended, deepened, or otherwise highlighted.
- S40 Display a data upper limit, a data lower limit, and N thresholds on the dashboard template to obtain the target dashboard.
- the target dashboard is a dashboard that displays the upper data limit, the lower data limit, and the N thresholds of the data to be displayed on the dashboard template.
- the data upper limit, the lower data limit, and the N thresholds divide the scale line of the dashboard into N+1 display areas.
- the size of the N thresholds ie, the proportion of the entire dashboard
- the N thresholds corresponding to the data to be displayed are highlighted on the dashboard module, if the instrument panel is a liquid crystal dashboard, the upper limit of the data and the lower limit of the data are set in the liquid crystal dashboard.
- the values of the N thresholds are displayed in the liquid crystal dashboard; if the dashboard is a virtual dashboard, the data upper limit, the lower data limit, and the values corresponding to the N thresholds are displayed at preset positions of the dashboard template.
- the data upper limit, the data lower limit, and the N thresholds may be set inside the scale line of the instrument panel, or may be set outside the scale line.
- each display area corresponds to a state of data to be displayed. If the data to be displayed is used to correct the number of unresolved cases, if the corresponding data lower limit is 0, the data lower limit is 100, and 3 thresholds are respectively 7, 10 and 12, the obtained target dashboard will be adjusted per capita.
- the open case quantity is divided into four display areas, each display area corresponds to a processing progress state; for example, 0-7 processes the progress status faster, 7-10 is the general processing progress status, and 10-12 is the overdue processing progress status, 12 -100 is a serious overdue processing progress status.
- the scale precisions of two adjacent display areas in the target dashboard are different, wherein the scale accuracy of each display area is determined by a scale accuracy calculation formula.
- the area upper limit value and the area lower limit value of the display area respectively correspond to two threshold values for defining the display area, or a data upper limit and a threshold, or a threshold and a data lower limit. It can be understood that the scale accuracy of two adjacent display areas in the target dashboard is different, and the thresholds with two smaller differences can be enlarged and displayed in the target dashboard so that the pointer points between the two thresholds, and the data
- the display area corresponding to the upper limit and the threshold or between the threshold and the lower limit of the data the display area pointed by the pointer can be clearly seen, and the problem that the pointer indication is unclear is overcome to some extent.
- the color of the tick marks of the two adjacent display areas of the target dashboard is different. Specifically, N+1 display areas are set in the target dashboard, and the scales of the adjacent two display areas are different in color. Differentiating the display area by different colors can more intuitively reflect the status corresponding to the display area.
- the target dashboard is used to visually display the service data
- the service data is divided into different data states by using the first threshold and the second threshold, and the display area corresponding to the scale value smaller than the first threshold is displayed by a green tick mark, corresponding to normal.
- the display area corresponding to the scale value greater than the first threshold and smaller than the second threshold is displayed by the blue tick mark, corresponding to the warning state; the display area with the scale value greater than the second threshold is displayed by the red tick mark, corresponding to the alarm state.
- S50 Acquire an indication position of the to-be-displayed data in the target dashboard based on the data to be displayed, and control the pointer to the indicated location.
- the target dashboard includes N+1 display areas, the scale precision of each display area is different. Therefore, based on the data to be displayed, the indicated position of the data to be displayed in the target dashboard is obtained first; then the pointer pointing indication is controlled. position.
- N thresholds with small differences may be displayed in an enlarged manner on the target dashboard.
- the S50 obtains the indicated position of the data to be displayed in the target dashboard based on the data to be displayed, and specifically includes the following steps:
- S51 Acquire a corresponding target display area in the target dashboard based on the data to be displayed.
- the target display area refers to a display area pointed to by the data to be displayed. Since the display area in the dashboard is divided by N thresholds, based on the data to be displayed being compared with the N thresholds, a threshold or two thresholds close to the data to be displayed are acquired, thereby determining the target display area.
- the display area defined by the two thresholds in the target dashboard is the target display area; if the data to be displayed is between the lower limit of the data and a threshold, the lower limit of the data and the The display area defined by the threshold in the target dashboard is the target display area; if the data to be displayed is between a threshold and an upper data limit, the display area defined by the threshold and the data upper limit in the target dashboard is the target display area.
- S52 Acquire a parameter value of the target display area, where the parameter value includes an area upper limit value and a regional lower limit value.
- the parameter value of the target display area is two threshold values for defining the target display area, and is defined as an area upper limit value and a regional lower limit value, respectively.
- the scale offset calculation formula is specifically Y i is the i-th display area of the scale offset, X i is the data to be displayed, A i is the upper limit value of the i-th region of the display region, B i is the i-th lower limit region of the display region, N i is the number of tick marks in the i-th display area.
- the display area in the scale offset calculation formula is the target display area.
- the scale offset calculated by the scale offset calculation formula is an offset of the scale line corresponding to the region lower limit value of the target display area, and the data to be displayed can be determined based on the scale offset. The indicated position in the target dashboard.
- S54 Acquire an indication position of the data to be displayed in the target dashboard based on the regional lower limit value and the scale offset of the target display area.
- the area lower limit value of the target display area corresponds to a threshold value or a data lower limit
- the scale offset obtained in steps S51-S53 is executed, and the scale offset is rotated clockwise from the position of the scale line corresponding to the area lower limit value. , you can get the indicated position of the data to be displayed in the target dashboard.
- the target instrument panel obtained in step S40 is provided with 100 tick marks, wherein the data lower limit corresponds to the 0 scale value, the data upper limit corresponds to the 100 scale value, and the two threshold values respectively
- the thresholds of 10 and 20, and 10 and 20 divide the scale of the target dashboard into a ratio of 3:4:3. If the data to be displayed is 12, since 10 ⁇ 12 ⁇ 20, in step S51, based on the display data, the target display area in the target dashboard is acquired specifically as the display areas defined by the thresholds 10 and 20. At this time, among the parameter values in the target display area acquired in step S52, the upper limit value of the area is 20, and the lower limit value of the area is 10.
- step S53 the scale offset calculation formula is used Processing the parameter values so that the corresponding scale offset is obtained, ie
- the scale offset value is an offset amount of the scale line corresponding to the lower limit value of the relative area in the target display area.
- step S54 the target lower limit value (ie, the scale line corresponding to 10) of the target display area is offset clockwise by 8 scales, and the indicated position of the data to be displayed in the target dashboard can be obtained.
- the color of the pointer in the target dashboard may be the same as the color of the display area corresponding to the indicated position, so as to be determined based on the color of the pointer.
- the data state corresponding to the display area further achieves an easy-to-identify effect, so that it meets the user's requirements for modern technology intelligence.
- the display method of the dashboard is further illustrated by taking the proportion of fraudulent charge rejection cases in the insurance industry as an example.
- the maximum proportion of fraud cases is 1%
- the minimum value is 0, 1% is the data upper limit
- 0 is the data lower limit.
- two thresholds need to be set to reflect the status of fraudulent charge-for-lending cases.
- the two thresholds are 0.25. % and 0.35%.
- the data states of the display areas corresponding to the colors indicate the normal state, the warning state, and the alarm state, respectively.
- the dashboard template includes 100 tick marks, and the two thresholds divide the 100 tick marks by 3:4:3.
- the scale accuracy of each display area is The yellow scale area has a scale accuracy of The accuracy of the orange area is When the data to be displayed is 0.27%, the target display area is a yellow corresponding area, and the scale offset is
- the method for displaying the dashboard provided by the embodiment of the present application is to obtain a corresponding dashboard template based on the N thresholds corresponding to the data to be displayed, so that the acquired dashboard template can divide the data to be displayed into N+1 display areas. Corresponds to N+1 data states.
- the data displayed in the target dashboard can be set autonomously, so that the two thresholds with smaller differences can be The target dashboard is magnified.
- the control pointer points to the indicated position to achieve the purpose of the dashboard display.
- the dashboard display method can make the two thresholds on the dashboard very close, that is, the difference between the two thresholds is small, and the formed display area needs to be enlarged to display the data to be displayed at two close thresholds.
- the pointer can clearly and intuitively indicate the indicated position of the data to be displayed in the target dashboard.
- Fig. 4 is a schematic block diagram showing the dashboard display device in one-to-one correspondence with the dashboard display method in the first embodiment.
- the dashboard display device includes a data acquisition module 10 to be displayed, a data parameter acquisition module 20, a dashboard template acquisition module 30, a target dashboard acquisition module 40, and an indication location confirmation module 50.
- the present embodiment is not described in detail.
- the data acquisition module 10 to be displayed is configured to acquire data to be displayed.
- the data parameter obtaining module 20 is configured to obtain a corresponding upper data limit, a lower data limit, and N thresholds based on the data to be displayed, where N ⁇ 2.
- the dashboard template obtaining module 30 is configured to acquire a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions.
- the target dashboard acquisition module 40 is configured to display a data upper limit, a data lower limit, and N threshold values on the dashboard template to obtain the target dashboard.
- the indication position confirmation module 50 is configured to acquire, according to the data to be displayed, an indication position of the data to be displayed in the target dashboard, and the control pointer points to the indication position.
- the indication position confirmation module 50 includes a target display area acquisition unit 51, a parameter value acquisition unit 52, a scale offset calculation unit 53, and an indication position confirmation unit 54.
- the target display area obtaining unit 51 is configured to acquire a corresponding target display area in the target dashboard based on the data to be displayed.
- the parameter value obtaining unit 52 is configured to acquire a parameter value of the target display area, where the parameter value includes an area upper limit value and a region lower limit value.
- the scale offset calculation unit 53 is configured to process the parameter value by using the scale offset calculation formula to obtain a corresponding scale offset.
- the indication position confirmation unit 54 is configured to acquire an indication position of the data to be displayed in the target dashboard based on the area lower limit value and the scale offset amount of the target display area.
- the scale accuracy of two adjacent display areas in the target dashboard is different, and the scale accuracy of each display area is determined by a scale accuracy calculation formula.
- the data to be displayed includes business data.
- the data parameter acquisition module 20 includes a history data acquisition unit 21, an upper limit lower limit acquisition unit 22, a standard value acquisition unit 23, an upper and lower limit range acquisition unit 24, and a threshold value acquisition unit 25.
- the historical data obtaining unit 21 is configured to acquire historical data in the big data platform based on the service data.
- the upper limit lower limit obtaining unit 22 is configured to select a maximum value from the historical data as the upper limit of the data, and select the minimum value as the lower limit of the data.
- the standard value obtaining unit 23 is configured to perform regression processing on the historical data by using a linear regression algorithm to obtain a corresponding standard value.
- the upper and lower limit range obtaining unit 24 is configured to acquire at least one upper limit range and at least one lower limit range input by the user.
- the threshold obtaining unit 25 is configured to determine a threshold based on the upper limit range and the standard value, and determine a threshold based on the lower limit range and the standard value.
- the color of the tick marks of the two adjacent display areas of the target dashboard is different.
- the color of the pointer in the target dashboard is the same as the color of the scale line of the display area corresponding to the indicated position.
- the data parameter obtaining module 20 is configured to obtain a corresponding dashboard template based on the N thresholds corresponding to the data to be displayed, so that the obtained dashboard template can divide the data to be displayed. It is N+1 display areas, corresponding to N+1 data states.
- the target dashboard acquisition module 40 obtains the target dashboard by displaying the data upper limit, the data lower limit, and the N thresholds of the data to be displayed on the dashboard template, so as to achieve autonomous setting of the data displayed in the target dashboard, so that the difference is small.
- the two thresholds can be magnified in the target dashboard.
- the indication position confirmation module 50 controls the pointer to the indication position according to the indicated position of the data to be displayed in the target dashboard to achieve the target of the dashboard display.
- the display method, the device, the terminal device and the storage medium of the instrument panel can make the two threshold values on the instrument panel very close, that is, when the difference between the two threshold values is small, the display area formed by the two threshold values is enlarged and displayed, so that When the data to be displayed is between two thresholds, the data to be displayed can be displayed more intuitively based on the indicated position of the pointer on the target dashboard.
- This embodiment provides one or more non-volatile readable storage media having computer readable instructions stored thereon.
- the one or more non-readable readable storage mediums storing computer readable instructions, when executed by one or more processors, causing one or more processors to execute the instrument panel of Embodiment 1
- the display method in order to avoid repetition, will not be described here.
- the computer readable instructions when executed by the processor, the functions of the modules/units in the dashboard display device in Embodiment 2 are implemented. To avoid repetition, details are not described herein again.
- non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a mobile hard drive, Disk, optical disk, computer memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, and telecommunications signals.
- FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present application.
- the terminal device 50 of this embodiment includes a processor 51, a memory 52, and computer readable instructions 53 stored in the memory 52 and operable on the processor 51.
- the processor 51 executes the various steps of the dashboard display method of Embodiment 1 when the computer readable instructions 53 are executed, such as steps S10 to S50 shown in FIG.
- the functions of the modules/units in the foregoing device embodiment 2 are implemented, for example, the data acquisition module 10 to be displayed, the data parameter acquisition module 20, and the dashboard template acquisition shown in FIG.
- the functions of the module 30, the target dashboard acquisition module 40, and the indication location confirmation module 50 are avoided to avoid repetition, and are not described herein.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A dashboard display method and apparatus, a terminal device and a storage medium. The dashboard display method comprises: acquiring data to be displayed (S10); based on the data to be displayed, acquiring a corresponding upper data limit, a corresponding lower data limit and corresponding N thresholds, where N≥2 (S20); based on the N thresholds, acquiring a corresponding dashboard template, the dashboard template comprising N+1 display areas (S30); displaying the upper data limit, the lower data limit and the N thresholds on the dashboard template, so as to acquire a target dashboard (S40); and based on the data to be displayed, acquiring an indication position, in the target dashboard, of the data to be displayed, and controlling a pointer so same points to the indication position (S50). The dashboard display method is applied where two thresholds in a dashboard are very close, and a formed display area needs to be displayed in an enlarged manner, so that when data to be displayed is between the two close thresholds, a pointer can clearly and intuitively indicate, in the target instrument, the data to be displayed.
Description
本申请以2017年9月14日提交的申请号为201710825118.1,名称为“仪表盘显示方法、装置、终端设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This application is based on the Chinese Patent Application No. 201710825118.1 filed on September 14, 2017, entitled "Dashboard Display Method, Apparatus, Terminal Equipment and Storage Medium", and requires priority.
本申请涉及仪表盘技术领域,尤其涉及一种仪表盘显示方法、装置、终端设备及存储介质。The present application relates to the field of instrument panel technology, and in particular, to a dashboard display method, device, terminal device, and storage medium.
指针式仪表盘在人们生活或生产中有广泛应用,如在企业中广泛使用指针式仪表盘对业务数据进行可视化显示,或者在汽车中广泛使用液晶仪表盘来显示车辆的里程表、转速表、机油压力表、燃油表、水温表、电流表和气压表等行车信息。当前指针式仪表盘包括多个刻度线,每一刻度线对应一刻度值,任意两个相邻刻度线之间的刻度精度相同。在将业务数据、行车信息或者其他待显示数据在仪表盘上显示时,需在仪表盘中采用文字、图形或数据单位来指示待显示数据,并在仪表盘中标明待显示数据的数据上限、数据下限和数据单位。其中,待显示数据是指需要在仪表盘中显示的数据。在采用仪表盘显示待显示数据时,待显示数据可采用至少两个阈值将待显示数据划分成不同状态,如正常状态、临界状态和异常状态,或者如第一安全等级状态、第二安全等级状态和第三安全等级状态等等。当任意两个阈值之间的差值较小且仪表盘的指针指向两个阈值之间时,容易出现指示不清,导致不易识别的问题。The pointer type instrument panel is widely used in people's life or production. For example, the pointer meter panel is widely used in the enterprise to visually display the business data, or the LCD instrument panel is widely used in the automobile to display the odometer and tachometer of the vehicle. Driving information such as oil pressure gauge, fuel gauge, water temperature gauge, ammeter and barometer. The current pointer type instrument panel includes a plurality of scale lines, each scale line corresponding to a scale value, and the scale precision between any two adjacent scale lines is the same. When displaying business data, driving information or other data to be displayed on the dashboard, the text, graphic or data unit is used in the dashboard to indicate the data to be displayed, and the data upper limit of the data to be displayed is indicated in the dashboard. Data lower limit and data unit. Among them, the data to be displayed refers to the data that needs to be displayed in the dashboard. When the data to be displayed is displayed by using the dashboard, the data to be displayed may use at least two thresholds to divide the data to be displayed into different states, such as a normal state, a critical state, and an abnormal state, or a first security level state, a second security level. Status and third security level status and more. When the difference between any two thresholds is small and the pointer of the dashboard points between two thresholds, the indication is unclear, resulting in a problem that is difficult to identify.
发明内容Summary of the invention
本申请实施例提供一种仪表盘显示方法、装置、终端设备及存储介质,以解决当前两个阈值的差值较小导致指示不清的问题。The embodiment of the present invention provides a method, a device, a terminal device, and a storage medium for displaying a dashboard, so as to solve the problem that the difference between the current two thresholds is small, resulting in unclear indication.
第一方面,本申请实施例提供一种仪表盘显示方法,包括:In a first aspect, an embodiment of the present application provides a dashboard display method, including:
获取待显示数据;Get the data to be displayed;
基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;Obtaining, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;
基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;Acquiring a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions;
在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;Displaying the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;
基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指 针指向所述指示位置。And based on the data to be displayed, obtaining an indication position of the data to be displayed in the target dashboard, and controlling a pointer to the indicated position.
第二方面,本申请实施例提供一种仪表盘显示装置,包括:In a second aspect, an embodiment of the present application provides a dashboard display device, including:
待显示数据获取模块,用于获取待显示数据;a data acquisition module to be displayed, configured to acquire data to be displayed;
数据参数获取模块,用于基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;a data parameter obtaining module, configured to acquire, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;
仪表盘模板获取模块,用于基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;a dashboard template obtaining module, configured to acquire a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display areas;
目标仪表盘获取模块,用于在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;a target dashboard acquisition module, configured to display the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;
指示位置确认模块,用于基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指针指向所述指示位置。And indicating a location confirmation module, configured to acquire, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and control a pointer to the indicated location.
第三方面,本申请实施例提供一种终端设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机可读指令,所述处理器执行计算机可读指令时执行如下步骤:In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, where the processor executes the following steps when executing the computer readable instructions :
获取待显示数据;Get the data to be displayed;
基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;Obtaining, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;
基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;Acquiring a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions;
在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;Displaying the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;
基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指针指向所述指示位置。And acquiring, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and controlling a pointer to the indicated location.
第四方面,本申请实施例提供一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:In a fourth aspect, the embodiment of the present application provides one or more non-volatile readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, such that the one or Multiple processors perform the following steps:
获取待显示数据;Get the data to be displayed;
基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;Obtaining, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;
基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;Acquiring a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions;
在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;Displaying the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;
基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指 针指向所述指示位置。And based on the data to be displayed, obtaining an indication position of the data to be displayed in the target dashboard, and controlling a pointer to the indicated position.
本申请的一个或多个实施例的细节在下面的附图及描述中提出。本申请的其他特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art based on these drawings without the inventive labor.
图1是实施例1中仪表盘显示方法的一流程图;1 is a flow chart showing a method of displaying a dashboard in Embodiment 1;
图2是图1中步骤S20的一具体流程图;Figure 2 is a specific flow chart of step S20 of Figure 1;
图3是图1中步骤S50的一具体流程图;Figure 3 is a specific flow chart of step S50 of Figure 1;
图4是实施例2中仪表盘显示装置的一原理框图;4 is a schematic block diagram of an instrument panel display device in Embodiment 2;
图5是实施例4中终端设备的一示意图。FIG. 5 is a schematic diagram of a terminal device in Embodiment 4.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
实施例1Example 1
图1示出本实施例中仪表盘显示方法。该仪表盘显示方法可应用在与实体仪表盘相连的用于控制仪表盘显示的ECU(Electronic Control Unit,简称ECU,即电子控制单元)、处理器或终端设备上,用于控制实体仪表盘对待显示数据进行显示。本实施例中,实体仪表盘为液晶仪表盘。或者,该仪表盘显示方法可应用安装有仪表盘程序的终端设备上,该终端设备可配置在银行、证券、保险等金融机构或其他机构中,用于对金融机构或其他机构中形成的待显示数据进行可视化显示。其中,终端设备包括但不限于PC端、智能手机和平板电脑。如图1所示,该仪表盘显示方法包括如下步骤:Fig. 1 shows a dashboard display method in this embodiment. The dashboard display method can be applied to an ECU (Electronic Control Unit, ECU, or an electronic control unit), a processor or a terminal device connected to the physical dashboard for controlling the display of the dashboard, for controlling the physical dashboard to be treated. Display data for display. In this embodiment, the physical instrument panel is a liquid crystal instrument panel. Alternatively, the dashboard display method may be applied to a terminal device installed with a dashboard program, and the terminal device may be configured in a financial institution such as a bank, a securities, an insurance, or other institutions, and is used to form a financial institution or other institution. Display data for visual display. Among them, terminal devices include, but are not limited to, a PC terminal, a smart phone, and a tablet computer. As shown in FIG. 1, the dashboard display method includes the following steps:
S10:获取待显示数据。S10: Acquire data to be displayed.
其中,待显示数据是指需要在仪表盘上显示的数据,待显示数据是具体的数据。若仪表盘为里程表这一实体仪表盘时,其对应的待显示数据可以为当前车速,如80km/h。若仪表盘为设置在终端设备上的虚拟仪表盘时,其待显示数据可以为安装该终端设备的金融机 构或其他机构在生产经营过程中形成的业务数据。Among them, the data to be displayed refers to the data that needs to be displayed on the dashboard, and the data to be displayed is specific data. If the instrument panel is the physical instrument panel of the odometer, the corresponding data to be displayed may be the current vehicle speed, such as 80 km/h. If the dashboard is a virtual dashboard set on the terminal device, the data to be displayed may be the service data formed by the financial institution or other organization that installs the terminal device during the production and operation process.
以保险机构的业务数据为例,该待显示数据可以为保险机构每天或每月的销售额、签单量、业务员出勤率、接待客户数或者宣传活动量等需要在仪表盘中进行统计的业务数据。以保险机构中理赔案件的业务数据为例,该待显示数据可以包括但不限于本实施例中提及的理赔调查平均时效工作日、理调人均未结案件量、欺诈拒付案件占比、保单调查拒付占比、保单出险率和短险赔付率等业务数据。Taking the business data of the insurance institution as an example, the data to be displayed may be the business that needs to be counted in the dashboard, such as the daily or monthly sales amount of the insurance institution, the amount of the ticket, the attendance rate of the salesperson, the number of customers received, or the amount of publicity activities. data. Taking the business data of the claim in the insurance institution as an example, the data to be displayed may include, but is not limited to, the average aging workday of the claims investigation mentioned in the embodiment, the number of open unresolved cases, and the proportion of fraud refusal cases. The policy investigates business data such as the proportion of chargebacks, policy insurance rates, and short-term insurance claims.
S20:基于待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2。S20: Obtain a corresponding upper data limit, a lower data limit, and N thresholds based on the data to be displayed, where N≥2.
其中,数据上限为根据实际情况设置的与待显示数据相对应的最大值。数据下限为根据实际情况设置的与待显示数据相对应的最小值。阈值为根据实际情况设置的用于区分待显示数据处于不同状态的值,其中,N个阈值均为数据下限与数据下限之间的值。The data upper limit is a maximum value corresponding to the data to be displayed set according to the actual situation. The lower limit of the data is the minimum value corresponding to the data to be displayed set according to the actual situation. The threshold is a value that is set according to an actual situation to distinguish that the data to be displayed is in different states, wherein the N thresholds are values between the lower limit of the data and the lower limit of the data.
若仪表盘为设置在汽车上的气压表这一实体仪表盘时,其获取的待显示数据为实际测量的胎压值,此时需获取待显示数据的数据上限和数据下限,并获取高压阈值和低压阈值;当待显示数据在数据下限与低压阈值之间时处于低压状态;当待显示数据在低压阈值和高压阈值之间时处于正常状态;当待显示数据在高压阈值与数据上限时处于高压状态。If the instrument panel is a physical instrument panel set on the car, the data to be displayed is the actual measured tire pressure value. At this time, the data upper limit and the lower data limit of the data to be displayed are acquired, and the high pressure threshold is obtained. And a low voltage threshold; when the data to be displayed is between the lower limit of the data and the low pressure threshold; when the data to be displayed is between the low pressure threshold and the high pressure threshold; when the data to be displayed is at the high voltage threshold and the data upper limit High pressure state.
若仪表盘为设置在终端设备上的虚拟仪表盘时,其获取的待显示数据为理调人均未结案件量时,若对应的数据下限为0,数据上限为100,设有3个阈值分别为7、10和12,以将理调人均未结案件量划分成四个数据范围,分别对应一个处理进度状态;如0-7较快处理进度状态,7-10为一般处理进度状态,10-12为超期处理进度状态,12-100为严重超期处理进度状态。If the dashboard is a virtual dashboard set on the terminal device, if the data to be displayed is the number of unresolved cases, if the corresponding data lower limit is 0, the data upper limit is 100, and three thresholds are respectively set. For 7, 10 and 12, the number of unresolved cases per capita is divided into four data ranges, corresponding to a processing progress state; for example, 0-7 processes the progress status faster, 7-10 is the general processing progress status, 10 -12 is the overdue processing progress status, and 12-100 is the serious overdue processing progress status.
在一具体实施方式中,该待显示数据具体为业务数据,具体可以为任一机构的销售额、签单量、业务员出勤率、接待客户数或者宣传活动量等业务数据。如图2所示该仪表盘显示方法的步骤S20中,基于待显示数据,获取对应的数据上限、数据下限和N个阈值,N≥2,具体包括如下步骤:In a specific implementation manner, the data to be displayed is specifically service data, and may be service data such as sales, signing amount, sales attendance rate, number of receiving customers, or amount of publicity activities of any institution. In step S20 of the dashboard display method, as shown in FIG. 2, based on the data to be displayed, the corresponding data upper limit, data lower limit, and N thresholds are obtained, N≥2, and specifically includes the following steps:
S21:基于业务数据,获取大数据平台中的历史数据。S21: Obtain historical data in the big data platform based on the business data.
其中,历史数据是指预先保存在大数据平台中的与待显示数据相对应的历史数据。即若待显示数据为需要显示的业务员出勤率、接待客户数或者宣传活动量时,其获取的历史数据是大数据平台中存储的业务员出勤率、接待客户数或者宣传活动量对应的数据。大数据平台具体为Hadoop大数据平台,Hadoop大数据平台可使用户在不了解分布式底层细节的情况下,开发分布式程序,并进行数据的高速运算和存储。通过采用Hadoop大数据平台采集历史数据,大大提高历史数据的获取效率,缩短获取大量历史数据所需时间,并且 实现了高效采集一定数量级的原始数据。The historical data refers to historical data corresponding to the data to be displayed that is pre-stored in the big data platform. That is, if the data to be displayed is the attendant rate, the number of customers received, or the amount of publicity activities to be displayed, the historical data acquired is the data corresponding to the attendance rate of the salesperson, the number of customers received, or the amount of promotional activities stored in the big data platform. . The big data platform is specifically the Hadoop big data platform. The Hadoop big data platform enables users to develop distributed programs and perform high-speed computing and storage of data without knowing the underlying details of the distributed. By using the Hadoop big data platform to collect historical data, the efficiency of obtaining historical data is greatly improved, the time required to obtain a large amount of historical data is shortened, and the raw data of a certain order of magnitude is efficiently collected.
S22:从历史数据中选取最大值确定为数据上限,并选取最小值确定为数据下限。S22: The maximum value selected from the historical data is determined as the upper limit of the data, and the minimum value is determined as the lower limit of the data.
具体地,若待显示数据对应的标准值为销售额、签单量、业务员出勤率、接待客户数、宣传活动量、活跃用户数量和新注册用户量等中的任一种业务数据时,由于这些业务数据都有其对应的具体数据,则待显示数据的上下限范围可以对应具体数据范围,可确定其最大值为数据上限,并确定其最小值为数据下限。Specifically, if the standard value corresponding to the data to be displayed is any one of the sales, the amount of the ticket, the attendance rate of the salesperson, the number of the customer, the amount of the promotion, the number of the active users, and the amount of the newly registered user, The service data has its corresponding specific data, and the upper and lower limits of the data to be displayed may correspond to a specific data range, and the maximum value thereof may be determined as the data upper limit, and the minimum value thereof is determined as the data lower limit.
S23:采用线性回归算法对历史数据进行回归处理,获取对应的标准值。S23: Regression processing of historical data by using a linear regression algorithm to obtain a corresponding standard value.
具体地,采用线性回归算法对历史数据进行回归处理,其中,定义多变量线性回归的模型为h
θ(x)=θ
0+θ
1x
1+θ
2x
2+···+θ
nx
n,其中,h
θ(x)为假设函数,各个θ为输入值间的夹角向量,各个x为对应的多个变量向量值。此外,需要使用Cost Function(代价函数),若代价函数越小,说明线性回归地越好。Cost Function表达式如下:
其中,x
(i)表示向量x中的第i个元素,y
(i)表示向量y中的第i个元素,h
θ(x
(i))表示已知的假设函数,m为训练集的数量。之后根据梯度下降法找出cost function函数的最小值,先确定向下一步的步伐大小,再任意给定一个初始值θ
0,θ
1,确定一个向下的方向,并向下走预先规定的步伐,并更新θ
0,θ
1,当下降的高度小于某个定义的值,则停止下降。具体算法为
其中α称为Learning rate,用于决定梯度下降步伐大小。根据以上采用线性回归算法对历史数据进行回归处理,能够有效准确地获取与待显示数据相对应的标准值。
Specifically, the regression data is processed by a linear regression algorithm, wherein the model defining the multivariate linear regression is h θ (x)=θ 0 +θ 1 x 1 +θ 2 x 2 +····+θ n x n , where h θ (x) is a hypothesis function, each θ is an angle vector between input values, and each x is a corresponding plurality of variable vector values. In addition, you need to use the Cost Function. If the cost function is smaller, the linear regression is better. The Cost Function expression is as follows: Where x (i) represents the i-th element in vector x, y (i) represents the i-th element in vector y, h θ (x (i) ) represents a known hypothesis function, and m is the training set Quantity. Then find the minimum value of the cost function function according to the gradient descent method, first determine the step size to the next step, and then arbitrarily give an initial value θ 0 , θ 1 , determine a downward direction, and go down the predetermined Step, and update θ 0 , θ 1 , when the descending height is less than a certain defined value, stop falling. The specific algorithm is Where α is called the learning rate and is used to determine the magnitude of the gradient descent. According to the above regression processing of the historical data by the linear regression algorithm, the standard value corresponding to the data to be displayed can be obtained efficiently and accurately.
S24:获取用户输入的至少一个上限范围和至少一个下限范围。S24: Acquire at least one upper limit range and at least one lower limit range input by the user.
具体地,获取与待显示数据相对应的标准值后,需获取用户自主设置并输入的至少一个上限范围和至少一个下限范围。其中,上限范围是大于待显示数据的标准值的范围值,下限范围是小于待显示数据的标准值的范围值。该上限范围和下限范围是相对于标准值的范围值,可以采用百分比或具体数值表示。Specifically, after acquiring the standard value corresponding to the data to be displayed, at least one upper limit range and at least one lower limit range that are automatically set and input by the user are acquired. Wherein, the upper limit range is a range value larger than a standard value of the data to be displayed, and the lower limit range is a range value smaller than a standard value of the data to be displayed. The upper and lower ranges are range values relative to standard values and may be expressed as percentages or specific values.
S25:基于上限范围和标准值确定一阈值,并基于下限范围和标准值确定一阈值。S25: Determine a threshold based on the upper limit range and the standard value, and determine a threshold based on the lower limit range and the standard value.
具体地,基于上限范围和标准值确定一阈值是指将上限范围与标准值的和值作为一阈值,如标准值为50%,其上限范围为20%,则获取的一阈值为70%。相应地,基于下限范围和标准值确定一阈值是指将标准值与下限范围的差值作为一阈值,如标准值为50%,其下 限范围为20%,则获取的一阈值为30%。可以理解地,由于上限范围和下限范围均可以设置至少一个,由此获取的阈值包括至少二个,即N≥2。Specifically, determining a threshold based on the upper limit range and the standard value means that the sum of the upper limit range and the standard value is used as a threshold. If the standard value is 50% and the upper limit is 20%, the obtained threshold is 70%. Correspondingly, determining a threshold based on the lower limit range and the standard value means that the difference between the standard value and the lower limit range is taken as a threshold. If the standard value is 50% and the lower limit is 20%, the obtained threshold is 30%. It can be understood that since at least one of the upper limit range and the lower limit range can be set, the threshold thus obtained includes at least two, that is, N≥2.
S30:基于N个阈值,获取对应的仪表盘模板,仪表盘模板包括N+1个显示区域。S30: Acquire a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions.
仪表盘模板为预先形成并存储在数据库中的模板。该仪表盘模板是根据阈值的数量确定的模板。每一仪表盘模板包括若干刻度线,其中N个阈值对应的刻度线采用延长、加深或采用其他方式突出显示,数据上限和数据下限对应的刻度线采用延长、加深或采用其他方式突出显示,以将仪表盘模板划分成N+1个显示区域,每一显示区域对应一数值状态。如当N=2时,选取存储在数据库中的包括3个显示区域的仪表盘模板,根据已经确定的阈值将三个显示区域确定为正常显示区域、警戒显示区域和告警显示区域,其中,正常、警戒和告警为数据状态。The dashboard template is a template that is pre-formed and stored in the database. The dashboard template is a template that is determined based on the number of thresholds. Each dashboard template includes a plurality of tick marks, wherein the tick lines corresponding to the N thresholds are extended, deepened, or otherwise highlighted, and the tick marks corresponding to the upper data limit and the lower data limit are extended, deepened, or otherwise highlighted. The dashboard template is divided into N+1 display areas, and each display area corresponds to a numerical state. For example, when N=2, the dashboard template including the three display areas stored in the database is selected, and the three display areas are determined as the normal display area, the warning display area, and the alarm display area according to the determined threshold, wherein, , alert and alarm are data status.
S40:在仪表盘模板上显示数据上限、数据下限和N个阈值,以获取目标仪表盘。S40: Display a data upper limit, a data lower limit, and N thresholds on the dashboard template to obtain the target dashboard.
目标仪表盘是在仪表盘模板上显示出待显示数据的数据上限、数据下限和N个阈值的仪表盘。数据上限、数据下限和N个阈值可将仪表盘的刻度线划分为N+1个显示区域。N个阈值的大小(即占整个仪表盘的比例)可自主设置,以使两个差值较小的阈值可在目标仪表盘中放大显示。本实施例中,在仪表盘模块上突出显示待显示数据对应的数据上限、数据下限和N个阈值时,若仪表盘为液晶仪表盘时,则在液晶仪表盘中将数据上限、数据下限和N个阈值的数值在液晶仪表盘中显示;若仪表盘为虚拟仪表盘时,将数据上限、数据下限和N个阈值对应的数值在仪表盘模板预设的位置上显示。具体地,数据上限、数据下限和N个阈值可设置在仪表盘的刻度线内侧,也可以设置刻度线外侧。The target dashboard is a dashboard that displays the upper data limit, the lower data limit, and the N thresholds of the data to be displayed on the dashboard template. The data upper limit, the lower data limit, and the N thresholds divide the scale line of the dashboard into N+1 display areas. The size of the N thresholds (ie, the proportion of the entire dashboard) can be set autonomously so that the thresholds with two smaller differences can be magnified in the target dashboard. In this embodiment, when the data upper limit, the data lower limit, and the N thresholds corresponding to the data to be displayed are highlighted on the dashboard module, if the instrument panel is a liquid crystal dashboard, the upper limit of the data and the lower limit of the data are set in the liquid crystal dashboard. The values of the N thresholds are displayed in the liquid crystal dashboard; if the dashboard is a virtual dashboard, the data upper limit, the lower data limit, and the values corresponding to the N thresholds are displayed at preset positions of the dashboard template. Specifically, the data upper limit, the data lower limit, and the N thresholds may be set inside the scale line of the instrument panel, or may be set outside the scale line.
进一步地,当N=2,即有2个阈值,3个显示区域时,每一显示区域对应待显示数据的一个状态。如待显示数据为理调人均未结案件量时,若对应的数据下限为0,数据下限为100,设有3个阈值分别为7、10和12,则获取的目标仪表盘将理调人均未结案件量划分成四个显示区域,每一显示区域对应一个处理进度状态;如0-7较快处理进度状态,7-10为一般处理进度状态,10-12为超期处理进度状态,12-100为严重超期处理进度状态。Further, when N=2, that is, there are 2 thresholds and 3 display areas, each display area corresponds to a state of data to be displayed. If the data to be displayed is used to correct the number of unresolved cases, if the corresponding data lower limit is 0, the data lower limit is 100, and 3 thresholds are respectively 7, 10 and 12, the obtained target dashboard will be adjusted per capita. The open case quantity is divided into four display areas, each display area corresponds to a processing progress state; for example, 0-7 processes the progress status faster, 7-10 is the general processing progress status, and 10-12 is the overdue processing progress status, 12 -100 is a serious overdue processing progress status.
本实施例中,目标仪表盘中相邻两个显示区域的刻度精度不相同,其中,每一显示区域的刻度精度采用刻度精度计算公式确定。该刻度精度计算公式为K
i=(A
i-B
i)/N
i,其中,K
i为第i个显示区域的刻度精度,A
i为第i个显示区域的区域上限值,B
i为第i个显示区域的区域下限值,N
i为第i个显示区域的刻度线数量。
In this embodiment, the scale precisions of two adjacent display areas in the target dashboard are different, wherein the scale accuracy of each display area is determined by a scale accuracy calculation formula. The scale accuracy calculation formula is K i =(A i -B i )/N i , where K i is the scale precision of the i-th display area, and A i is the area upper limit value of the i-th display area, B i It is the lower limit value of the area of the i-th display area, and N i is the number of tick marks of the i-th display area.
其中,显示区域的区域上限值和区域下限值分别对应用于界定显示区域的两个阈值, 或者数据上限与阈值,或者阈值与数据下限。可以理解地,目标仪表盘中相邻两个显示区域的刻度精度不相同,可将两个差值较小的阈值在目标仪表盘中放大显示,以使指针指向这两个阈值之间、数据上限与阈值之间或者阈值与数据下限之间对应的显示区域时,可清楚看到该指针所指向的显示区域,在一定程度上克服指针指示不清楚的问题。The area upper limit value and the area lower limit value of the display area respectively correspond to two threshold values for defining the display area, or a data upper limit and a threshold, or a threshold and a data lower limit. It can be understood that the scale accuracy of two adjacent display areas in the target dashboard is different, and the thresholds with two smaller differences can be enlarged and displayed in the target dashboard so that the pointer points between the two thresholds, and the data When the display area corresponding to the upper limit and the threshold or between the threshold and the lower limit of the data, the display area pointed by the pointer can be clearly seen, and the problem that the pointer indication is unclear is overcome to some extent.
进一步地,目标仪表盘相邻两个显示区域的刻度线的颜色不相同。具体地,目标仪表盘中设置N+1个显示区域,相邻的两个显示区域的刻度线颜色不相同,用不同颜色区分显示区域可以更加直观地反映显示区域对应的状态。如采用目标仪表盘对业务数据进行可视化显示时,采用第一阈值和第二阈值将业务数据划分成不同数据状态,将刻度值小于第一阈值所对应的显示区域采用绿色刻度线显示,对应正常状态;将刻度值大于第一阈值且小于第二阈值对应的显示区域采用蓝色刻度线显示,对应预警状态;将刻度值大于第二阈值的显示区域采用红色刻度线显示,对应报警状态。Further, the color of the tick marks of the two adjacent display areas of the target dashboard is different. Specifically, N+1 display areas are set in the target dashboard, and the scales of the adjacent two display areas are different in color. Differentiating the display area by different colors can more intuitively reflect the status corresponding to the display area. If the target dashboard is used to visually display the service data, the service data is divided into different data states by using the first threshold and the second threshold, and the display area corresponding to the scale value smaller than the first threshold is displayed by a green tick mark, corresponding to normal. The display area corresponding to the scale value greater than the first threshold and smaller than the second threshold is displayed by the blue tick mark, corresponding to the warning state; the display area with the scale value greater than the second threshold is displayed by the red tick mark, corresponding to the alarm state.
S50:基于待显示数据,获取待显示数据在目标仪表盘中的指示位置,控制指针指向指示位置。S50: Acquire an indication position of the to-be-displayed data in the target dashboard based on the data to be displayed, and control the pointer to the indicated location.
由于目标仪表盘中包括N+1个显示区域,每个显示区域的刻度精度不相同,因此需先基于待显示数据,获取待显示数据在目标仪表盘中的指示位置;然后再控制指针指向指示位置。本实施例中,可将N个差值较小的阈值在目标仪表盘中放大显示,在基于待显示数据确定在目标仪表盘的指示位置时,若待显示数据在两个差值较小的阈值之间,则其指示位置在这两个相邻阈值所形成的显示区域之间,可清楚指示待显示数据在仪表盘中的指示位置。Since the target dashboard includes N+1 display areas, the scale precision of each display area is different. Therefore, based on the data to be displayed, the indicated position of the data to be displayed in the target dashboard is obtained first; then the pointer pointing indication is controlled. position. In this embodiment, N thresholds with small differences may be displayed in an enlarged manner on the target dashboard. When the indicated position of the target dashboard is determined based on the data to be displayed, if the data to be displayed is smaller in two differences Between the thresholds, the indication position is between the display areas formed by the two adjacent thresholds, and the indicated position of the data to be displayed in the dashboard can be clearly indicated.
在一具体实施方式中,如图3所示,S50中基于待显示数据,获取待显示数据在目标仪表盘中的指示位置,具体包括如下步骤:In a specific embodiment, as shown in FIG. 3, the S50 obtains the indicated position of the data to be displayed in the target dashboard based on the data to be displayed, and specifically includes the following steps:
S51:基于待显示数据,获取目标仪表盘中对应的目标显示区域。S51: Acquire a corresponding target display area in the target dashboard based on the data to be displayed.
其中,目标显示区域是指待显示数据所指向的显示区域。由于仪表盘中的显示区域由N个阈值进行划分,基于该待显示数据与N个阈值进行比较,获取靠近待显示数据的一个阈值或两个阈值,从而确定目标显示区域。具体地,若待显示数据在两个阈值之间,则两个阈值在目标仪表盘中界定的显示区域为目标显示区域;若待显示数据在数据下限与一阈值之间,则数据下限与该阈值在目标仪表盘中界定的显示区域为目标显示区域;若待显示数据在一阈值与数据上限之间,则该阈值与数据上限在目标仪表盘中界定的显示区域为目标显示区域。The target display area refers to a display area pointed to by the data to be displayed. Since the display area in the dashboard is divided by N thresholds, based on the data to be displayed being compared with the N thresholds, a threshold or two thresholds close to the data to be displayed are acquired, thereby determining the target display area. Specifically, if the data to be displayed is between two thresholds, the display area defined by the two thresholds in the target dashboard is the target display area; if the data to be displayed is between the lower limit of the data and a threshold, the lower limit of the data and the The display area defined by the threshold in the target dashboard is the target display area; if the data to be displayed is between a threshold and an upper data limit, the display area defined by the threshold and the data upper limit in the target dashboard is the target display area.
S52:获取目标显示区域的参数值,参数值包括区域上限值和区域下限值。S52: Acquire a parameter value of the target display area, where the parameter value includes an area upper limit value and a regional lower limit value.
本实施例中,目标显示区域的参数值是用于限定该目标显示区域的两个阈值,分别定义为区域上限值和区域下限值。In this embodiment, the parameter value of the target display area is two threshold values for defining the target display area, and is defined as an area upper limit value and a regional lower limit value, respectively.
S53:采用刻度偏移量计算公式对参数值进行处理,获取对应的刻度偏移量。S53: The parameter value is processed by using the scale offset calculation formula to obtain the corresponding scale offset.
其中,刻度偏移量计算公式具体为
Y
i为第i个显示区域的刻度偏移量,X
i为待显示数据,A
i为第i个显示区域的区域上限值,B
i为第i个显示区域的区域下限值,N
i为第i个显示区域的刻度线数量。具体地,刻度偏移量计算公式中的显示区域为目标显示区域。本实施例中,采用刻度偏移量计算公式计算出的刻度偏移量是相对于目标显示区域的区域下限值对应的刻度线的偏移量,基于该刻度偏移量可确定待显示数据在目标仪表盘中的指示位置。
Wherein, the scale offset calculation formula is specifically Y i is the i-th display area of the scale offset, X i is the data to be displayed, A i is the upper limit value of the i-th region of the display region, B i is the i-th lower limit region of the display region, N i is the number of tick marks in the i-th display area. Specifically, the display area in the scale offset calculation formula is the target display area. In this embodiment, the scale offset calculated by the scale offset calculation formula is an offset of the scale line corresponding to the region lower limit value of the target display area, and the data to be displayed can be determined based on the scale offset. The indicated position in the target dashboard.
S54:基于目标显示区域的区域下限值和刻度偏移量,获取待显示数据在目标仪表盘中的指示位置。S54: Acquire an indication position of the data to be displayed in the target dashboard based on the regional lower limit value and the scale offset of the target display area.
本实施例中,目标显示区域的区域下限值对应一阈值或数据下限,执行步骤S51-S53获取的刻度偏移量,从区域下限值对应的刻度线的位置顺时针转动刻度偏移量,即可获取待显示数据在目标仪表盘中的指示位置。In this embodiment, the area lower limit value of the target display area corresponds to a threshold value or a data lower limit, and the scale offset obtained in steps S51-S53 is executed, and the scale offset is rotated clockwise from the position of the scale line corresponding to the area lower limit value. , you can get the indicated position of the data to be displayed in the target dashboard.
为了进一步说明步骤S51-S54,以下进行举例说明:若步骤S40中获取的目标仪表盘中设有100个刻度线,其中,数据下限对应0刻度值,数据上限对应100刻度值,两个阈值分别为10和20,且10和20这两个阈值将目标仪表盘的刻度线按3:4:3的比例进行划分。若待显示数据为12,由于10<12<20,则步骤S51中基于该显示数据,获取目标仪表盘中的目标显示区域具体为阈值10和20界定的显示区域。此时,步骤S52中获取的目标显示区域中的参数值中,区域上限值为20,区域下限值为10。在步骤S53中,采用刻度偏移量计算公式
对参数值进行处理,使获取对应的刻度偏移量,即
该刻度偏移值是在目标显示区域中相对区域下限值对应的刻度线的偏移量。在步骤S54中,将从目标显示区域的区域下限值(即10对应的刻度线)中顺时针偏移8个刻度,即可获取待显示数据在目标仪表盘中的指示位置。
In order to further explain the steps S51-S54, the following is an example: if the target instrument panel obtained in step S40 is provided with 100 tick marks, wherein the data lower limit corresponds to the 0 scale value, the data upper limit corresponds to the 100 scale value, and the two threshold values respectively The thresholds of 10 and 20, and 10 and 20 divide the scale of the target dashboard into a ratio of 3:4:3. If the data to be displayed is 12, since 10<12<20, in step S51, based on the display data, the target display area in the target dashboard is acquired specifically as the display areas defined by the thresholds 10 and 20. At this time, among the parameter values in the target display area acquired in step S52, the upper limit value of the area is 20, and the lower limit value of the area is 10. In step S53, the scale offset calculation formula is used Processing the parameter values so that the corresponding scale offset is obtained, ie The scale offset value is an offset amount of the scale line corresponding to the lower limit value of the relative area in the target display area. In step S54, the target lower limit value (ie, the scale line corresponding to 10) of the target display area is offset clockwise by 8 scales, and the indicated position of the data to be displayed in the target dashboard can be obtained.
由于目标仪表盘相邻两个显示区域的刻度线的颜色不相同,为了进一步突出显示效果,可使目标仪表盘中指针的颜色与其指示位置对应的显示区域的颜色相同,以便基于指针颜色来确定显示区域对应的数据状态,进一步达到易于识别的效果,使其符合用户对现 代技术智能化的要求。Since the color of the tick marks of the two display areas adjacent to the target dashboard is different, in order to further highlight the effect, the color of the pointer in the target dashboard may be the same as the color of the display area corresponding to the indicated position, so as to be determined based on the color of the pointer. The data state corresponding to the display area further achieves an easy-to-identify effect, so that it meets the user's requirements for modern technology intelligence.
为了便于理解,以保险行业的欺诈拒付案件占比为例对该仪表盘显示方法进行进一步说明。设欺诈案件占比最大值为1%,最小值为0,1%为数据上限,0为数据下限,根据实际情况需要设置两个阈值来反映欺诈拒付案件状态情况,两个阈值分别是0.25%和0.35%。根据阈值个数获取对应的仪表盘模板,根据阈值个数确定该仪表盘模板应该包括三个显示区域,可使三个显示区域的刻度线颜色分别设置为蓝色、黄色和橙色,且三个颜色对应的显示区域的数据状态分别表示正常状态、预警状态和报警状态。在仪表盘模板上显示数据上限、数据下限和两个阈值得到目标仪表盘,且本实施例中仪表盘模板包括100条刻度线,且两个阈值将100条刻度线按3:4:3划分成三个显示区域。根据待显示数据和仪表盘模板计算各个显示区域的刻度精度,蓝色区域的刻度精度为
黄色可区域的刻度精度为
橙色区域的刻度精度为
当待显示数据为0.27%时,其目标显示区域为黄色对应的区域,其刻度偏移量为
In order to facilitate understanding, the display method of the dashboard is further illustrated by taking the proportion of fraudulent charge rejection cases in the insurance industry as an example. The maximum proportion of fraud cases is 1%, the minimum value is 0, 1% is the data upper limit, and 0 is the data lower limit. According to the actual situation, two thresholds need to be set to reflect the status of fraudulent charge-for-lending cases. The two thresholds are 0.25. % and 0.35%. Obtain a corresponding dashboard template according to the threshold number, and determine that the dashboard template should include three display regions according to the threshold number, so that the tick colors of the three display regions are respectively set to blue, yellow, and orange, and three The data states of the display areas corresponding to the colors indicate the normal state, the warning state, and the alarm state, respectively. Displaying the data upper limit, the data lower limit, and the two thresholds on the dashboard template to obtain the target dashboard, and in this embodiment, the dashboard template includes 100 tick marks, and the two thresholds divide the 100 tick marks by 3:4:3. Into three display areas. Calculate the scale accuracy of each display area according to the data to be displayed and the dashboard template. The scale accuracy of the blue area is The yellow scale area has a scale accuracy of The accuracy of the orange area is When the data to be displayed is 0.27%, the target display area is a yellow corresponding area, and the scale offset is
即需从目标显示区域的区域下限值顺时针偏移8个刻度,即为待显示数据在目标仪表盘中的指示位置。
That is, it is necessary to shift the area lower limit value of the target display area clockwise by 8 scales, that is, the indicated position of the data to be displayed in the target dashboard.
本申请实施例提供的仪表盘显示方法,基于待显示数据对应的N个阈值,获取对应的仪表盘模板,以使获取到的仪表盘模板可将待显示数据划分成N+1个显示区域,对应N+1个数据状态。通过在仪表盘模板上显示待显示数据的数据上限、数据下限和N个阈值,以获取目标仪表盘,以实现自主设置目标仪表盘中显示的数据,使得差值较小的两个阈值可在目标仪表盘中放大显示。最后根据待显示数据在目标仪表盘中的指示位置,控制指针指向指示位置,以实现仪表盘显示的目的。该仪表盘显示方法,可使仪表盘上两个阈值大小非常接近,即两个阈值的差值较小,所形成的显示区域需要进行放大显示,以使待显示数据处于两个接近的阈值之间时,指针可清楚直观地指示待显示数据在目标仪表盘中的指示位置。The method for displaying the dashboard provided by the embodiment of the present application is to obtain a corresponding dashboard template based on the N thresholds corresponding to the data to be displayed, so that the acquired dashboard template can divide the data to be displayed into N+1 display areas. Corresponds to N+1 data states. By displaying the data upper limit, the data lower limit and the N thresholds of the data to be displayed on the dashboard template to obtain the target dashboard, the data displayed in the target dashboard can be set autonomously, so that the two thresholds with smaller differences can be The target dashboard is magnified. Finally, according to the indicated position of the data to be displayed in the target dashboard, the control pointer points to the indicated position to achieve the purpose of the dashboard display. The dashboard display method can make the two thresholds on the dashboard very close, that is, the difference between the two thresholds is small, and the formed display area needs to be enlarged to display the data to be displayed at two close thresholds. In the meantime, the pointer can clearly and intuitively indicate the indicated position of the data to be displayed in the target dashboard.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not mean that the order of execution is performed. The order of execution of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
实施例2Example 2
对应于实施例1中仪表盘显示方法,图4示出与实施例1中仪表盘显示方法一一对应 的仪表盘显示装置的原理框图。如图4所示,该仪表盘显示装置包括待显示数据获取模块10、数据参数获取模块20、仪表盘模板获取模块30、目标仪表盘获取模块40和指示位置确认模块50。其中,待显示数据获取模块10、数据参数获取模块20、仪表盘模板获取模块30、目标仪表盘获取模块40和指示位置确认模块50的实现功能与实施例1中仪表盘显示方法对应的步骤一一对应,为避免赘述,本实施例不一一详述。Corresponding to the dashboard display method in the first embodiment, Fig. 4 is a schematic block diagram showing the dashboard display device in one-to-one correspondence with the dashboard display method in the first embodiment. As shown in FIG. 4, the dashboard display device includes a data acquisition module 10 to be displayed, a data parameter acquisition module 20, a dashboard template acquisition module 30, a target dashboard acquisition module 40, and an indication location confirmation module 50. The first step of the data display module 10, the data parameter acquisition module 20, the dashboard template acquisition module 30, the target dashboard acquisition module 40, and the implementation function of the indication location confirmation module 50 corresponding to the dashboard display method in the first embodiment In order to avoid redundancy, the present embodiment is not described in detail.
待显示数据获取模块10,用于获取待显示数据。The data acquisition module 10 to be displayed is configured to acquire data to be displayed.
数据参数获取模块20,用于基于待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2。The data parameter obtaining module 20 is configured to obtain a corresponding upper data limit, a lower data limit, and N thresholds based on the data to be displayed, where N≥2.
仪表盘模板获取模块30,用于基于N个阈值,获取对应的仪表盘模板,仪表盘模板包括N+1个显示区域。The dashboard template obtaining module 30 is configured to acquire a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions.
目标仪表盘获取模块40,用于在仪表盘模板上显示数据上限、数据下限和N个阈值,以获取目标仪表盘。The target dashboard acquisition module 40 is configured to display a data upper limit, a data lower limit, and N threshold values on the dashboard template to obtain the target dashboard.
指示位置确认模块50,用于基于待显示数据,获取待显示数据在目标仪表盘中的指示位置,控制指针指向指示位置。The indication position confirmation module 50 is configured to acquire, according to the data to be displayed, an indication position of the data to be displayed in the target dashboard, and the control pointer points to the indication position.
优选地,指示位置确认模块50包括目标显示区域获取单元51、参数值获取单元52、刻度偏移量计算单元53和指示位置确认单元54。Preferably, the indication position confirmation module 50 includes a target display area acquisition unit 51, a parameter value acquisition unit 52, a scale offset calculation unit 53, and an indication position confirmation unit 54.
目标显示区域获取单元51,用于基于待显示数据,获取目标仪表盘中对应的目标显示区域。The target display area obtaining unit 51 is configured to acquire a corresponding target display area in the target dashboard based on the data to be displayed.
参数值获取单元52,用于获取目标显示区域的参数值,参数值包括区域上限值和区域下限值。The parameter value obtaining unit 52 is configured to acquire a parameter value of the target display area, where the parameter value includes an area upper limit value and a region lower limit value.
刻度偏移量计算单元53,用于采用刻度偏移量计算公式对参数值进行处理,获取对应的刻度偏移量。The scale offset calculation unit 53 is configured to process the parameter value by using the scale offset calculation formula to obtain a corresponding scale offset.
指示位置确认单元54,用于基于目标显示区域的区域下限值和刻度偏移量,获取待显示数据在目标仪表盘中的指示位置。The indication position confirmation unit 54 is configured to acquire an indication position of the data to be displayed in the target dashboard based on the area lower limit value and the scale offset amount of the target display area.
优选地,目标仪表盘中相邻两个显示区域的刻度精度不相同,每一显示区域的刻度精度采用刻度精度计算公式确定。Preferably, the scale accuracy of two adjacent display areas in the target dashboard is different, and the scale accuracy of each display area is determined by a scale accuracy calculation formula.
其中,刻度精度计算公式为K
i=(A
i-B
i)/N
i,K
i为第i个显示区域的刻度精度,A
i为第i个显示区域的区域上限值,B
i为第i个显示区域的区域下限值,N
i为第i个显示区域的刻度线数量。
Wherein, the scale accuracy calculation formula is K i =(A i -B i )/N i , K i is the scale precision of the i-th display area, and A i is the area upper limit value of the i-th display area, and B i is The lower limit of the area of the i-th display area, and N i is the number of tick marks of the i-th display area.
优选地,待显示数据包括业务数据。Preferably, the data to be displayed includes business data.
数据参数获取模块20包括历史数据获取单元21、上限下限获取单元22、标准值获取单元23、上下限范围获取单元24和阈值获取单元25。The data parameter acquisition module 20 includes a history data acquisition unit 21, an upper limit lower limit acquisition unit 22, a standard value acquisition unit 23, an upper and lower limit range acquisition unit 24, and a threshold value acquisition unit 25.
历史数据获取单元21,用于基于业务数据,获取大数据平台中的历史数据。The historical data obtaining unit 21 is configured to acquire historical data in the big data platform based on the service data.
上限下限获取单元22,用于从历史数据中选取最大值确定为数据上限,并选取最小值确定为数据下限。The upper limit lower limit obtaining unit 22 is configured to select a maximum value from the historical data as the upper limit of the data, and select the minimum value as the lower limit of the data.
标准值获取单元23,用于采用线性回归算法对历史数据进行回归处理,获取对应的标准值。The standard value obtaining unit 23 is configured to perform regression processing on the historical data by using a linear regression algorithm to obtain a corresponding standard value.
上下限范围获取单元24,用于获取用户输入的至少一个上限范围和至少一个下限范围。The upper and lower limit range obtaining unit 24 is configured to acquire at least one upper limit range and at least one lower limit range input by the user.
阈值获取单元25,用于基于上限范围和标准值确定一阈值,并基于下限范围和标准值确定一阈值。The threshold obtaining unit 25 is configured to determine a threshold based on the upper limit range and the standard value, and determine a threshold based on the lower limit range and the standard value.
优选地,目标仪表盘相邻两个显示区域的刻度线的颜色不相同。Preferably, the color of the tick marks of the two adjacent display areas of the target dashboard is different.
优选地,目标仪表盘中指针的颜色与指示位置对应的显示区域的刻度线的颜色相同。Preferably, the color of the pointer in the target dashboard is the same as the color of the scale line of the display area corresponding to the indicated position.
本实施例所提供的仪表盘显示装置中,数据参数获取模块20用于基于待显示数据对应的N个阈值,获取对应的仪表盘模板,以使获取到的仪表盘模板可将待显示数据划分成N+1个显示区域,对应N+1个数据状态。目标仪表盘获取模块40通过在仪表盘模板上显示待显示数据的数据上限、数据下限和N个阈值,以获取目标仪表盘,以实现自主设置目标仪表盘中显示的数据,使得差值较小的两个阈值可在目标仪表盘中放大显示。指示位置确认模块50根据待显示数据在目标仪表盘中的指示位置,控制指针指向指示位置,以实现仪表盘显示的目标。该仪表盘显示方法、装置、终端设备及存储介质,可使仪表盘上两个阈值大小非常接近,即两个阈值的差值较小时,对两个阈值形成的显示区域进行放大显示,以使待显示数据在两个阈值之间时,可基于指针在目标仪表盘的指示位置,更直观地显示待显示数据。In the dashboard display device provided by the embodiment, the data parameter obtaining module 20 is configured to obtain a corresponding dashboard template based on the N thresholds corresponding to the data to be displayed, so that the obtained dashboard template can divide the data to be displayed. It is N+1 display areas, corresponding to N+1 data states. The target dashboard acquisition module 40 obtains the target dashboard by displaying the data upper limit, the data lower limit, and the N thresholds of the data to be displayed on the dashboard template, so as to achieve autonomous setting of the data displayed in the target dashboard, so that the difference is small. The two thresholds can be magnified in the target dashboard. The indication position confirmation module 50 controls the pointer to the indication position according to the indicated position of the data to be displayed in the target dashboard to achieve the target of the dashboard display. The display method, the device, the terminal device and the storage medium of the instrument panel can make the two threshold values on the instrument panel very close, that is, when the difference between the two threshold values is small, the display area formed by the two threshold values is enlarged and displayed, so that When the data to be displayed is between two thresholds, the data to be displayed can be displayed more intuitively based on the indicated position of the pointer on the target dashboard.
实施例3Example 3
本实施例提供一个或多个存储有计算机可读指令的非易失性可读存储介质。该一个或多个存储有计算机可读指令的非易失性可读存储介质中,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行实施例1中仪表盘显示方法,为避免重复,这里不再赘述。或者,该计算机可读指令被处理器执行时实现实施例2中仪表盘显示装置中各模块/单元的功能,为避免重复,这里不再赘述。This embodiment provides one or more non-volatile readable storage media having computer readable instructions stored thereon. The one or more non-readable readable storage mediums storing computer readable instructions, when executed by one or more processors, causing one or more processors to execute the instrument panel of Embodiment 1 The display method, in order to avoid repetition, will not be described here. Alternatively, when the computer readable instructions are executed by the processor, the functions of the modules/units in the dashboard display device in Embodiment 2 are implemented. To avoid repetition, details are not described herein again.
可以理解地,一个或多个存储有计算机可读指令的非易失性可读存储介质可以包括: 能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号和电信信号等。It will be understood that one or more non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a mobile hard drive, Disk, optical disk, computer memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, and telecommunications signals.
实施例4Example 4
图5是本申请一实施例提供的终端设备的示意图。如图5所示,该实施例的终端设备50包括处理器51、存储器52以及存储在存储器52中并可在处理器51上运行的计算机可读指令53。处理器51执行计算机可读指令53时实现实施例1中仪表盘显示方法的各个步骤,例如图1所示的步骤S10至S50。或者,处理器51执行计算机可读指令53时实现上述各装置实施例2中各模块/单元的功能,例如图4所示的待显示数据获取模块10、数据参数获取模块20、仪表盘模板获取模块30、目标仪表盘获取模块40和指示位置确认模块50的功能,以避免重复,此处不一一赘述。FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 5, the terminal device 50 of this embodiment includes a processor 51, a memory 52, and computer readable instructions 53 stored in the memory 52 and operable on the processor 51. The processor 51 executes the various steps of the dashboard display method of Embodiment 1 when the computer readable instructions 53 are executed, such as steps S10 to S50 shown in FIG. Alternatively, when the processor 51 executes the computer readable instructions 53, the functions of the modules/units in the foregoing device embodiment 2 are implemented, for example, the data acquisition module 10 to be displayed, the data parameter acquisition module 20, and the dashboard template acquisition shown in FIG. The functions of the module 30, the target dashboard acquisition module 40, and the indication location confirmation module 50 are avoided to avoid repetition, and are not described herein.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units according to needs. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.
Claims (20)
- 一种仪表盘显示方法,其特征在于,包括:A dashboard display method, comprising:获取待显示数据;Get the data to be displayed;基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;Obtaining, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;Acquiring a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions;在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;Displaying the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指针指向所述指示位置。And acquiring, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and controlling a pointer to the indicated location.
- 如权利要求1所述的仪表盘显示方法,其特征在于,所述基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,包括:The instrument panel display method according to claim 1, wherein the obtaining the indicated position of the data to be displayed in the target dashboard based on the data to be displayed comprises:基于所述待显示数据,获取所述目标仪表盘中对应的目标显示区域;Obtaining a corresponding target display area in the target dashboard based on the data to be displayed;获取所述目标显示区域的参数值,所述参数值包括区域上限值和区域下限值;Obtaining a parameter value of the target display area, where the parameter value includes an area upper limit value and a regional lower limit value;采用刻度偏移量计算公式对所述参数值进行处理,获取对应的刻度偏移量;The parameter value is processed by using a scale offset calculation formula to obtain a corresponding scale offset;基于所述目标显示区域的区域下限值和所述刻度偏移量,获取所述待显示数据在所述目标仪表盘中的指示位置;Obtaining, according to the regional lower limit value of the target display area and the scale offset, an indication position of the to-be-displayed data in the target dashboard;其中,所述刻度偏移量计算公式为 Y i为第i个显示区域的刻度偏移量,X i为待显示数据,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein the scale offset calculation formula is Y i is the i-th display area of the scale offset, X i is the data to be displayed, A i is the upper limit value of the i-th region of the display region, B i is the i-th lower limit region of the display region, N i is the number of tick marks in the i-th display area.
- 如权利要求1所述的仪表盘显示方法,其特征在于,所述目标仪表盘中相邻两个显示区域的刻度精度不相同,每一所述显示区域的刻度精度采用刻度精度计算公式确定;The instrument panel display method according to claim 1, wherein the scale accuracy of two adjacent display areas in the target dashboard is different, and the scale accuracy of each of the display areas is determined by using a scale accuracy calculation formula;其中,所述刻度精度计算公式为K i=(A i-B i)/N i,K i为第i个显示区域的刻度精度,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein, the scale accuracy calculation formula is K i =(A i -B i )/N i , K i is the scale precision of the i-th display area, and A i is the area upper limit value of the i-th display area, B i is the area lower limit value of the i-th display area, and N i is the number of tick marks of the i-th display area.
- 如权利要求1所述的仪表盘显示方法,其特征在于,所述待显示数据包括业务数据;The dashboard display method according to claim 1, wherein the data to be displayed includes service data;所述基于待显示数据,获取对应的数据上限、数据下限和N个阈值,N≥2,包括:The obtaining, according to the data to be displayed, the corresponding data upper limit, the data lower limit, and the N thresholds, where N ≥ 2, includes:基于所述业务数据,获取大数据平台中的历史数据;Obtaining historical data in the big data platform based on the service data;从所述历史数据中选取最大值确定为所述数据上限,并选取最小值确定为所述数据下限;Selecting a maximum value from the historical data is determined as the upper limit of the data, and selecting a minimum value is determined as the lower limit of the data;采用线性回归算法对所述历史数据进行回归处理,获取对应的标准值;Regressing the historical data by using a linear regression algorithm to obtain a corresponding standard value;获取用户输入的至少一个上限范围和至少一个下限范围;Obtaining at least one upper limit range and at least one lower limit range input by the user;基于所述上限范围和所述标准值确定一所述阈值,并基于所述下限范围和所述标准值确定一所述阈值。And determining the threshold based on the upper limit range and the standard value, and determining the threshold based on the lower limit range and the standard value.
- 如权利要求1所述的仪表盘显示方法,其特征在于,所述目标仪表盘相邻两个显示区域的刻度线的颜色不相同。The instrument panel display method according to claim 1, wherein the color of the scale lines adjacent to the two display areas of the target dashboard is different.
- 如权利要求5所述的仪表盘显示方法,其特征在于,所述目标仪表盘中所述指针的颜色与所述指示位置对应的所述显示区域的刻度线的颜色相同。The instrument panel display method according to claim 5, wherein a color of the pointer in the target dashboard is the same as a color of a scale line of the display area corresponding to the indication position.
- 一种仪表盘显示装置,其特征在于,包括:An instrument panel display device, comprising:待显示数据获取模块,用于获取待显示数据;a data acquisition module to be displayed, configured to acquire data to be displayed;数据参数获取模块,用于基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;a data parameter obtaining module, configured to acquire, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;仪表盘模板获取模块,用于基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;a dashboard template obtaining module, configured to acquire a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display areas;目标仪表盘获取模块,用于在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;a target dashboard acquisition module, configured to display the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;指示位置确认模块,用于基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指针指向所述指示位置。And indicating a location confirmation module, configured to acquire, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and control a pointer to the indicated location.
- 如权利要求7所述的仪表盘显示装置,其特征在于,所述指示位置确认模块包括:The instrument panel display device according to claim 7, wherein the indication position confirmation module comprises:目标显示区域获取单元,用于基于所述待显示数据,获取所述目标仪表盘中对应的目标显示区域;a target display area acquiring unit, configured to acquire a corresponding target display area in the target dashboard based on the to-be-displayed data;参数值获取单元,用于获取所述目标显示区域的参数值,所述参数值包括区域上限值和区域下限值;a parameter value obtaining unit, configured to acquire a parameter value of the target display area, where the parameter value includes a regional upper limit value and a regional lower limit value;刻度偏移量计算单元,用于采用刻度偏移量计算公式对所述参数值进行处理,获取对应的刻度偏移量;a scale offset calculation unit, configured to process the parameter value by using a scale offset calculation formula to obtain a corresponding scale offset;指示位置确认单元,用于基于所述目标显示区域的区域下限值和所述刻度偏移量,获取所述待显示数据在所述目标仪表盘中的指示位置;a position confirmation unit configured to acquire an indication position of the data to be displayed in the target dashboard based on a region lower limit value of the target display region and the scale offset amount;其中,所述刻度偏移量计算公式为 Y i为第i个显示区域的刻度偏移量,X i为待显示数据,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein the scale offset calculation formula is Y i is the i-th display area of the scale offset, X i is the data to be displayed, A i is the upper limit value of the i-th region of the display region, B i is the i-th lower limit region of the display region, N i is the number of tick marks in the i-th display area.
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device comprising a memory, a processor, and computer readable instructions stored in the memory and operable on the processor, wherein the processor executes the computer readable instructions as follows step:获取待显示数据;Get the data to be displayed;基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;Obtaining, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;Acquiring a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions;在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;Displaying the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指针指向所述指示位置。And acquiring, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and controlling a pointer to the indicated location.
- 如权利要求9所述的终端设备,其特征在于,所述基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,包括:The terminal device according to claim 9, wherein the obtaining the indication position of the data to be displayed in the target dashboard based on the data to be displayed comprises:基于所述待显示数据,获取所述目标仪表盘中对应的目标显示区域;Obtaining a corresponding target display area in the target dashboard based on the data to be displayed;获取所述目标显示区域的参数值,所述参数值包括区域上限值和区域下限值;Obtaining a parameter value of the target display area, where the parameter value includes an area upper limit value and a regional lower limit value;采用刻度偏移量计算公式对所述参数值进行处理,获取对应的刻度偏移量;The parameter value is processed by using a scale offset calculation formula to obtain a corresponding scale offset;基于所述目标显示区域的区域下限值和所述刻度偏移量,获取所述待显示数据在所述目标仪表盘中的指示位置;Obtaining, according to the regional lower limit value of the target display area and the scale offset, an indication position of the to-be-displayed data in the target dashboard;其中,所述刻度偏移量计算公式为 Y i为第i个显示区域的刻度偏移量,X i为待显示数据,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein the scale offset calculation formula is Y i is the i-th display area of the scale offset, X i is the data to be displayed, A i is the upper limit value of the i-th region of the display region, B i is the i-th lower limit region of the display region, N i is the number of tick marks in the i-th display area.
- 如权利要求9所述的终端设备,其特征在于,所述目标仪表盘中相邻两个显示区域的刻度精度不相同,每一所述显示区域的刻度精度采用刻度精度计算公式确定;The terminal device according to claim 9, wherein the scale accuracy of two adjacent display areas in the target dashboard is different, and the scale accuracy of each of the display areas is determined by using a scale accuracy calculation formula;其中,所述刻度精度计算公式为K i=(A i-B i)/N i,K i为第i个显示区域的刻度 精度,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein, the scale accuracy calculation formula is K i =(A i -B i )/N i , K i is the scale precision of the i-th display area, and A i is the area upper limit value of the i-th display area, B i is the area lower limit value of the i-th display area, and N i is the number of tick marks of the i-th display area.
- 如权利要求9所述的终端设备,其特征在于,所述待显示数据包括业务数据;The terminal device according to claim 9, wherein the data to be displayed includes service data;所述基于待显示数据,获取对应的数据上限、数据下限和N个阈值,N≥2,包括:The obtaining, according to the data to be displayed, the corresponding data upper limit, the data lower limit, and the N thresholds, where N ≥ 2, includes:基于所述业务数据,获取大数据平台中的历史数据;Obtaining historical data in the big data platform based on the service data;从所述历史数据中选取最大值确定为所述数据上限,并选取最小值确定为所述数据下限;Selecting a maximum value from the historical data is determined as the upper limit of the data, and selecting a minimum value is determined as the lower limit of the data;采用线性回归算法对所述历史数据进行回归处理,获取对应的标准值;Regressing the historical data by using a linear regression algorithm to obtain a corresponding standard value;获取用户输入的至少一个上限范围和至少一个下限范围;Obtaining at least one upper limit range and at least one lower limit range input by the user;基于所述上限范围和所述标准值确定一所述阈值,并基于所述下限范围和所述标准值确定一所述阈值。And determining the threshold based on the upper limit range and the standard value, and determining the threshold based on the lower limit range and the standard value.
- 如权利要求9所述的终端设备,其特征在于,所述目标仪表盘相邻两个显示区域的刻度线的颜色不相同。The terminal device according to claim 9, wherein the color of the tick marks of the two adjacent display areas of the target dashboard is different.
- 如权利要求13所述的终端设备,其特征在于,所述目标仪表盘中所述指针的颜色与所述指示位置对应的所述显示区域的刻度线的颜色相同。The terminal device according to claim 13, wherein a color of said pointer in said target dashboard is the same as a color of a scale line of said display area corresponding to said indicated position.
- 一个或多个存储有计算机可读指令的非易失性可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more non-transitory readable storage mediums storing computer readable instructions, wherein when the computer readable instructions are executed by one or more processors, cause the one or more processors to execute The following steps:获取待显示数据;Get the data to be displayed;基于所述待显示数据,获取对应的数据上限、数据下限和N个阈值,其中,N≥2;Obtaining, according to the data to be displayed, a corresponding upper data limit, a lower data limit, and N thresholds, where N≥2;基于N个所述阈值,获取对应的仪表盘模板,所述仪表盘模板包括N+1个显示区域;Acquiring a corresponding dashboard template based on the N thresholds, where the dashboard template includes N+1 display regions;在所述仪表盘模板上显示所述数据上限、所述数据下限和N个所述阈值,以获取目标仪表盘;Displaying the data upper limit, the data lower limit, and the N thresholds on the dashboard template to obtain a target dashboard;基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,控制指针指向所述指示位置。And acquiring, according to the to-be-displayed data, an indication position of the to-be-displayed data in the target dashboard, and controlling a pointer to the indicated location.
- 如权利要求15所述的非易失性可读存储介质,其特征在于,所述基于所述待显示数据,获取所述待显示数据在所述目标仪表盘中的指示位置,包括:The non-volatile readable storage medium according to claim 15, wherein the obtaining the indicated location of the to-be-displayed data in the target dashboard based on the data to be displayed comprises:基于所述待显示数据,获取所述目标仪表盘中对应的目标显示区域;Obtaining a corresponding target display area in the target dashboard based on the data to be displayed;获取所述目标显示区域的参数值,所述参数值包括区域上限值和区域下限值;Obtaining a parameter value of the target display area, where the parameter value includes an area upper limit value and a regional lower limit value;采用刻度偏移量计算公式对所述参数值进行处理,获取对应的刻度偏移量;The parameter value is processed by using a scale offset calculation formula to obtain a corresponding scale offset;基于所述目标显示区域的区域下限值和所述刻度偏移量,获取所述待显示数据在所述 目标仪表盘中的指示位置;Obtaining, according to the area lower limit value of the target display area and the scale offset quantity, an indication position of the to-be-displayed data in the target dashboard;其中,所述刻度偏移量计算公式为 Y i为第i个显示区域的刻度偏移量,X i为待显示数据,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein the scale offset calculation formula is Y i is the i-th display area of the scale offset, X i is the data to be displayed, A i is the upper limit value of the i-th region of the display region, B i is the i-th lower limit region of the display region, N i is the number of tick marks in the i-th display area.
- 如权利要求15所述的非易失性可读存储介质,其特征在于,所述目标仪表盘中相邻两个显示区域的刻度精度不相同,每一所述显示区域的刻度精度采用刻度精度计算公式确定;The non-volatile readable storage medium according to claim 15, wherein the scale accuracy of two adjacent display areas in the target dashboard is different, and the scale accuracy of each of the display areas is scaled The calculation formula is determined;其中,所述刻度精度计算公式为K i=(A i-B i)/N i,K i为第i个显示区域的刻度精度,A i为第i个显示区域的区域上限值,B i为第i个显示区域的区域下限值,N i为第i个显示区域的刻度线数量。 Wherein, the scale accuracy calculation formula is K i =(A i -B i )/N i , K i is the scale precision of the i-th display area, and A i is the area upper limit value of the i-th display area, B i is the area lower limit value of the i-th display area, and N i is the number of tick marks of the i-th display area.
- 如权利要求15所述的非易失性可读存储介质,其特征在于,所述待显示数据包括业务数据;The non-volatile readable storage medium according to claim 15, wherein the data to be displayed comprises service data;所述基于待显示数据,获取对应的数据上限、数据下限和N个阈值,N≥2,包括:The obtaining, according to the data to be displayed, the corresponding data upper limit, the data lower limit, and the N thresholds, where N ≥ 2, includes:基于所述业务数据,获取大数据平台中的历史数据;Obtaining historical data in the big data platform based on the service data;从所述历史数据中选取最大值确定为所述数据上限,并选取最小值确定为所述数据下限;Selecting a maximum value from the historical data is determined as the upper limit of the data, and selecting a minimum value is determined as the lower limit of the data;采用线性回归算法对所述历史数据进行回归处理,获取对应的标准值;Regressing the historical data by using a linear regression algorithm to obtain a corresponding standard value;获取用户输入的至少一个上限范围和至少一个下限范围;Obtaining at least one upper limit range and at least one lower limit range input by the user;基于所述上限范围和所述标准值确定一所述阈值,并基于所述下限范围和所述标准值确定一所述阈值。And determining the threshold based on the upper limit range and the standard value, and determining the threshold based on the lower limit range and the standard value.
- 如权利要求15所述的非易失性可读存储介质,其特征在于,所述目标仪表盘相邻两个显示区域的刻度线的颜色不相同。The non-volatile readable storage medium according to claim 15, wherein the color of the scale lines of the two adjacent display areas of the target dashboard is different.
- 如权利要求19所述的非易失性可读存储介质,其特征在于,所述目标仪表盘中所述指针的颜色与所述指示位置对应的所述显示区域的刻度线的颜色相同。The non-volatile readable storage medium according to claim 19, wherein a color of said pointer in said target dashboard is the same as a color of a scale line of said display area corresponding to said indicated position.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710825118.1 | 2017-09-14 | ||
CN201710825118.1A CN108268230A (en) | 2017-09-14 | 2017-09-14 | Instrument board display methods, device, terminal device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019052151A1 true WO2019052151A1 (en) | 2019-03-21 |
Family
ID=62771776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/081214 WO2019052151A1 (en) | 2017-09-14 | 2018-03-30 | Dashboard display method and apparatus, terminal device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108268230A (en) |
WO (1) | WO2019052151A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109325851A (en) * | 2018-09-29 | 2019-02-12 | 平安科技(深圳)有限公司 | Methods of exhibiting, system, computer equipment and the readable storage medium storing program for executing of probability of cheating |
CN110388255B (en) * | 2019-07-02 | 2020-08-04 | 中国第一汽车股份有限公司 | Water temperature meter display method, device, equipment and storage medium |
CN110648380A (en) * | 2019-09-29 | 2020-01-03 | 深圳市元征科技股份有限公司 | Instrument panel generation method and device and electronic equipment |
CN113060155A (en) * | 2019-12-12 | 2021-07-02 | 武汉理工大学 | Method and system for realizing intelligent human-computer interaction interface |
CN111951708B (en) * | 2020-07-15 | 2022-06-17 | 东风电驱动系统有限公司 | Sectional scale dynamic display method and device |
CN115096344A (en) * | 2022-05-13 | 2022-09-23 | 珠海格力电器股份有限公司 | Data real-time display method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102416871A (en) * | 2010-08-05 | 2012-04-18 | 通用汽车环球科技运作有限责任公司 | Display device for vehicle |
US20120306635A1 (en) * | 2011-06-02 | 2012-12-06 | Honda Motor Co., Ltd | Vehicle instrument |
CN204117605U (en) * | 2014-09-23 | 2015-01-21 | 安徽研扬科贸有限公司 | A kind of dial plate of intelligent instrument |
CN104554439A (en) * | 2014-12-25 | 2015-04-29 | 郑州宇通客车股份有限公司 | Dial pointer-type dynamic display method and rollover warning dynamic display method |
CN206269843U (en) * | 2016-08-23 | 2017-06-20 | 国家电投集团科学技术研究院有限公司 | Instrument |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102419379A (en) * | 2010-09-27 | 2012-04-18 | 马天龙 | Instrument panel with uneven scale spacings and control method of instrument panel |
CN102874119A (en) * | 2012-10-12 | 2013-01-16 | 上海德科电子仪表有限公司 | Virtual dial plate on thin film transistor liquid crystal display |
CN205010008U (en) * | 2015-09-21 | 2016-02-03 | 重庆捷尔士显示技术有限公司 | Automobile -used liquid crystal display instrument system |
-
2017
- 2017-09-14 CN CN201710825118.1A patent/CN108268230A/en active Pending
-
2018
- 2018-03-30 WO PCT/CN2018/081214 patent/WO2019052151A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102416871A (en) * | 2010-08-05 | 2012-04-18 | 通用汽车环球科技运作有限责任公司 | Display device for vehicle |
US20120306635A1 (en) * | 2011-06-02 | 2012-12-06 | Honda Motor Co., Ltd | Vehicle instrument |
CN204117605U (en) * | 2014-09-23 | 2015-01-21 | 安徽研扬科贸有限公司 | A kind of dial plate of intelligent instrument |
CN104554439A (en) * | 2014-12-25 | 2015-04-29 | 郑州宇通客车股份有限公司 | Dial pointer-type dynamic display method and rollover warning dynamic display method |
CN206269843U (en) * | 2016-08-23 | 2017-06-20 | 国家电投集团科学技术研究院有限公司 | Instrument |
Also Published As
Publication number | Publication date |
---|---|
CN108268230A (en) | 2018-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019052151A1 (en) | Dashboard display method and apparatus, terminal device and storage medium | |
EP3905157A1 (en) | Smart building score interface | |
US10970733B2 (en) | Systems and methods for coupon issuing | |
US20230101117A1 (en) | Systems and methods for incorporating breach velocities into fraud scoring models | |
US20190156360A1 (en) | Systems and methods for controlling access to location based data | |
US20220044250A1 (en) | Systems and methods for improved detection of network fraud events | |
US20230351400A1 (en) | Systems and methods for early detection of network fraud events | |
US11151569B2 (en) | Systems and methods for improved detection of network fraud events | |
US20200104911A1 (en) | Dynamic monitoring and profiling of data exchanges within an enterprise environment | |
CN107657410A (en) | The determination methods that replenish and device | |
EP3095013B1 (en) | Method and system for use in connection with an industrial control system | |
TW202020888A (en) | Risk control method and apparatus, and server and storage medium | |
US8754890B2 (en) | Graphical interface with data presence indicators | |
CN107330776A (en) | One kind book keeping operation and the detailed detection method and device of abnormal book keeping operation | |
US20200294075A1 (en) | Systems, methods, and computer program products for managing fuel costs | |
US10832342B1 (en) | Systems and methods for adjusting premium rate based on usage | |
CN111091420A (en) | Method and device for predicting power price | |
US20160078387A1 (en) | Rule adjustment by visualization of physical location data | |
CN112651315A (en) | Information extraction method and device of line graph, computer equipment and storage medium | |
JP5892094B2 (en) | Graph display control device, graph display control method, and graph display control program | |
US11704730B1 (en) | Systems and methods for generating account forecast alerts | |
CN107831965A (en) | A kind of method and device of presentation of information | |
US20180060281A1 (en) | Graphs with normalized actual value measurements and baseline bands representative of normalized measurement ranges | |
US20220261247A1 (en) | Override process in data analytics processing in risk networks | |
JP2013213919A (en) | Map display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18856971 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25/09/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18856971 Country of ref document: EP Kind code of ref document: A1 |