CN112579067A - Bullet picture display method and device - Google Patents

Bullet picture display method and device Download PDF

Info

Publication number
CN112579067A
CN112579067A CN201910945567.9A CN201910945567A CN112579067A CN 112579067 A CN112579067 A CN 112579067A CN 201910945567 A CN201910945567 A CN 201910945567A CN 112579067 A CN112579067 A CN 112579067A
Authority
CN
China
Prior art keywords
map
bullet
base map
base
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910945567.9A
Other languages
Chinese (zh)
Inventor
翟凯伦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910945567.9A priority Critical patent/CN112579067A/en
Publication of CN112579067A publication Critical patent/CN112579067A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses a bullet picture display method and a bullet picture display device. Wherein, the method comprises the following steps: determining a plurality of value levels of the bullet map, wherein the value levels respectively correspond to different value ranges; generating a base map of the bullet map according to the plurality of numerical value levels; generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; and generating a bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map. The invention solves the technical problem that the bullet graph in the related art cannot embody the hierarchy concept of the current value when being displayed.

Description

Bullet picture display method and device
Technical Field
The invention relates to the field of graph display, in particular to a bullet graph display method and a bullet graph display device.
Background
In business intelligent BI visualization platforms, development of demand is typically based on ECharts charts, which provide dozens of own chart types, based on third party charting, such as: pie charts, line charts, bar charts, etc., but in the related art, the bar charts cannot meet the business requirements of users for bullet charts. Generally, when a bullet map is displayed, the bullet map is displayed through a bar chart, and the general bar chart draws a plurality of bars according to an X axis and a Y axis, but each bar cannot achieve the desired effect of the bullet map, and does not show the level concept of the current value of the bullet map.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a bullet map display method and a bullet map display device, which at least solve the technical problem that the bullet map in the related art cannot embody the level concept of the current value when being displayed.
According to an aspect of an embodiment of the present invention, there is provided a bullet map display method including: determining a plurality of value levels of a bullet map, wherein the value levels respectively correspond to different value ranges; generating a base map of the bullet map according to a plurality of the value hierarchies; generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; and generating the bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map.
Optionally, generating a base map of the bullet map according to a plurality of the value hierarchies includes: determining a base map part corresponding to each numerical level to obtain a plurality of base layer parts; determining the base map according to the plurality of base map parts, wherein the display parameters of different base map parts are different, and the display parameters comprise at least one of the following: color parameters, shape parameters, size parameters.
Optionally, before generating the base map of the bullet map according to the plurality of value hierarchies, the method includes: receiving a selection instruction, wherein the selection instruction is used for determining whether the bullet map is in a coaxial mode; in the case where the bullet map is in the coaxial mode, the sizes of the base map and the base map portion are both referenced to the same coordinate axis; and in the case that the bullet map is in a non-coaxial mode, the sizes of the base map and the base map part respectively refer to a preset coordinate axis, wherein the display sizes of a plurality of base maps are the same, and the display sizes of the base map parts corresponding to a plurality of same levels are the same.
Optionally, in a case that the bullet map is in a non-coaxial mode, the sizes of the base map and the base map portion each refer to a preset coordinate axis and include: the number of the labels of the preset coordinate axes is the same as that of the base map parts, the display length of the base map parts is the same as that of the corresponding preset coordinate axes, and the display length of the base map is the sum of the display lengths of the corresponding base map parts.
Optionally, after generating the base map of the bullet map according to a plurality of value hierarchies, the method further includes: and generating a target line on the base map according to a target value, wherein the numerical range of the target value consists of the numerical ranges corresponding to a plurality of numerical levels.
Optionally, the bottom map and the bottom map portion are both rectangular.
According to another aspect of an embodiment of the present invention, there is also provided a bullet map display apparatus including: the determining module is used for determining a plurality of value levels of the bullet map, and the value levels correspond to different value ranges respectively; a first generation module, configured to generate a base map of the bullet map according to a plurality of the numerical value hierarchies; the second generation module is used for generating the corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; and the third generation module is used for generating the bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map.
Optionally, the first generating module includes: a first determination unit configured to determine a base map portion corresponding to each of the plurality of numerical value hierarchies; a second determining unit, configured to determine the base map according to the base map portions, where display parameters of the base map portions are different, and the display parameters include at least one of: color parameters, shape parameters, size parameters.
According to another aspect of the embodiment of the present invention, there is also provided a storage medium including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the bullet map display method described in any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the bullet map display method according to any one of the above.
In the embodiment of the invention, a plurality of value levels for determining the bullet map are adopted, wherein the value levels correspond to different value ranges respectively; generating a base map of the bullet map according to the plurality of numerical value levels; generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; the bullet map is generated according to the base map and the index map, wherein the bullet map comprises a plurality of data items, the data items correspond to the base map one by one, the map is subjected to hierarchy division, the index map is displayed on the map, and the purpose of visually representing the hierarchy of the index map of the current value is achieved, so that the technical effect of effectively displaying the hierarchy of the current value in the bullet map is achieved, and the technical problem that the hierarchy concept of the current value cannot be reflected when the bullet map in the related technology is displayed is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a bullet map display method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a diagram of a coaxial bullet according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a diagram of a non-coaxial bullet according to an embodiment of the present invention;
fig. 4 is a schematic view of a bullet map display device according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
GVP: an agile BI intelligent visualization platform.
ECharts: and drawing a chart by a third party, and developing the requirement based on the ECharts.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a bullet graph display method, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flow chart of a bullet map display method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, determining a plurality of numerical value levels of the bullet map, wherein the plurality of numerical value levels correspond to different numerical value ranges respectively;
step S104, generating a base map of the bullet map according to a plurality of numerical value levels;
step S106, generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map;
and S108, generating a bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items correspond to the base map one to one.
Through the steps, a plurality of value levels of the bullet map are determined, wherein the value levels correspond to different value ranges respectively; generating a base map of the bullet map according to the plurality of numerical value levels; generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; the bullet map is generated according to the base map and the index map, wherein the bullet map comprises a plurality of data items, the data items correspond to the base map one by one, the map is subjected to hierarchy division, the index map is displayed on the map, and the purpose of visually representing the hierarchy of the index map of the current value is achieved, so that the technical effect of effectively displaying the hierarchy of the current value in the bullet map is achieved, and the technical problem that the hierarchy concept of the current value cannot be reflected when the bullet map in the related technology is displayed is solved.
In the BI visualization platform, although there is no chart type of the bullet map, the Echarts has a custom function, and the bullet map can be generated by defining the data hierarchy, the base map, the index map, and a plurality of data items that the bullet map needs to display.
The base map comprises a plurality of base map parts for representing data ranges of different levels, and an index map determined according to the current value is displayed on the map, and in contrast to the base map, the top of the index map reaches the base map part of the base map, namely the level reached by the current value.
The base map can be rectangular, round-corner rectangular or similar other shapes, and different display pictures can be set on the map according to self definition. The same indicator graph may also display a preset picture or pattern. In addition, the indicator graph can have different appearances according to different levels which can be reached by the indicator graph, and different colors or styles are displayed, so that the bottom graph part corresponding to the indicator graph is more obvious, namely the level where the current value is located is more obvious.
The bullet map can simultaneously display the bullet maps of a plurality of data items, and can simultaneously display related or comparative data, so that the comparison between the data items is more intuitive. The user experience is effectively improved, and the use effect is enhanced.
Optionally, generating a base map of the bullet map according to the plurality of value hierarchies includes: determining a base map part corresponding to each numerical level to obtain a plurality of base map parts; determining a base map from a plurality of base map portions, wherein display parameters of different base map portions are different, the display parameters including at least one of: color parameters, shape parameters, size parameters.
The base map portion may be a plurality of segmented images, and the base map portion is stitched by the plurality of base map portions when displayed. The base map portion may be located above the base map according to a certain priority order, that is, the display of the base map and the base map portion may include a plurality of display map layers, the base map is located on the lowest map layer, and the base map portions are arranged one by one according to the priority order, for example, as the current value increases, the order of the base map portions that the current value reaches in sequence is arranged, and then the base map portion corresponding to the hierarchy that the current value reaches first is arranged, and the position of the map layer where the current value is located is higher.
The display parameters of the base map and the base map part can be size, color and shape, the display parameters can be preset, and the color and the shape adopt a default mode under the condition that the display parameters are not set. For example, the color defaults to a pure color, and the shape defaults to a rectangle. The sizes of the base map and the base map part can also be preset, and under the condition that the sizes of the base map and the base map part are not preset, the system can determine other sizes of the base map and the base map part according to preset numerical values.
Optionally, before generating the base map of the bullet map according to the plurality of numerical value hierarchies, the method includes: receiving a selection instruction, wherein the selection instruction is used for determining whether the bullet map is in a coaxial mode; in the case where the bullet map is in the coaxial mode, the sizes of the parts of the base map and the base map are both referenced to the same coordinate axis; in the case that the bullet graph is in a non-coaxial mode, the sizes of the base graph and the base graph part respectively refer to preset coordinate axes, wherein the display sizes of a plurality of base graphs are the same, and the display sizes of the base graph parts corresponding to the same layer level are the same.
The bullet map provided by this embodiment has two modes, one mode is a coaxial mode, and its mode is shown in fig. 2, and the index map, the base map and the base map portion of all data phases displayed in the bullet map refer to the same coordinate axis, and the index map is displayed, and the base map portion are respectively corresponding to the length of the coordinate axis. The other mode is a non-coaxial mode, the style of the non-coaxial mode is shown in fig. 3, the length of the base map of each data item is the same, the length of the base map part of the same level in the base map is also the same, each base map part has a preset coordinate axis, the unit length of the coordinate axes is different, the display length of the base map and the base map part of each data item is the same along with the change of the span of the numerical range corresponding to the base map part, and the display length of the index map is determined according to the coordinate axis of the base map part where the index map is located.
Optionally, in a case where the bullet map is in a non-coaxial mode, the sizes of the base map and the base map portion each include, with reference to a preset coordinate axis: the number of the labels of the preset coordinate axes is the same as that of the base map parts, the display length of the base map parts is the same as that of the corresponding preset coordinate axes, and the display length of the base map is the sum of the display lengths of the corresponding base map parts.
Optionally, after generating the base map of the bullet map according to the plurality of numerical value hierarchies, the method further includes: and generating a target line on the base map according to the target value, wherein the numerical range of the target value consists of numerical ranges corresponding to a plurality of numerical levels.
The bullet map may further generate a target line for identifying a position of a target value of the current value, where the target line is located in the same display mode as the bottom map and the bottom map portion in the case of coaxiality and different axialities, specifically, a distance between the target line and the starting position of the bottom map, which is a length of the target line from the starting point, is similar to the display mode of the length of the bottom map. The target line may be displayed in a different manner, for example, a vertical line perpendicular to the length of the base map, the length of which is slightly longer than the width of the base map, to indicate the graphic meaning of the cut-off target.
Optionally, the bottom drawing and the bottom drawing part are both rectangular.
It should be noted that this embodiment also provides an alternative implementation, which is described in detail below.
Bullet maps may use custom series (custom) provided by ECharts that allow the user to draw the desired pattern himself, rather than a histogram, which provides a style directly. Custom can be understood to provide a brush for ECharts to draw various shapes, colors, etc. as you want, while a histogram is that ECharts itself has been drawn, and you only need to add data based on it.
The bullet map has more current value columns (columns equivalent to the histogram), bottom columns of various configurable colors, target lines (describing the target value), and multiple X-axis scales at different axes than the normal histogram.
The difference between the current value and the target value is described, and the level at which the current value is located is described. A form of custom drawing of ECharts is used to meet the requirements.
FIG. 2 is a schematic illustration of a diagram of a coaxial bullet according to an embodiment of the present invention; figure 3 is a schematic diagram of a non-coaxial bullet according to an embodiment of the present invention, as shown in figures 2 and 3, which is a diagram component in the GVP, drawn based on Echarts and added with unique logic and configurations. As shown in fig. 2, fields of multiple dimensions-one index or zero dimension-multiple indices may be configured.
The chart is drawn in a self-defining way, ECharts provides a renderItem method (used for drawing a desired sample in a self-defining way), the following graphic conference value logic refers to a code sequence realized from a code angle, and the bullet diagram display method is displayed according to the steps during display, and the specific drawing logic is as follows:
1. the index rectangle, i.e. the index map in the above, i.e. the bullet, is a rectangle with a narrower width and a darker color in fig. 2 and 3, and the length and the starting position are plotted according to the value and index of the index field. The rectangle drawn at this time is similar to a histogram. The drawing mode, namely the steps when the code is implemented: in renderltem, the configurations of index, data value, width zoom ratio, whether coaxial, color, font, etc. of current dataltem are obtained by api.value (), the representative width of the starting point position is obtained by api.coord (), the starting point position, the end point position, the height obtained by api.size (), and the end point position minus the representative width of the starting point position, so as to draw a rectangle, and whether coaxial or not is judged, and the calculation ratio is calculated at different axes, the target value in the item is divided by the maximum target value of all field data, and the divided value of the current value and the maximum current value, and the current value width used for adjusting the different axes is used to set the priority of the rectangle color by api.style, # for example: when the colors are different, the priority of the leftmost color block is high, the priority of the rightmost color block is low, the coverage of different colors is realized, and the priority of the index rectangle is highest.
2. And drawing a target line, wherein the position and the length of the target line are drawn according to the target value field value, the index and the width ratio of the index, and the length of the target line is 1.1 times of that of the bottom graph rectangle 3. At this time, a target line determined based on the target value field is drawn, and if the target value is not set, the drawing is not performed. The drawing logic is similar to the index rectangle except that the line has no definition of width and height, but four coordinate points
3. The base rectangle, such as the multi-segment rectangle in fig. 2 and fig. 3, is drawn according to the target value, index, and color interval configured in style editing, and has a length 2.5 times that of the initial index rectangle 1, the starting position, and the different color. In this case, the pillars are drawn according to the target value field and the color arrangement, and if the target value is not arranged, the pillars are not drawn. Rendering logic, i.e., steps when implemented from code: the drawing mode of the rectangle is similar to an index rectangle, but when the axes are different, one more logic is added, a target value or a current value is obtained when the axes are different, the product of the ratio of the third to the target value or the current value is obtained to obtain the total rectangle width, the width and the target value or the current value are equally divided into 5 parts, each X-axis scale mark used for drawing the axes uses a text type, the text (namely the value obtained by dividing the current value of the target value or by 5 and superposing the current value) is defined, an X-coordinate point (the value obtained by dividing the current value of the target value or by 5 and superposing the current value) is defined, and a y-coordinate point (the half of the height
4. The legend, that is, the hierarchical concept corresponding to the above-mentioned base map portion, for example, the top difference, good, and general in fig. 2 and fig. 3, draws its color and prompt text according to the color interval configured in the style editing. The legend provided by ECharts is used and its color and text are dynamically set according to the user's configuration.
And 5, respectively displaying the X axis and the Y axis according to the index values and the dimension data.
6. When style editing sets the axes off, the chart appears as shown in FIG. 3. At this time, each piece of data has its own X axis, the position of the target line is changed to the rightmost position, and the current value is drawn according to the ratio of the target value, which is different from the case where the data is drawn according to the same X axis when the data is coaxial. And a plurality of X-axis labels are divided into 5 parts based on the value of each target value rectangle, and five parts of scale labels are respectively drawn under each rectangle equally. The drawing logic is detailed in the drawing steps of the base diagram rectangle.
This embodiment has a different concept of axes. In this embodiment, things similar to legends show states of different color intervals, and both text and color are editable. The concept of the current hierarchy is embodied, for example, poor, normal, and good at the top of fig. 2 and 3.
The chart may configure the bullet, and target line colors at the color-target, color-target values.
In the style editing, a legend display position, a text style, various configurations of an X axis and a Y axis, a bottom column color interval configuration and the like can be configured.
The embodiment can very intuitively display the difference between the current value and the target value and describe the level of the current value.
Fig. 4 is a schematic view of a bullet map display apparatus according to an embodiment of the present invention, and as shown in fig. 4, according to another aspect of the embodiment of the present invention, there is also provided a bullet map display apparatus including: a determination module 42, a first generation module 44, a second generation module 46 and a third generation module 48, which are described in detail below.
A determining module 42, configured to determine a plurality of value levels of the bullet map, where the value levels correspond to different value ranges respectively; a first generating module 44, connected to the determining module 42, for generating a base map of the bullet map according to a plurality of value hierarchies; a second generating module 46, connected to the first generating module 44, for generating a corresponding indicator diagram according to the indicator data of the bullet diagram, wherein the indicator diagram is displayed on the base diagram; and the third generation module 48 and the second generation module 46 are connected to generate a bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items correspond to the base map one by one.
By the device, a plurality of value levels of the bullet map are determined by the determining module 42, wherein the value levels correspond to different value ranges respectively; the first generation module 44 generates a base map of the bullet map according to the plurality of numerical value hierarchies; the second generating module 46 generates a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; the third generating module 48 generates a bullet map according to the base map and the indicator map, wherein the bullet map includes a plurality of data items, and the data items correspond to the base map one to one, and the purpose of visually representing the level of the indicator map of the current value is achieved by hierarchically dividing the map and displaying the indicator map on the map, so that the technical effect of effectively displaying the level of the current value in the bullet map is achieved, and the technical problem that the bullet map in the related art cannot embody the level concept of the current value when displayed is solved.
The data processing apparatus comprises a processor and a memory, wherein the determining module 42, the first generating module 44, the second generating module 46 and the third generating module 48 are stored in the memory as program module units, and the processor executes the program module units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the Wien diagram and the keywords are displayed simultaneously by adjusting the kernel parameters, so that the use effect is improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
Optionally, the first generating module includes: the first determining unit is used for determining bottom map parts corresponding to a plurality of numerical value hierarchies respectively; a second determining unit, configured to determine the base map according to the plurality of base map portions, where display parameters of the plurality of base map portions are different, and the display parameters include at least one of: color parameters, shape parameters, size parameters.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the apparatus in which the storage medium is located is controlled to execute the bullet map display method of any one of the above when the program is executed.
According to another aspect of the embodiments of the present invention, there is also provided a processor for executing a program, where the program executes to perform the bullet map display method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the bullet map display method according to any one of the above.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
determining a plurality of value levels of the bullet map, wherein the value levels respectively correspond to different value ranges; generating a base map of the bullet map according to the plurality of numerical value levels; generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; and generating a bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map.
Optionally, generating a base map of the bullet map according to the plurality of value hierarchies includes: determining a base map part corresponding to each numerical level to obtain a plurality of base map parts; determining a base map from a plurality of base map portions, wherein display parameters of different base map portions are different, the display parameters including at least one of: color parameters, shape parameters, size parameters.
Optionally, before generating the base map of the bullet map according to the plurality of numerical value hierarchies, the method includes: receiving a selection instruction, wherein the selection instruction is used for determining whether the bullet map is in a coaxial mode; in the case where the bullet map is in the coaxial mode, the sizes of the parts of the base map and the base map are both referenced to the same coordinate axis; in the case that the bullet graph is in a non-coaxial mode, the sizes of the base graph and the base graph part respectively refer to preset coordinate axes, wherein the display sizes of a plurality of base graphs are the same, and the display sizes of the base graph parts corresponding to the same layer level are the same.
Optionally, in a case where the bullet map is in a non-coaxial mode, the sizes of the base map and the base map portion each include, with reference to a preset coordinate axis: the number of the labels of the preset coordinate axes is the same as that of the base map parts, the display length of the base map parts is the same as that of the corresponding preset coordinate axes, and the display length of the base map is the sum of the display lengths of the corresponding base map parts.
Optionally, after generating the base map of the bullet map according to the plurality of numerical value hierarchies, the method further includes: and generating a target line on the base map according to the target value, wherein the numerical range of the target value consists of numerical ranges corresponding to a plurality of numerical levels.
Optionally, the bottom drawing and the bottom drawing part are both rectangular.
The device in the application can be a server, a PC, a PAD, a mobile phone and the like.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
determining a plurality of value levels of the bullet map, wherein the value levels respectively correspond to different value ranges; generating a base map of the bullet map according to the plurality of numerical value levels; generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map; and generating a bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map.
Optionally, generating a base map of the bullet map according to the plurality of value hierarchies includes: determining a base map part corresponding to each numerical level to obtain a plurality of base map parts; determining a base map from a plurality of base map portions, wherein display parameters of different base map portions are different, the display parameters including at least one of: color parameters, shape parameters, size parameters.
Optionally, before generating the base map of the bullet map according to the plurality of numerical value hierarchies, the method includes: receiving a selection instruction, wherein the selection instruction is used for determining whether the bullet map is in a coaxial mode; in the case where the bullet map is in the coaxial mode, the sizes of the parts of the base map and the base map are both referenced to the same coordinate axis; in the case that the bullet graph is in a non-coaxial mode, the sizes of the base graph and the base graph part respectively refer to preset coordinate axes, wherein the display sizes of a plurality of base graphs are the same, and the display sizes of the base graph parts corresponding to the same layer level are the same.
Optionally, in a case where the bullet map is in a non-coaxial mode, the sizes of the base map and the base map portion each include, with reference to a preset coordinate axis: the number of the labels of the preset coordinate axes is the same as that of the base map parts, the display length of the base map parts is the same as that of the corresponding preset coordinate axes, and the display length of the base map is the sum of the display lengths of the corresponding base map parts.
Optionally, after generating the base map of the bullet map according to the plurality of numerical value hierarchies, the method further includes: and generating a target line on the base map according to the target value, wherein the numerical range of the target value consists of numerical ranges corresponding to a plurality of numerical levels.
Optionally, the bottom drawing and the bottom drawing part are both rectangular.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in this embodiment, the computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A bullet map display method, comprising:
determining a plurality of value levels of a bullet map, wherein the value levels respectively correspond to different value ranges;
generating a base map of the bullet map according to a plurality of the value hierarchies;
generating a corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map;
and generating the bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map.
2. The method of claim 1, wherein generating a base map of the bullet map based on a plurality of the value hierarchies comprises:
determining a base map part corresponding to each numerical level to obtain a plurality of base layer parts;
determining the base map according to the plurality of base map parts, wherein the display parameters of different base map parts are different, and the display parameters comprise at least one of the following: color parameters, shape parameters, size parameters.
3. The method of claim 2, wherein generating the base map of the bullet map prior to generating the base map of the bullet map according to the plurality of numerical value hierarchies comprises:
receiving a selection instruction, wherein the selection instruction is used for determining whether the bullet map is in a coaxial mode;
in the case where the bullet map is in the coaxial mode, the sizes of the base map and the base map portion are both referenced to the same coordinate axis;
and in the case that the bullet map is in a non-coaxial mode, the sizes of the base map and the base map part respectively refer to a preset coordinate axis, wherein the display sizes of a plurality of base maps are the same, and the display sizes of the base map parts corresponding to a plurality of same levels are the same.
4. The method of claim 3, wherein, in the case where the bullet map is in a non-coaxial mode, the dimensions of the base map and the base map portion each with reference to a predetermined coordinate axis comprise:
the number of the labels of the preset coordinate axes is the same as that of the base map parts, the display length of the base map parts is the same as that of the corresponding preset coordinate axes, and the display length of the base map is the sum of the display lengths of the corresponding base map parts.
5. The method of claim 1, further comprising, after generating a base map of the bullet map according to a plurality of the value hierarchies:
and generating a target line on the base map according to a target value, wherein the numerical range of the target value consists of the numerical ranges corresponding to a plurality of numerical levels.
6. The method according to any one of claims 1 to 5, wherein the base map and the base map portion are both rectangular.
7. A bullet map display device, comprising:
the determining module is used for determining a plurality of value levels of the bullet map, and the value levels correspond to different value ranges respectively;
a first generation module, configured to generate a base map of the bullet map according to a plurality of the numerical value hierarchies;
the second generation module is used for generating the corresponding index map according to the index data of the bullet map, wherein the index map is displayed on the base map;
and the third generation module is used for generating the bullet map according to the base map and the index map, wherein the bullet map comprises a plurality of data items, and the data items are in one-to-one correspondence with the base map.
8. The apparatus of claim 7, wherein the first generating module comprises:
a first determination unit configured to determine a base map portion corresponding to each of the plurality of numerical value hierarchies;
a second determining unit, configured to determine the base map according to the base map portions, where display parameters of the base map portions are different, and the display parameters include at least one of: color parameters, shape parameters, size parameters.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein a device in which the storage medium is located is controlled to perform the bullet map display method according to any one of claims 1 to 6 when the program is executed.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the bullet map display method of any one of claims 1-6.
CN201910945567.9A 2019-09-30 2019-09-30 Bullet picture display method and device Pending CN112579067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945567.9A CN112579067A (en) 2019-09-30 2019-09-30 Bullet picture display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945567.9A CN112579067A (en) 2019-09-30 2019-09-30 Bullet picture display method and device

Publications (1)

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

Family

ID=75116911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945567.9A Pending CN112579067A (en) 2019-09-30 2019-09-30 Bullet picture display method and device

Country Status (1)

Country Link
CN (1) CN112579067A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648567A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Data acquisition method and device
US20170147293A1 (en) * 2015-11-23 2017-05-25 International Business Machines Corporation Defining Metrics Thresholds for Ranges Using a Parameterized Line of Text Synchronized with an Interactive Display
CN107423322A (en) * 2017-03-31 2017-12-01 广州视源电子科技股份有限公司 The display methods and device of the label nesting level of Webpage
CN107728201A (en) * 2017-09-29 2018-02-23 中国石油化工股份有限公司 A kind of two-dimension earthquake profile drawing method based on Web
CN108460087A (en) * 2018-01-22 2018-08-28 北京邮电大学 Heuristic high dimensional data visualization device and method
US20190042632A1 (en) * 2017-08-03 2019-02-07 Sap Se Uniform chart formatting based on semantics in data models
CN109656665A (en) * 2018-12-20 2019-04-19 成都四方伟业软件股份有限公司 A kind of visual presentation method of data, component and readable storage medium storing program for executing
CN109871417A (en) * 2018-12-29 2019-06-11 国家开发银行 The metadata visualization map constructing method and system of knowledge based map
CN110019974A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 Implementation method and device are bored under chart

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648567A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Data acquisition method and device
US20170147293A1 (en) * 2015-11-23 2017-05-25 International Business Machines Corporation Defining Metrics Thresholds for Ranges Using a Parameterized Line of Text Synchronized with an Interactive Display
CN107423322A (en) * 2017-03-31 2017-12-01 广州视源电子科技股份有限公司 The display methods and device of the label nesting level of Webpage
US20190042632A1 (en) * 2017-08-03 2019-02-07 Sap Se Uniform chart formatting based on semantics in data models
CN107728201A (en) * 2017-09-29 2018-02-23 中国石油化工股份有限公司 A kind of two-dimension earthquake profile drawing method based on Web
CN110019974A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 Implementation method and device are bored under chart
CN108460087A (en) * 2018-01-22 2018-08-28 北京邮电大学 Heuristic high dimensional data visualization device and method
CN109656665A (en) * 2018-12-20 2019-04-19 成都四方伟业软件股份有限公司 A kind of visual presentation method of data, component and readable storage medium storing program for executing
CN109871417A (en) * 2018-12-29 2019-06-11 国家开发银行 The metadata visualization map constructing method and system of knowledge based map

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JIANGSR: "fineReport文档,历史版本7, 子弹图", pages 1 - 5, Retrieved from the Internet <URL:https://help.fanruan.com/finereport/edition-view-20066-7.html> *
章锐;陈树勇;刘道伟;梁辰;侯金秀;封一贤;: "基于ECharts的电网Web可视化研究及应用", 电测与仪表, no. 19 *

Similar Documents

Publication Publication Date Title
JP6768695B2 (en) Methods and devices for generating composite pictures
CN110717005B (en) Thermodynamic diagram texture generation method, device and equipment
CN105354022A (en) Generation method and device of page layout file
US8421816B1 (en) Selection of colors
CN110990516A (en) Map data processing method and device and server
CN109993822B (en) Ink and wash style rendering method and device
CN109388306B (en) Information display method and device
CN108153572A (en) GIS display methods, device and system
CN107168961B (en) Data display method and device for chart
CN110363837A (en) The processing method and processing device of texture image, electronic equipment, storage medium in game
CN107526576B (en) Method and device for displaying view components of page
CN108429905B (en) Naked eye 3D display method and device, electronic equipment and storage medium
CN112579067A (en) Bullet picture display method and device
CN111291543A (en) Data display method and device, storage medium and processor
CN114238677A (en) Multi-view display method, device, equipment and medium
CN113918543A (en) Chart display method and device
CN108765527B (en) Animation display method, animation display device, electronic equipment and storage medium
CN111967702A (en) Data processing method and system
CN106371622B (en) Input method and input device
CN111382037B (en) Application performance management information display method and device, equipment and storage medium
CN112579083B (en) Image display method, device, electronic equipment and storage medium
CN110781652B (en) Method and device for drawing particles and light effects on columnar chart
CN113763516A (en) Animation presentation method and device of material marking points based on graphics
CN114359094A (en) Image processing method, device, equipment and storage medium
CN112748917A (en) Chart display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination