CN107103010B - Visualized data processing method and device - Google Patents
Visualized data processing method and device Download PDFInfo
- Publication number
- CN107103010B CN107103010B CN201610099797.4A CN201610099797A CN107103010B CN 107103010 B CN107103010 B CN 107103010B CN 201610099797 A CN201610099797 A CN 201610099797A CN 107103010 B CN107103010 B CN 107103010B
- Authority
- CN
- China
- Prior art keywords
- boundary
- blank
- value
- data
- adjusting
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title description 12
- 238000000034 method Methods 0.000 claims abstract description 57
- 238000012545 processing Methods 0.000 claims abstract description 30
- 230000000007 visual effect Effects 0.000 claims abstract description 12
- 238000010586 diagram Methods 0.000 claims description 34
- 238000009877 rendering Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000012163 sequencing technique Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 14
- 230000015654 memory Effects 0.000 description 23
- 230000000694 effects Effects 0.000 description 16
- 238000012800 visualization Methods 0.000 description 9
- 238000013079 data visualisation Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000000638 solvent extraction Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000002860 competitive effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/904—Browsing; Visualisation therefor
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method and a device for processing visual data. Wherein, the method comprises the following steps: acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; and when the display pixels corresponding to the boundary value field meet the preset conditions, triggering to adjust the linear proportion of one or more boundary blank fields contained in the graph. The invention solves the technical problem that the display deviation occurs in the data display process due to the extreme value in the visual data set.
Description
Technical Field
The invention relates to the field of data, in particular to a method and a device for processing visualized data.
Background
With the advent of the big data age, data has become one of the most competitive resources in various industries, and thus data mining, big data analysis and data visualization have gradually developed into key technologies or core technologies of various enterprises. The chart is used as a main display mode of data visualization on a webpage or a terminal, and is widely applied to display of data on the webpage or the terminal, so that a user can visually and accurately know the data condition.
Graphs of data are often used to state magnitude or trend of change of values, for example: a line graph, a bar graph, a scatter graph, etc., however, when describing numerical values, since extreme values, i.e., data deviating from a normal data field, may appear in the numerical values, since the graph in the prior art displays a situation that it is difficult for a user to recognize a part of data due to poor adaptivity, it is easy to cause. For example, there is a data set a ═ 7.0, 6.9, 19.5, 14.5, 18.2, 21.5, 25.2, 26.5, 2300.3, 18.3, 13.9, 9.6, fig. 1 is a broken line diagram of the data set a according to the prior art, and as described in connection with fig. 1, since the extreme value 2300.3 appears in the data set a, and is greatly different from other data, the other data are made to behave almost close to 0 in the broken line diagram, and it is difficult for a user to distinguish other values than 2300.3 when reading the broken line diagram. There are two other data sets B {700.0, 600.9, 900.5, 1400.5, 1800.2, 2100.5, 2500.2, 2600.5, 2300.3, 1800.3, 1300.9,900.6} and data set C { -0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 12.1, 14.1, 8.6, 2.5}, fig. 2 is a broken line diagram of data set B and data set C according to the prior art, and as shown in fig. 2, when it is necessary to make data set B and data set C appear simultaneously in the same graph, the data in data set C is close to 0 because the values in data set B are greatly different from the values in data set C, so that the user cannot distinguish the data in data set C.
Aiming at the problem that display deviation occurs in the data display process due to extreme values in the visual data set, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing visual data, which are used for at least solving the technical problem that display deviation occurs in the data display process due to extreme values in a visual data set.
According to an aspect of the embodiments of the present invention, there is provided a method for processing visualized data, including: acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; and when the display pixels corresponding to the boundary value field meet the preset conditions, triggering to adjust the linear proportion of one or more boundary blank fields contained in the graph.
According to another aspect of the embodiments of the present invention, there is also provided a processing apparatus for visualizing data, including: the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a data set displayed in a chart, and a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; a dividing module, configured to divide the data set into a plurality of data areas, where the types of the data areas include: a boundary value field containing at least one data value and a boundary blank field without data values; the second acquisition module is used for acquiring display pixels corresponding to the boundary numerical value domain according to at least one data value contained in the boundary numerical value domain; and the triggering module is used for triggering the linear proportion of one or more boundary blank domains contained in the graph to be adjusted when the display pixels corresponding to the boundary value domains meet the preset conditions.
In the embodiment of the invention, a data set displayed in a chart is acquired, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; when the display pixels corresponding to the boundary value field meet the preset condition, a mode of adjusting the linear proportion of one or more boundary blank fields contained in the graph is triggered, the data set is divided into the boundary value field and the boundary blank fields, and the linear proportion of the blank fields contained in the graph is adjusted when the display pixels corresponding to the boundary value field meet the preset condition, so that the purpose of adjusting the linear proportion of the blank fields and improving the visualization effect of the graph is achieved, the technical effect that the display effect of other values is not influenced when extreme values appear in the data set is achieved, and the technical problem that display deviation appears in the data display process due to the fact that the extreme values appear in the visualization data set is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a broken line schematic of a data set A according to the prior art;
FIG. 2 is a broken line schematic of data set B and data set C according to the prior art;
fig. 3 is a block diagram of a hardware structure of a computer terminal of a processing method of visualized data according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of processing visual data according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative partitioning of a data set into a plurality of data regions according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a pixel display according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an alternative visualization data processing according to an embodiment of the application;
FIG. 8 is a flow chart of an alternative method of processing visual data according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a data visualization processing apparatus according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of an alternative data visualization processing apparatus according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an alternative data visualization processing apparatus according to an embodiment of the present application;
FIG. 12 is a schematic structural diagram of an alternative data visualization processing apparatus according to an embodiment of the present application;
FIG. 13 is a schematic diagram of an alternative data visualization processing apparatus according to an embodiment of the present application;
FIG. 14 is a schematic structural diagram of an alternative data visualization processing apparatus according to an embodiment of the present application; and
fig. 15 is a block diagram of a computer terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention 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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. 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.
Example 1
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a method for processing visualized data, the steps illustrated in the flowchart of the drawings being executable by a computer system such as a set of computer executable instructions, and wherein, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described are executed in an order different than that illustrated or described herein.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the application to a computer terminal, fig. 3 is a hardware structure block diagram of the computer terminal of the processing method of visualized data according to the embodiment of the present invention. As shown in fig. 3, the computer terminal 30 may include one or more (only one shown) processors 302 (the processors 302 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 304 for storing data, and a transmission module 306 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 3 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 30 may also include more or fewer components than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
The memory 304 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the processing method of visualized data in the embodiment of the present invention, and the processor 302 executes various functional applications and data processing, i.e. implementing the processing method of visualized data described above, by running the software programs and modules stored in the memory 304. The memory 304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 304 may further include memory located remotely from the processor 302, which may be connected to the computer terminal 30 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 606 is used for receiving or sending data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 60. In one example, the transmission device 606 includes a Network Interface Controller (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 606 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Under the operating environment, the application provides a processing method of visualized data as shown in fig. 4. Fig. 4 is a flowchart of a processing method of visualization data according to a first embodiment of the present invention.
Step S41 is to acquire a data set displayed in the graph, wherein a plurality of data values included in the data set are sequentially mapped on the coordinate axes of the graph according to a predetermined display structure.
The graph can be a line graph, a bar graph, a scatter graph and the like which are used for representing the numerical value size or the variation trend of the data in the data set. The current common graph is generally two dimensions: x-axis, y-axis; when the dimension is increased, the color value or the presentation mode can be used for distinguishing the dimension, such as the color depth, the circular radius and the like, or other charts can be directly combined, such as the combination of a broken line chart and a pie chart and the like.
Step S43, dividing the data set into a plurality of data areas, the types of the data areas including: a boundary value field containing at least one data value and a boundary blank field containing no data value.
In the above step, the data value in An is used as boundary data to divide the data set An, so that at most n-1 data intervals can be obtained, and the n-1 data intervals can cover all the data in the data set An, and it can be considered that a set of data in An as boundary data is a boundary set, a region not including data other than the boundary data among a plurality of regions in the boundary set is a boundary blank region, and a region including data other than the boundary data is a boundary value region.
FIG. 5 is a diagram illustrating an alternative partitioning of a data set into a plurality of data regions according to an embodiment of the present application. In An alternative embodiment, assuming that the data set An is {600,610,780,1000,1002,1010,1160,1180,1500,1600,1800,1850,1810}, the data values 600,780,1000,1180,1500 and 1810 can be selected as boundary data to form a boundary set Bm {600,780,1000,1180,1500, 1810}, where m has a value range of 1 ≦ m ≦ 6, and as shown in fig. 5, the value fields [ B1, B2], [ B3, B4] and [ B5, B6] are boundary value fields with numerical values, and the value fields [ B2, B3] and [ B4, B5] are boundary blank fields with infinite values.
Step S45, obtaining a display pixel corresponding to the boundary value field according to at least one data value included in the boundary value field.
Here, the display pixels corresponding to the boundary value field are pixels of a display device for displaying the graph. Therefore, when the same graph is displayed in different displays, the display pixels corresponding to the obtained boundary value fields are not necessarily the same.
Step S47, when the display pixels corresponding to the boundary value field satisfy the preset condition, triggering to adjust the linear scale of one or more boundary blank fields contained in the graph.
In An alternative embodiment, still taking the data set An as An example, the previous embodiment may know that the value fields [ B1, B2], [ B3, B4] and [ B5, B6] are boundary value fields with numerical values, and the value fields [ B2, B3] and [ B4, B5] are boundary blank fields with five numerical values, that is, the boundary value fields of the data set An are [600,610 ], [780,1000] and [1002,1010], and the boundary blank fields are [610,780] and [1000,1002 ]. Due to the fact that the display area of the graph is limited, when all data of the data set An are displayed on the same graph, the interval between a plurality of numerical values in the boundary data field may be smaller than the preset pixels of the display device, when the interval between the numerical values is smaller than the preset pixels of the display device, the display result is poor, or the numerical trend is not obvious, and due to the fact that no data value exists in the boundary blank field, the linear proportion of the boundary blank field is adjusted.
In another optional embodiment, a preset pixel is taken as two pixels as An example, where the pixel is a basic unit of a display device, a difference between any two values of display pixels in a boundary value domain on the current display device is obtained, and if there is a difference between any two values of display pixels and/or a display pixel of any one data in a data set on the current display device is smaller than two pixels, a display result of the graph on the current display device cannot clearly show each data value of the data set An and a variation trend of the values, and a linear scale of the boundary margin domain should be adjusted.
The method comprises the steps of acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; when the display pixels corresponding to the boundary value field meet the preset condition, a mode of adjusting the linear proportion of one or more boundary blank fields contained in the graph is triggered, the data set is divided into the boundary value field and the boundary blank fields, and the linear proportion of the blank fields contained in the graph is adjusted when the display pixels corresponding to the boundary value field meet the preset condition, so that the purpose of adjusting the linear proportion of the blank fields and improving the visualization effect of the graph is achieved, the technical effect that the display effect of other values is not influenced when extreme values appear in the data set is achieved, and the technical problem that display deviation appears in the data display process due to the fact that the extreme values appear in the visualization data set is solved.
It is easy to note that, in the above-mentioned scheme of the present application, no change is made to data in a data set for display, but only one or more dimensions for displaying the above-mentioned data set are optimized correspondingly, and the above-mentioned optimization process only optimizes dimensions for a boundary blank domain that does not contain a data value, so that the technical purpose of improving the display effect of a chart without changing data in the data set is achieved by the scheme provided by the present application, thereby achieving the technical effect of making the display effect of visualized data better.
Therefore, the technical problem that display deviation occurs in the data display process due to extreme values occurring in the visual data set is solved by the first embodiment provided by the application.
According to the above embodiment of the present application, in step S47, when the display pixels corresponding to the boundary value field satisfy the preset condition, the step of triggering the adjustment of the linear scale of one or more boundary blank fields included in the graph includes:
step S471, determining whether the display pixel corresponding to the boundary value field is smaller than the preset pixel.
It should be noted that, if the display pixel in the boundary value field is greater than or equal to the preset pixel, it may be considered that the value in the boundary value field can be clearly displayed on the graph, and if the display pixel in the boundary value field is smaller than the preset pixel, it may be considered that when the data set is displayed on the graph, the data in the boundary data field may be unrecognizable or the trend of change between the values may be unobvious.
Fig. 6 is a schematic diagram of a pixel display situation according to an embodiment of the present application, as an alternative embodiment, when the preset pixel is 2px, and as shown in fig. 6, the height of the rectangle No. 2 in the figure is 2px, the rectangle No. 1 is smaller than the preset pixel 2px, and the pixels No. 3 to 7 are all larger than the preset pixel 2 px.
In step S473, if the display pixel corresponding to the boundary value field is smaller than the preset pixel, an adjustment instruction is generated.
In an alternative embodiment, referring to fig. 6, if the display pixels corresponding to the boundary value field are shown by the rectangle No. 1 in fig. 6, it is considered that the display pixels corresponding to the boundary value field are smaller than the preset pixels, and the boundary blank field needs to be adjusted.
In step S475, based on the adjustment instruction, the scaling process is triggered to be performed on one or more boundary blank fields in the plurality of data areas, so as to adjust the linear scale of the one or more boundary blank fields in the graph.
In an optional embodiment, an adaptive function of the graph may be set, and a user triggers a boundary and blank field adjustment instruction by selecting a control, scales the boundary and blank field of the graph, and stops scaling when a pixel corresponding to a boundary value field is greater than or equal to a preset pixel.
In another alternative embodiment, adjustment lines may be provided at both ends of the boundary blank field, and the user may adjust the position of the adjustment point through a drag action in the case where it is difficult to recognize a specific value or a variation trend of the value in the boundary value field.
According to the above embodiments of the present application, if the display pixel corresponding to the boundary value field is greater than or equal to the preset pixel, the linear scale of the one or more boundary blank fields in the graph is maintained.
It should be noted that, if the display pixel corresponding to the boundary value field is greater than or equal to the preset pixel, the data in the boundary value field can still be recognized by the user, and the change trend between the data can be more clearly reflected, so that the linear scale of the boundary blank field is maintained.
According to the above embodiment of the present application, step S47, adjusting the linear scale of one or more boundary blank fields contained in the chart includes:
in step S477, the size of the area for displaying the chart is acquired.
Step S479, a preset adjusting proportion value is called according to the size of the area displaying the chart.
Step S4711, scaling the interval width of the one or more boundary blank regions according to the adjustment ratio.
Fig. 7 is a schematic diagram of an alternative processed visualized data according to an embodiment of the present application, and in an alternative embodiment, still taking the data set a in fig. 1 as an example, it can be obtained from fig. 1 that, due to what occurrence of 2300.3 in the data set is extreme, it is difficult to display a trend of changes of other values besides 2300.3 extreme and a specific value, and therefore, it is necessary to adjust the proportion of the boundary blank field in the data set a. First, the area size of the chart is obtained, a preset adjustment proportion is adjusted according to the size of the displayed chart, in this example, the chart is adjusted by using the boundary blank field [26.5, 2300.3] in the data set a as the boundary blank field to be adjusted, and the adjusted result is shown in fig. 7.
It should be noted that the size of the graph display area and the adjustment ratio have a preset corresponding relationship, and after the size of the graph display area is obtained, the display ratio corresponding to the size of the current display area can be searched from the relationship between the size of the graph display area and the adjustment ratio.
According to the above embodiment of the present application, in step S47, when the divided data set includes a plurality of boundary blank fields, triggering the adjustment of the linear scale of one or more boundary blank fields included in the graph includes:
step S4713, acquiring a boundary blank domain meeting the adjustment condition, and adjusting the linear proportion of the boundary blank domain meeting the adjustment condition in the graph; wherein,
acquiring a boundary blank domain meeting an adjusting condition, comprising:
step S47131, using the boundary blank area with the interval value exceeding the preset interval range as the boundary blank area meeting the adjustment condition; or
Step S47133, sorting the plurality of boundary blank domains according to the interval value of each boundary blank domain, and taking one or more boundary blank domains with the highest interval value in the sorting result as the boundary blank domains meeting the adjustment condition; or
Step S47135, comparing the difference between the interval values of any two boundary blank areas with a preset value, and when the difference is greater than or equal to the preset value, taking the boundary blank area with the larger interval value of the two boundary blank areas as the boundary blank area meeting the adjustment condition.
In an alternative embodiment, an interval value for adjusting the boundary blank field is preset, when the interval value of the boundary blank field of the data set is greater than the preset boundary blank field interval value, the boundary blank field is adjusted, and when the interval value of the boundary blank field of the data set is less than or equal to the preset boundary blank field interval value, the boundary blank field is kept not to be adjusted.
In another alternative embodiment, still taking the data set An as An example, sorting the interval sizes of the boundary blank fields [ B2, B3] and [ B4, B5] to obtain [ B4, B5], [ B2, B3], and then selecting [ B4, B5] with a larger region of the boundary blank fields as the boundary blank fields meeting the adjustment condition.
In yet another alternative embodiment, the difference between the interval sizes of [ B2, B3] and [ B4, B5] is calculated and compared with a preset difference, and when the difference between the interval sizes of [ B2, B3] and [ B4, B5] is greater than the preset difference, the [ B4, B5] with a larger margin is determined as the boundary margin satisfying the adjustment condition.
According to the above embodiment of the present application, the display pixel k corresponding to the boundary value field is obtained by calculating according to the following calculation formula:
wherein, BdSum of regions, A, for characterizing a field of boundary valuesMAXFor characterizing the largest value in the data set. A. theMINFor characterizing the smallest value in the data set, len is used to characterize the size of the region where the chart is displayed.
Here, the unit of the area size of the display interface of the graph is a pixel (px).
According to the above embodiments of the present application, the display structure includes any one of the following display types: a line graph, a bar graph and a pie graph, and the coordinate axis is the coordinate axis on any dimension in the multi-dimensional coordinate system of the graph.
According to the above embodiment of the present application, in step S47, after adjusting the linear scale of the one or more boundary blank fields contained in the chart, the method further includes:
step S49, identifying the boundary blank region with the adjusted linear proportion, wherein the identification method includes any one of the following methods: color identification, shape identification, brightness identification and chroma identification.
The purpose of the above steps is to mark the adjusted boundary blank region to avoid confusing the relationship between the extreme value and other values.
In an alternative embodiment, the boundary blank region with the adjusted linear scale may be color-identified, that is, the boundary blank region with the adjusted linear scale is colored, so that the user can recognize the region.
According to the above embodiment of the present application, in step S49, after adjusting the linear scale of the one or more boundary blank fields contained in the chart, the method further includes:
in step S491, the boundary point of the boundary blank region with the linear scale adjusted is determined.
Step S493, drawing a corresponding adjustment line based on the boundary point, wherein the adjustment line is perpendicular to the coordinate axis in the graph.
In an alternative embodiment, shown in connection with fig. 7, the adjustment line is perpendicular to the Y-axis of the coordinate axes.
In step S495, dynamically re-rendering the interval width of the boundary blank domain in the diagram when it is monitored that the adjustment line has a drag event.
In the above step, when it is monitored that the jumper wire is dragged, it may be considered that the user adjusts the interval width of the boundary blank field in the graph by dragging the jumper wire, and after the adjustment of the interval width of the boundary blank field is completed, dynamic rendering processing is performed on the new removed interval width of the boundary blank field, where the method of the dynamic rendering processing may be any one of the methods in step S49, but is not limited to this.
A preferred embodiment of the present application is described in detail below with reference to fig. 8.
S81, An is mapped to the x-axis of the coordinate axes.
Specifically, the data in the data set An is mapped to the x-axis of the coordinate axis according to a predetermined display rule.
S82, setting k to 2 px.
Specifically, in the above step, k is a preset pixel, and the preset pixel is set to be 2 px.
S83, acquiring the boundary blank field of the data set.
Specifically, in the above step, the numerical value in the data set An is taken as a boundary value, the data set is divided into a boundary numerical value field and a blank numerical value field, and a boundary blank field is obtained.
S84, judging whether the data set meets the preset condition.
Specifically, in the above step, the preset condition may be whether the display pixel corresponding to the boundary value field is larger than the preset pixel, if the data set satisfies the preset condition, the step S86 is executed, otherwise, the step S85 is executed.
And S85, keeping the linear scale of the original chart.
And S86, acquiring the boundary blank domain meeting the condition.
Specifically, in the above step, the boundary blank fields satisfying the condition are extracted from all the boundary blank fields of the data set.
And S87, adjusting the boundary blank field meeting the condition.
Specifically, in the above step, adjusting the boundary blank region that satisfies the condition may be adjusting a linear scale of the boundary blank region, for example, the scale of the boundary blank region may be adjusted by zooming a y-axis of a coordinate axis.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided a processing apparatus of visualized data for implementing the processing method of visualized data, as shown in fig. 9, the apparatus including: a first acquisition module 90, a partitioning module 92, a second acquisition module 94 and a triggering module 96,
the first obtaining module 90 is configured to obtain a data set displayed in a graph, where a plurality of data values included in the data set are sequentially mapped on a coordinate axis of the graph according to a predetermined display structure; the dividing module 92 is configured to divide the data set into a plurality of data regions, where the types of the data regions include: a boundary value field containing at least one data value and a boundary blank field without data values; the second obtaining module 94 is configured to obtain a display pixel corresponding to the boundary numerical value field according to at least one data value included in the boundary numerical value field; the triggering module 96 is configured to trigger adjustment of the linear scale of one or more boundary blank fields included in the graph when the display pixels corresponding to the boundary value field satisfy a preset condition.
In An alternative embodiment, still taking the data set An as An example, the previous embodiment may know that the value fields [ B1, B2], [ B3, B4] and [ B5, B6] are boundary value fields with numerical values, and the value fields [ B2, B3] and [ B4, B5] are boundary blank fields with five numerical values, that is, the boundary value fields of the data set An are [600,610 ], [780,1000] and [1002,1010], and the boundary blank fields are [610,780] and [1000,1002 ]. Due to the fact that the display area of the graph is limited, when all data of the data set An are displayed on the same graph, the interval between a plurality of numerical values in the boundary data field may be smaller than the preset pixels of the display device, when the interval between the numerical values is smaller than the preset pixels of the display device, the display result is poor, or the numerical trend is not obvious, and due to the fact that no data value exists in the boundary blank field, the linear proportion of the boundary blank field is adjusted.
In another optional embodiment, a preset pixel is taken as two pixels as An example, where the pixel is a basic unit of a display device, a difference between any two values of display pixels in a boundary value domain on the current display device is obtained, and if there is a difference between any two values of display pixels and/or a display pixel of any one data in a data set on the current display device is smaller than two pixels, a display result of the graph on the current display device cannot clearly show each data value of the data set An and a variation trend of the values, and a linear scale of the boundary margin domain should be adjusted.
The method comprises the steps of acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; when the display pixels corresponding to the boundary value field meet the preset condition, a mode of adjusting the linear proportion of one or more boundary blank fields contained in the graph is triggered, the data set is divided into the boundary value field and the boundary blank fields, and the linear proportion of the blank fields contained in the graph is adjusted when the display pixels corresponding to the boundary value field meet the preset condition, so that the purpose of adjusting the linear proportion of the blank fields and improving the visualization effect of the graph is achieved, the technical effect that the display effect of other values is not influenced when extreme values appear in the data set is achieved, and the technical problem that display deviation appears in the data display process due to the fact that the extreme values appear in the visualization data set is solved.
It is easy to note that, in the above-mentioned scheme of the present application, no change is made to data in a data set for display, but only one or more dimensions for displaying the above-mentioned data set are optimized correspondingly, and the above-mentioned optimization process only optimizes dimensions for a boundary blank domain that does not contain a data value, so that the technical purpose of improving the display effect of a chart without changing data in the data set is achieved by the scheme provided by the present application, thereby achieving the technical effect of making the display effect of visualized data better.
Therefore, the technical problem that display deviation occurs in the data display process due to extreme values occurring in the visual data set is solved by the first embodiment provided by the application.
According to the above embodiment of the present application, as shown in fig. 10, the triggering module 96 includes: a decision block 100, a generation block 102 and an adjustment block 104,
the judging module 100 is configured to judge whether a display pixel corresponding to the boundary value field is smaller than a preset pixel; the generation module 102 generates an adjustment instruction if the display pixel corresponding to the boundary value field is smaller than the preset pixel; the adjusting module 104 triggers scaling of one or more boundary blank fields of the plurality of data regions based on the adjusting instruction to adjust a linear scale of the one or more boundary blank fields in the graph.
It should be noted that, if the display pixel in the boundary value field is greater than or equal to the preset pixel, it may be considered that the value in the boundary value field can be clearly displayed on the graph, and if the display pixel in the boundary value field is smaller than the preset pixel, it may be considered that when the data set is displayed on the graph, the data in the boundary data field may be unrecognizable or the trend of change between the values may be unobvious.
As an alternative embodiment, when the preset pixel is 2px, as shown in fig. 6, the height of the rectangle No. 2 in the figure is 2px, the rectangle No. 1 is smaller than the preset pixel 2px, and the pixels No. 3 to 7 are all larger than the preset pixel 2 px.
In an optional embodiment, an adaptive function of the graph may be set, and a user triggers a boundary and blank field adjustment instruction by selecting a control, scales the boundary and blank field of the graph, and stops scaling when a pixel corresponding to a boundary value field is greater than or equal to a preset pixel.
In another alternative embodiment, adjustment lines may be provided at both ends of the boundary blank field, and the user may adjust the position of the adjustment point through a drag action in the case where it is difficult to recognize a specific value or a variation trend of the value in the boundary value field.
According to the above embodiments of the present application, if the display pixel corresponding to the boundary value field is greater than or equal to the preset pixel, the linear scale of the one or more boundary blank fields in the graph is maintained.
According to the above embodiment of the present application, as shown in fig. 11, the triggering module 96 includes: a third fetch module 110, a recall module 112 and a scaling module 114,
the third obtaining module 110 is configured to obtain a size of an area for displaying a chart; the retrieving module 112 is configured to retrieve a preset adjusting ratio value according to the size of the region where the graph is displayed; the scaling module 114 is configured to scale the interval width of the one or more boundary blank regions according to the scaling value.
In an alternative embodiment, still taking the data set a in fig. 1 as an example, it can be obtained from fig. 1 that, due to the extreme occurrence of 2300.3 in the data set, it is difficult to display the trend of the values and the specific values of the values other than the extreme value of 2300.3, and therefore the proportion of the boundary blank field in the data set a needs to be adjusted. First, the area size of the chart is obtained, a preset adjustment proportion is adjusted according to the size of the displayed chart, in this example, the chart is adjusted by using the boundary blank field [26.5, 2300.3] in the data set a as the boundary blank field to be adjusted, and the adjusted result is shown in fig. 7.
It should be noted that the size of the graph display area and the adjustment ratio have a preset corresponding relationship, and after the size of the graph display area is obtained, the display ratio corresponding to the size of the current display area can be searched from the relationship between the size of the graph display area and the adjustment ratio.
According to the above embodiment of the present application, as shown in fig. 12, when the divided data set includes a plurality of boundary blank fields, the triggering module 96 includes:
a fourth obtaining module 120, configured to obtain the boundary blank region that meets the adjustment condition, and adjust a linear proportion of the boundary blank region that meets the adjustment condition in the graph; the first confirming module 122 is used for confirming the boundary blank domain with the interval value exceeding the preset interval range as the boundary blank domain meeting the adjusting condition; or the second confirming module 124 is configured to sort the plurality of boundary blank fields according to the interval value of each boundary blank field, and confirm one or more boundary blank fields with the highest interval value in the sorting result as the boundary blank fields meeting the adjustment condition; or the third confirming module 126, configured to compare the difference between the interval values of any two boundary blank domains with a preset value, and when the difference is greater than or equal to the preset value, confirm the boundary blank domain with the larger interval value of the two boundary blank domains as the boundary blank domain meeting the adjustment condition.
In an alternative embodiment, an interval value for adjusting the boundary blank field is preset, when the interval value of the boundary blank field of the data set is greater than the preset boundary blank field interval value, the boundary blank field is adjusted, and when the interval value of the boundary blank field of the data set is less than or equal to the preset boundary blank field interval value, the boundary blank field is kept not to be adjusted.
In another alternative embodiment, still taking the data set An as An example, sorting the interval sizes of the boundary blank fields [ B2, B3] and [ B4, B5] to obtain [ B4, B5], [ B2, B3], and then selecting [ B4, B5] with a larger region of the boundary blank fields as the boundary blank fields meeting the adjustment condition.
In yet another alternative embodiment, the difference between the interval sizes of [ B2, B3] and [ B4, B5] is calculated and compared with a preset difference, and when the difference between the interval sizes of [ B2, B3] and [ B4, B5] is greater than the preset difference, the [ B4, B5] with a larger margin is determined as the boundary margin satisfying the adjustment condition.
According to the above embodiment of the present application, as shown in fig. 13, the apparatus further includes:
the calculating module 130 is configured to calculate the display pixel k corresponding to the boundary value field by using the following calculation formula:
wherein, BdSum of regions, A, for characterizing a field of boundary valuesMAXFor characterizing the largest value in the data set. A. theMINFor characterizing the smallest value in the data set, len is used to characterize the size of the region where the chart is displayed.
According to the above embodiments of the present application, the display structure includes any one of the following display types: a line graph, a bar graph and a pie graph, and the coordinate axis is the coordinate axis on any dimension in the multi-dimensional coordinate system of the graph.
According to the above embodiment of the present application, after adjusting the linear scale of the one or more boundary blank fields contained in the graph, the method further includes: identifying the boundary blank domain with the adjusted linear proportion, wherein the identification mode comprises any one of the following modes: color identification, shape identification, brightness identification and chroma identification.
According to the above embodiment of the present application, as shown in fig. 14, the apparatus further includes: a determination module 140, a drawing module 142, and a rendering module 144.
The determining module 140 is configured to determine a boundary point of the boundary blank region with the linear scale adjusted; a drawing module 142, configured to draw a corresponding adjustment line based on the boundary point, where the adjustment line is perpendicular to the coordinate axis in the graph; and the rendering module 144 is configured to dynamically re-render the interval width of the boundary blank domain in the diagram under the condition that it is monitored that the adjustment line has a drag event.
Example 3
The embodiment of the invention can provide a computer terminal which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the processing method of visualized data of an application program: acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; and when the display pixels corresponding to the boundary value field meet the preset conditions, triggering to adjust the linear proportion of one or more boundary blank fields contained in the graph.
Alternatively, fig. 15 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 15, the computer terminal a may include: one or more processors 151 (only one shown), a memory 153, and a transmission device 155.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for processing visualized data in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implements the above-mentioned method for processing visualized data. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located from the processor, and these remote memories may be connected to terminal a through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; and when the display pixels corresponding to the boundary value field meet the preset conditions, triggering to adjust the linear proportion of one or more boundary blank fields contained in the graph.
Optionally, the processor may further execute the program code of the following steps: judging whether the display pixel corresponding to the boundary numerical field is larger than or equal to a preset pixel or not; if the display pixel corresponding to the boundary numerical field is larger than or equal to the preset pixel, generating an adjusting instruction; and triggering one or more boundary blank fields in the plurality of data areas to be subjected to scaling processing based on the adjusting instruction so as to adjust the linear proportion of the one or more boundary blank fields in the diagram.
Optionally, the processor may further execute the program code of the following steps: and if the display pixel corresponding to the boundary value field is smaller than the preset pixel, maintaining the linear proportion of one or more boundary blank fields in the chart.
Optionally, the processor may further execute the program code of the following steps: acquiring the size of an area for displaying a chart; the method comprises the steps that a preset adjusting proportion value is adjusted according to the size of a region for displaying a chart; and scaling the interval width of the one or more boundary blank areas according to the adjusting proportion value.
Optionally, the processor may further execute the program code of the following steps: acquiring a boundary blank domain meeting the adjustment condition, and adjusting the linear proportion of the boundary blank domain meeting the adjustment condition in the chart; the method comprises the steps of obtaining a boundary blank domain meeting an adjustment condition, wherein the boundary blank domain with an interval value exceeding a preset interval range is used as the boundary blank domain meeting the adjustment condition; or sequencing the plurality of boundary blank domains according to the interval value of each boundary blank domain, and taking one or more boundary blank domains with the highest interval value in the sequencing result as the boundary blank domains meeting the adjustment condition; or comparing the difference value of the interval values of any two boundary blank domains with a preset value, and when the difference value is greater than or equal to the preset value, taking the boundary blank domain with the larger interval value of the two boundary blank domains as the boundary blank domain meeting the adjustment condition.
Optionally, the processor may further execute the program code of the following steps: and calculating to obtain a display pixel k corresponding to the boundary numerical value field by the following calculation formula:
wherein, BdSum of regions, A, for characterizing a field of boundary valuesMAXFor characterizing the largest value in the data set. A. theMINFor characterizing the smallest value in the data set, len is used to characterize the size of the region where the chart is displayed.
Optionally, the processor may further execute the program code of the following steps: the display structure comprises any one of the following display types: a line graph, a bar graph and a pie graph, and the coordinate axis is the coordinate axis on any dimension in the multi-dimensional coordinate system of the graph.
Optionally, the processor may further execute the program code of the following steps: after adjusting the linear scale of the one or more bounding blank fields contained in the graph, the method further comprises: identifying the boundary blank domain with the adjusted linear proportion, wherein the identification mode comprises any one of the following modes: color identification, shape identification, brightness identification and chroma identification.
Optionally, the processor may further execute the program code of the following steps: determining boundary points of the boundary blank domain with the linear proportion adjusted; drawing corresponding adjusting lines based on the boundary points, wherein the adjusting lines are perpendicular to the coordinate axes in the diagram; and under the condition that a drag event of the adjusting line is monitored, dynamically re-rendering the interval width of the boundary blank domain in the diagram.
The embodiment of the invention provides a scheme of a visual data processing method. The data set is divided into a boundary value domain and a boundary blank domain, and the linear proportion of the blank domain contained in the chart is adjusted when the display pixels corresponding to the boundary value domain meet the preset conditions, so that the aim of adjusting the linear proportion of the blank domain and improving the visualization effect of the chart is fulfilled, and the technical problem that the display deviation occurs in the data display process due to the extreme value occurring in the visualized data set is solved.
It can be understood by those skilled in the art that the structure shown in fig. 15 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 15 is a diagram illustrating a structure of the electronic device. For example, the computer terminal 15 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 15, or have a different configuration than shown in FIG. 15.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 4
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the processing method of the visualized data provided in the first embodiment.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program codes for performing the following steps: acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure; dividing the data set into a plurality of data areas, wherein the types of the data areas comprise: a boundary value field containing at least one data value and a boundary blank field without data values; acquiring a display pixel corresponding to the boundary numerical value field according to at least one data value contained in the boundary numerical value field; and when the display pixels corresponding to the boundary value field meet the preset conditions, triggering to adjust the linear proportion of one or more boundary blank fields contained in the graph.
Optionally, the storage medium is further configured to store program codes for performing the following steps: judging whether the display pixel corresponding to the boundary numerical field is larger than or equal to a preset pixel or not; if the display pixel corresponding to the boundary numerical field is larger than or equal to the preset pixel, generating an adjusting instruction; and triggering one or more boundary blank fields in the plurality of data areas to be subjected to scaling processing based on the adjusting instruction so as to adjust the linear proportion of the one or more boundary blank fields in the diagram.
Optionally, the storage medium is further configured to store program codes for performing the following steps: and if the display pixel corresponding to the boundary value field is smaller than the preset pixel, maintaining the linear proportion of one or more boundary blank fields in the chart.
Optionally, the storage medium is further configured to store program codes for performing the following steps: acquiring the size of an area for displaying a chart; the method comprises the steps that a preset adjusting proportion value is adjusted according to the size of a region for displaying a chart; and scaling the interval width of the one or more boundary blank areas according to the adjusting proportion value.
Optionally, the storage medium is further configured to store program codes for performing the following steps: acquiring a boundary blank domain meeting the adjustment condition, and adjusting the linear proportion of the boundary blank domain meeting the adjustment condition in the chart; the method comprises the steps of obtaining a boundary blank domain meeting an adjustment condition, wherein the boundary blank domain with an interval value exceeding a preset interval range is used as the boundary blank domain meeting the adjustment condition; or sequencing the plurality of boundary blank domains according to the interval value of each boundary blank domain, and taking one or more boundary blank domains with the highest interval value in the sequencing result as the boundary blank domains meeting the adjustment condition; or comparing the difference value of the interval values of any two boundary blank domains with a preset value, and when the difference value is greater than or equal to the preset value, taking the boundary blank domain with the larger interval value of the two boundary blank domains as the boundary blank domain meeting the adjustment condition.
Optionally, the storage medium is further configured to store program codes for performing the following steps: and calculating to obtain a display pixel k corresponding to the boundary numerical value field by the following calculation formula:
wherein, BdSum of regions, A, for characterizing a field of boundary valuesMAXFor characterizing the largest value in the data set. A. theMINFor characterizing the smallest value in the data set, len is used to characterize the size of the region where the chart is displayed.
Optionally, the storage medium is further configured to store program codes for performing the following steps: the display structure comprises any one of the following display types: a line graph, a bar graph and a pie graph, and the coordinate axis is the coordinate axis on any dimension in the multi-dimensional coordinate system of the graph.
Optionally, the storage medium is further configured to store program codes for performing the following steps: after adjusting the linear scale of the one or more bounding blank fields contained in the graph, the method further comprises: identifying the boundary blank domain with the adjusted linear proportion, wherein the identification mode comprises any one of the following modes: color identification, shape identification, brightness identification and chroma identification.
Optionally, the storage medium is further configured to store program codes for performing the following steps: determining boundary points of the boundary blank domain with the linear proportion adjusted; drawing corresponding adjusting lines based on the boundary points, wherein the adjusting lines are perpendicular to the coordinate axes in the diagram; and under the condition that a drag event of the adjusting line is monitored, dynamically re-rendering the interval width of the boundary blank domain in the diagram.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.
Claims (16)
1. A method for processing visual data, comprising:
acquiring a data set displayed in a chart, wherein a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure;
dividing the data set into a plurality of data regions, the types of the data regions including: a boundary value field containing at least one data value and a boundary blank field without data values;
acquiring a display pixel corresponding to the boundary numerical value domain according to the at least one data value contained in the boundary numerical value domain, wherein the display pixel is a pixel of a display device for displaying the chart;
when the display pixels corresponding to the boundary numerical value field meet preset conditions, triggering to adjust the linear proportion of one or more boundary blank fields contained in the diagram;
when the display pixels corresponding to the boundary value field meet a preset condition, the step of triggering the adjustment of the linear proportion of one or more boundary blank fields contained in the graph comprises the following steps:
judging whether the display pixel corresponding to the boundary numerical value field is smaller than a preset pixel or not;
if the display pixel corresponding to the boundary numerical field is smaller than the preset pixel, generating an adjusting instruction;
triggering one or more boundary blank fields in the plurality of data areas to be subjected to scaling processing based on the adjusting instruction so as to adjust the linear scale of the one or more boundary blank fields in the chart.
2. The method of claim 1, wherein if the display pixel corresponding to the boundary value field is greater than or equal to the preset pixel, the linear scale of the one or more boundary blank fields in the graph is maintained.
3. The method of claim 1, wherein adjusting the linear scale of one or more bounding blank fields contained in the graph comprises:
acquiring the size of an area for displaying the chart;
calling a preset adjusting proportion value according to the size of the area displaying the chart;
and scaling the interval widths of the one or more boundary blank areas according to the adjusting proportion value.
4. The method of claim 1, wherein triggering adjustment of the linear scale of one or more boundary blank fields contained in the graph in the case that a plurality of boundary blank fields are contained in the partitioned data set comprises:
acquiring a boundary blank field meeting an adjusting condition, and adjusting the linear proportion of the boundary blank field meeting the adjusting condition in the chart; wherein,
acquiring a boundary blank domain meeting an adjusting condition, comprising:
taking the boundary blank domain with the interval value exceeding a preset interval range as the boundary blank domain meeting the adjustment condition; or
Sequencing the plurality of boundary blank domains according to the interval value of each boundary blank domain, and taking one or more boundary blank domains with the highest interval value in the sequencing result as the boundary blank domains meeting the adjustment condition; or
Comparing the difference value of the interval values of any two boundary blank domains with a preset value, and when the difference value is greater than or equal to the preset value, taking the boundary blank domain with the larger interval value of the two boundary blank domains as the boundary blank domain meeting the adjustment condition.
5. The method according to any one of claims 1 to 4, wherein the display pixel k corresponding to the boundary value field is calculated by the following calculation formula:
wherein, B isdSum of regions for characterizing the boundary value field, AMAXFor characterizing the largest value in said data set, said AMINFor characterizing the smallest value in the data set, and the len for characterizing the size of the area in which the chart is displayed.
6. The method of claim 1, wherein the display structure comprises any one of the following display types: the coordinate axis is the coordinate axis on any dimension in the multi-dimensional coordinate system of the chart.
7. The method of claim 1, wherein after adjusting the linear scale of one or more bounding blank fields contained in the graph, the method further comprises: identifying the boundary blank domain with the adjusted linear proportion, wherein the identification mode comprises any one of the following modes: color identification, shape identification, brightness identification and chroma identification.
8. The method of claim 1, wherein after adjusting the linear scale of one or more bounding blank fields contained in the graph, the method further comprises:
determining boundary points of the boundary blank domain with the linear proportion adjusted;
drawing corresponding adjusting lines based on the boundary points, wherein the adjusting lines are perpendicular to the coordinate axes in the chart;
and dynamically re-rendering the interval width of the boundary blank domain in the diagram under the condition that the adjusting line is dragged is monitored.
9. A device for processing visual data, comprising:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a data set displayed in a chart, and a plurality of data values contained in the data set are sequentially mapped on a coordinate axis of the chart according to a preset display structure;
a dividing module, configured to divide the data set into a plurality of data regions, where the types of the data regions include: a boundary value field containing at least one data value and a boundary blank field without data values;
a second obtaining module, configured to obtain a display pixel corresponding to the boundary value domain according to the at least one data value included in the boundary value domain, where the display pixel is a pixel of a display device used for displaying the graph;
the triggering module is used for triggering the linear proportion of one or more boundary blank domains contained in the diagram to be adjusted when the display pixels corresponding to the boundary numerical value domains meet preset conditions;
wherein the trigger module comprises:
the judging module is used for judging whether the display pixel corresponding to the boundary numerical value field is smaller than a preset pixel or not;
the generating module is used for generating an adjusting instruction if the display pixel corresponding to the boundary numerical value field is smaller than the preset pixel;
an adjusting module, which triggers scaling processing of one or more boundary blank fields in the plurality of data areas based on the adjusting instruction, so as to adjust linear proportion of the one or more boundary blank fields in the diagram.
10. The apparatus of claim 9, wherein if the display pixel corresponding to the boundary value field is greater than or equal to the preset pixel, the linear scale of the one or more boundary blank fields in the graph is maintained.
11. The apparatus of claim 9, wherein the triggering module comprises:
the third acquisition module is used for acquiring the size of an area for displaying the chart;
the calling module is used for calling a preset adjusting proportion value according to the size of the area displaying the chart;
and the scaling module is used for scaling the interval width of the one or more boundary blank areas according to the adjusting proportion value.
12. The apparatus of claim 9, wherein in the case that the partitioned data set includes a plurality of boundary blank fields, the triggering module comprises:
the fourth acquisition module is used for acquiring the boundary blank domain meeting the adjustment condition and adjusting the linear proportion of the boundary blank domain meeting the adjustment condition in the graph; wherein,
acquiring a boundary blank domain meeting an adjusting condition, comprising:
the first confirming module is used for confirming the boundary blank domain with the interval value exceeding the preset interval range as the boundary blank domain meeting the adjusting condition; or
A second confirming module, configured to sort the multiple boundary blank domains according to the interval value of each boundary blank domain, and confirm one or more boundary blank domains with the highest interval value in the sorting result as the boundary blank domains that satisfy the adjustment condition; or
And the third confirming module is used for comparing the difference value of the interval values of any two boundary blank domains with a preset value, and confirming the boundary blank domain with the larger interval value of the two boundary blank domains as the boundary blank domain meeting the adjusting condition when the difference value is larger than or equal to the preset value.
13. The apparatus of any one of claims 9 to 12, further comprising:
the calculation module is used for calculating and obtaining the display pixel k corresponding to the boundary numerical value field through the following calculation formula:
wherein, B isdSum of regions for characterizing the boundary value field, AMAXFor characterizing the largest value in said data set, said AMINFor characterizing the smallest value in the data set, and the len for characterizing the size of the area in which the chart is displayed.
14. The apparatus of claim 9, wherein the display structure comprises any one of the following display types: the coordinate axis is the coordinate axis on any dimension in the multi-dimensional coordinate system of the chart.
15. The apparatus of claim 9, wherein after adjusting the linear scale of one or more boundary blank domains contained in the graph, the boundary blank domains with the adjusted linear scale are identified, wherein the identifying manner includes any one of the following manners: color identification, shape identification, brightness identification and chroma identification.
16. The apparatus of claim 9, wherein after adjusting the linear scale of the one or more bounding blank fields contained in the graph, the apparatus further comprises:
a determining module, configured to determine a boundary point of the boundary blank region with the linear scale adjusted;
the drawing module is used for drawing corresponding adjusting lines based on the boundary points, wherein the adjusting lines are perpendicular to the coordinate axes in the chart;
and the rendering module is used for dynamically re-rendering the interval width of the boundary blank domain in the diagram under the condition that the drag event occurs to the adjusting line is monitored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610099797.4A CN107103010B (en) | 2016-02-23 | 2016-02-23 | Visualized data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610099797.4A CN107103010B (en) | 2016-02-23 | 2016-02-23 | Visualized data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107103010A CN107103010A (en) | 2017-08-29 |
CN107103010B true CN107103010B (en) | 2020-10-27 |
Family
ID=59658764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610099797.4A Active CN107103010B (en) | 2016-02-23 | 2016-02-23 | Visualized data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107103010B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107689070B (en) * | 2017-08-31 | 2021-06-04 | 平安科技(深圳)有限公司 | Chart data structured extraction method, electronic device and computer-readable storage medium |
CN109582750A (en) * | 2018-10-26 | 2019-04-05 | 苏州百卓网络技术有限公司 | The method and device of dangerous source distribution is analyzed based on GIS spatial data |
CN110046184A (en) * | 2019-02-19 | 2019-07-23 | 广州视源电子科技股份有限公司 | Data graph display adjusting method and device, storage medium and computer equipment |
CN111159502A (en) * | 2019-12-27 | 2020-05-15 | 中国银行股份有限公司 | Data processing method and device for visual display |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101441458A (en) * | 2008-12-18 | 2009-05-27 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Visualization apparatus and method for process parameter |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101063972B (en) * | 2006-04-28 | 2010-05-12 | 国际商业机器公司 | Method and apparatus for enhancing visuality of image tree |
-
2016
- 2016-02-23 CN CN201610099797.4A patent/CN107103010B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101441458A (en) * | 2008-12-18 | 2009-05-27 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Visualization apparatus and method for process parameter |
Non-Patent Citations (2)
Title |
---|
Multidimensional Data Medical Dataset Using Interactive Visualization Star Coordinate Technique;Noor Elaiza Abd Khalid 等;《Procedia Computer Science》;20141231;第247页-254页 * |
用于数据挖掘的多维数据可视化技术;黄江涛 等;《网络信息技术》;20051231;第24卷(第3期);第52页-53页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107103010A (en) | 2017-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107103010B (en) | Visualized data processing method and device | |
DE102018008161A1 (en) | Detecting objects using a weakly monitored model | |
US9824470B2 (en) | Use of dynamic numeric axis to indicate and highlight data ranges | |
US10055106B2 (en) | Information display processing system, information display processing method, and program recording medium | |
CN105549936B (en) | Data table display method and device | |
CN108711161A (en) | A kind of image partition method, image segmentation device and electronic equipment | |
CN112965645B (en) | Page dragging method and device, computer equipment and storage medium | |
CN111782758A (en) | Drawing review result viewing method based on CAD and related device | |
CN113449222A (en) | Picture display method, picture display device and electronic equipment | |
US20220319141A1 (en) | Method for processing image, device and storage medium | |
CN114241358A (en) | Equipment state display method, device and equipment based on digital twin transformer substation | |
CN110162549B (en) | Fire data analysis method and device, readable storage medium and terminal equipment | |
CN113345048B (en) | Geographic information image editing method and device and computer equipment | |
CN106933905B (en) | Method and device for monitoring webpage access data | |
CN110795493A (en) | Multi-level index data display method, device, equipment and storage medium | |
CN103744609B (en) | A kind of data extraction method and device | |
CN111831193A (en) | Automatic skin changing method, device, electronic equipment and storage medium | |
US9613427B2 (en) | Information processing method and electronic device | |
CN108170391B (en) | Page display method and device and electronic equipment | |
CN115659900A (en) | Method, apparatus and medium for presenting an integrated circuit layout | |
CN115794245A (en) | Data loading method and device, electronic equipment and storage medium | |
CN115099962A (en) | Financial analysis suggestion method and system for position holding stock | |
CN113591922A (en) | Behavior recognition method and device, electronic equipment and storage medium | |
CN113744396B (en) | Method, device, equipment and storage medium for establishing model based on three-dimensional map | |
CN117291859A (en) | Page abnormality detection method and device, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |