CN111949842A - Bubble chart generation method and device - Google Patents

Bubble chart generation method and device Download PDF

Info

Publication number
CN111949842A
CN111949842A CN201910407976.3A CN201910407976A CN111949842A CN 111949842 A CN111949842 A CN 111949842A CN 201910407976 A CN201910407976 A CN 201910407976A CN 111949842 A CN111949842 A CN 111949842A
Authority
CN
China
Prior art keywords
target
bubble
value
values
sequence
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
CN201910407976.3A
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to CN201910407976.3A priority Critical patent/CN111949842A/en
Publication of CN111949842A publication Critical patent/CN111949842A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a bubble chart generation method and device, and belongs to the field of data charts. The bubble map generation method comprises the following steps: acquiring a target data sequence to be displayed, wherein the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and a dimension field; determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to a target numerical value from the target data sequence according to the selected coordinate system; sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group; determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius; and generating a bubble map in the coordinate system according to the determined bubble radius. The invention can enable the user to quickly and intuitively acquire the data which the user wants to view from the bubble chart.

Description

Bubble chart generation method and device
Technical Field
The invention relates to the field of data charts, in particular to a bubble chart generation method and a bubble chart generation device.
Background
Bubble charts are one of the most important and fundamental classes of data visualization charts, and are one of the most effective available analysis tools, which can intuitively display data contrasts in three dimensions, namely: horizontal axis value, vertical axis value, bubble size. The bubble map is similar to the scatter plot, except that the bubble map allows the addition of an additional variable representing size to the plot, which, in effect, is like plotting a plot containing three variables in two dimensions.
In the existing bubble map creation method, a plurality of target intervals, namely positions or ranges of bubbles in a coordinate system, are determined according to target values, and the bubbles are created in a mapping interval, but the final visual effect is influenced by the characteristics of data, when the data distribution is not uniform or the magnitude difference of the data is large, the bubble map is poor in the overall visual effect, and a user using the bubble map cannot intuitively and quickly obtain the data which the user wants to view from the bubble map, so that the value of the bubble map is reduced.
Disclosure of Invention
The invention aims to provide a bubble map generation method and device, which can enable a user to quickly and intuitively acquire data to be checked from the bubble map and improve the value of the bubble map.
To solve the above technical problem, embodiments of the present invention provide the following technical solutions:
in one aspect, a bubble map generation method is provided, including:
acquiring a target data sequence to be displayed, wherein the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping results need to meet the condition that the target values with the same value are positioned in the same group;
determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius;
generating a bubble map in the coordinate system according to the determined bubble radius.
Further, the determining a coordinate system of the bubble map, and selecting the dimension field corresponding to the target value from the target data sequence according to the selected coordinate system includes any one of:
when the coordinate system of the bubble graph is a geographic coordinate system, selecting at least one geographic dimension from the target data sequence;
when the coordinate system of the bubble map is a Cartesian coordinate system, any one of the following is selected from the target data sequence:
at least two numerical dimensions;
at least two categorical dimensions;
at least one numeric dimension and at least one categorical dimension.
Further, the sorting all the target values in the target data sequence according to the size of the target values, and grouping the sorted target values according to a preset grouping number, where the grouping result needs to satisfy that the target values with the same value are located in the same group includes:
sequencing all target values in the target data sequence according to the size of the target values to obtain a first target value sequence;
merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
generating a third sequence according to the second target numerical value sequence, wherein elements in the third sequence correspond to target numerical values in the second target numerical value sequence one by one, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical value sequence;
grouping the elements in the third sequence according to a preset grouping number p, wherein the sum of the first p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and obtaining a grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
Further, the method further comprises the step of calculating a bubble radius base number, wherein the step of calculating the bubble radius base number comprises the following steps:
calculating the bubble radius base c from pixels included in a rectangular chart area displaying a bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
Further, the determining the bubble radius of each set of target values according to the number of packets and the bubble radius base number includes:
determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
sequentially taking p bubble radius values in the value interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value interval, the p-th bubble radius value is the maximum value of the value interval, and the difference values between the adjacent bubble radius values are equal;
and sequencing p groups of target values in a descending order, wherein the radius of the bubble of the mth group of target values is the mth bubble radius value, and m is an integer which is greater than or equal to 1 and less than or equal to p.
Further, after generating the bubble map in the coordinate system according to the determined bubble radius, the method further comprises at least one of:
receiving a first trigger instruction aiming at a bubble, and displaying a dimension value and a target numerical value of the bubble in a prompt box form;
and receiving a second trigger instruction aiming at a bubble, and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
The embodiment of the present invention further provides a bubble chart generating device, including:
the display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a target data sequence to be displayed, the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
the data selection module is used for determining a coordinate system of the bubble diagram and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
the grouping module is used for sequencing all target values in the target data sequence according to the size of the target values and grouping the sequenced target values according to a preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group;
the bubble radius determining module is used for determining the bubble radius of each group of target values according to the group number and the bubble radius base number, and each group of target values corresponds to the same bubble radius;
and the generating module is used for generating a bubble map in the coordinate system according to the determined bubble radius.
Further, the data selecting module comprises any one of the following units:
a first selecting unit, configured to select any one of the following from the target data sequence when the coordinate system of the bubble map is a cartesian coordinate system:
at least two numerical dimensions;
at least two categorical dimensions;
at least one numerical dimension and at least one categorical dimension;
and the second selecting unit is used for selecting at least one geographical dimension from the target data sequence when the coordinate system of the bubble map is a geographical coordinate system.
Further, the grouping module includes:
the sorting unit is used for sorting all target numerical values in the target data sequence according to the size of the target numerical values to obtain a first target numerical value sequence;
the merging unit is used for merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
a third sequence generating unit, configured to generate a third sequence according to the second target numerical sequence, where elements in the third sequence are in one-to-one correspondence with target numerical values in the second target numerical sequence, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical sequence;
the grouping unit is used for grouping the elements in the third sequence according to a preset grouping number p, the sum of the front p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and the processing unit is used for obtaining the grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
Further, still include:
a calculation module, configured to calculate the bubble radius base c according to pixels included in a rectangular chart area displaying a bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
Further, the bubble radius determination module includes:
a value interval selecting unit for determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
the value taking unit is used for sequentially taking p bubble radius values in the value taking interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value taking interval, the p th bubble radius value is the maximum value of the value taking interval, and the difference values between the adjacent bubble radius values are equal;
and the bubble radius selecting unit is used for sequencing p groups of target values in a sequence from small to large, the bubble radius of the mth group of target values is the mth bubble radius value, and m is an integer which is more than or equal to 1 and less than or equal to p.
Further, the apparatus further comprises at least one of:
the first display module is used for receiving a first trigger instruction aiming at a bubble and displaying the dimension value and the target numerical value of the bubble in a prompt box form;
and the second display module is used for receiving a second trigger instruction aiming at a bubble and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
The embodiment of the present invention further provides a bubble chart generation device, including:
a processor; and
a memory having computer program instructions stored therein,
wherein the computer program instructions, when executed by the processor, cause the processor to perform the steps in the bubble map generation method as described above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the steps in the bubble map generation method described above.
The embodiment of the invention has the following beneficial effects:
in the scheme, all target values in a target data sequence are sequenced according to the size of the target values, and the sequenced target values are grouped according to the preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group, the bubble radius of each group of target values is determined according to the grouping number and the bubble radius base number, and each group of target values corresponds to the same bubble radius, so that the radius of bubbles is irrelevant to the characteristics of the target values; in addition, the present embodiment determines the coordinate system of the bubble map according to the dimensions of the target data sequence, so that the bubble map is not only applicable to the numerical cartesian coordinate system, but also applicable to other types of coordinate systems.
Drawings
FIG. 1 is a schematic flow chart of a method for generating a bubble map according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of selecting a field from a target data sequence;
FIG. 3 is a flow chart illustrating grouping of target values according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating the process of determining the bubble radius for each set of target values according to the present invention;
FIG. 5 is a schematic flow chart of bubble generation according to an embodiment of the present invention;
FIG. 6 is a schematic illustration of a bubble map generated by an embodiment of the present invention;
FIG. 7 is a diagram illustrating a dimension value and a target value of a bubble in a prompt box according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an example of displaying target values of target data in the same group as a bubble in a prompt box according to an embodiment of the present invention;
FIG. 9 is a block diagram of an apparatus for generating a bubble map according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of the composition of a bubble map generating apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
Bubble maps are usually made for two purposes, first, to observe the absolute size of certain data in a particular dimension, e.g., sales of product 7 months, number of purchases in Beijing area, etc.; second, by the relative size of the bubbles, the ranking of certain data under certain dimensions is obtained, e.g., where 20% of the product sales are ranked, where months the worst 10% of the product sales are distributed, etc.
In the existing bubble map creation method, it is disclosed that a plurality of target sections, i.e., positions or ranges of bubbles in a coordinate system, are determined according to target values, and bubbles are created within a mapping section. However, in the prior art, bubbles are only created according to the absolute size of data, so when the data distribution is not uniform or the difference of the order of magnitude of the data is large, the size of the bubbles is too large, and the ranking of the data cannot be intuitively determined from a bubble map.
In addition, the prior art does not explicitly describe how the size of the bubbles is determined; when the data is excessively concentrated in a certain interval, manual intervention is needed to redistribute the target interval until all target values fall into different target intervals, and the bubble map generation efficiency is low; further, the conventional bubble map is applicable only to a numerical cartesian coordinate system, and is not applicable to a category cartesian coordinate system and a geographical (map) coordinate system.
In order to solve the above problem, embodiments of the present invention provide a method and an apparatus for generating a bubble map, which enable a user to quickly and intuitively obtain data that the user wants to view from the bubble map, thereby improving the value of the bubble map.
Example one
An embodiment of the present invention provides a method for generating a bubble chart, as shown in fig. 1, including:
step 101: acquiring a target data sequence to be displayed, wherein the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
the target data to be displayed is typically stored in a relational database in the form of a two-dimensional table, with each column of data being a field. The target data can be divided into two categories, dimensions and metrics. Dimension is the angle of interest to the business, such as time, place, product type, etc., which are commonly used dimension fields. Metrics are statistics of ultimate interest to a business, and are numerical, such as sales, quantity, and so on. As shown in table 1, a, B, and C represent dimension fields, and M represents a metric field, respectively.
TABLE 1
A B C M
a1 b1 c1 m1
a2 b2 c2 m2
an b4 cn mn
The target data sequence to be displayed includes a plurality of sets of target data, each set of target data including fields of (a, B, C, M, …), and the like.
Step 102: determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
the coordinate system of the bubble map includes a polar coordinate system, a cartesian rectangular coordinate system requiring two dimensions and at least one metric to generate the bubble map, and a geographic coordinate system requiring one or two dimensions and at least one metric to generate the bubble map.
Specifically, a coordinate system of the bubble map may be determined according to a business target of the user, for example, if the bubble map is required to display sales of products at a preset location in a preset time period, the selected coordinate system may be a geographic coordinate system, and after the coordinate system is determined, a dimension field corresponding to the target value is selected from the target data sequence according to a dimension required by the coordinate system.
When the coordinate system of the bubble map is a cartesian coordinate system, any one of the following may be selected from the target data sequence: at least two numerical dimensions; at least two categorical dimensions; at least one numeric dimension and at least one categorical dimension. For example, when the coordinate system of the bubble map is a numerical cartesian rectangular coordinate system, the dimension selected from the target data sequence may include at least two numerical dimension fields; when the coordinate system of the bubble graph is a Cartesian rectangular coordinate system of a category type, the dimension selected from the target data sequence can comprise at least two category type dimension fields; when the coordinate system of the bubble map is a geographic coordinate system, the selected dimension may include at least one geographic dimension, such as a dimension field including two latitudes and longitudes or a dimension field of an administrative region.
In a specific example, a method for selecting a field from a target data sequence is shown in fig. 2, and includes the following steps:
step 201: acquiring a target data sequence;
step 202: judging a coordinate system of the bubble map;
step 203: turning to step 204 when the coordinate system is a cartesian coordinate system;
step 204: two dimension fields and a metric field (i.e., a target value) are selected from the target data sequence.
Step 205: when the coordinate system is a geographic coordinate system, turning to step 206 and step 208;
step 206: when the coordinates of the geographic coordinate system are longitude and latitude, turning to step 207;
step 208: when the coordinates of the geographic coordinate system are administrative areas, go to step 209;
step 207: two latitude and longitude dimension fields and a measurement field (namely a target value) are selected from the target data sequence.
Step 209: the dimension field and the measurement field (i.e., the target value) of an administrative region are selected from the target data sequence.
Through the steps, the data required to be input for generating the bubble diagram can be determined.
Step 103: sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping results need to meet the condition that the target values with the same value are positioned in the same group;
specifically, as shown in fig. 3, step 103 may include the following steps:
step 301: sequencing all target values in the target data sequence according to the size of the target values to obtain a first target value sequence;
step 302: merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
step 303: generating a third sequence according to the second target numerical value sequence, wherein elements in the third sequence correspond to target numerical values in the second target numerical value sequence one by one, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical value sequence;
step 304: grouping the elements in the third sequence according to a preset grouping number p, wherein the sum of the first p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
step 305: and obtaining a grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
Since the metric field (i.e. the target value) is of the numeric typeTherefore, all the target values can be sorted according to the size of the target values to obtain the first target value sequence. For example, the selected metrics field includes: m is1,m2,…,mnThe first target value sequence M ═ M can be obtained by sorting the values from small to large1,m2,…,mnN for the number of elements of the first sequence of target values.
Traversing the first target numerical value sequence, wherein target numerical values with the same value exist, the number of the target numerical values with different values is d, and merging the target numerical values with the same value in the first target numerical value sequence to obtain a second target numerical value sequence M '═ M'1,m’2,…,m’dD is the number of elements of the second target numerical value sequence, and the number k of target numerical values with the same value is recorded at the same time, so that the target numerical values can be conveniently grouped in the subsequent steps.
For example, the original target value sequence is a target value sequence comprising 10 elements:
{71,23,26,85,121,26,17,24,51,71}
the first target numerical value sequence obtained by sequencing is as follows:
M={17,23,24,26,26,51,71,71,85,121};
the number of the target values with different values is 8, and the second target value sequence obtained after the target values with the same values are combined is as follows:
where, the number k corresponding to the target value 17 is 1, the number k corresponding to the target value 23 is 1, the number k corresponding to the target value 24 is 1, the number k corresponding to the target value 26 is 2, the number k corresponding to the target value 51 is 1, the number k corresponding to the target value 71 is 2, the number k corresponding to the target value 85 is 1, and the number k corresponding to the target value 121 is 1.
And then grouping the target numerical values, wherein the grouping aims to divide the target numerical value sequence into different gears as much as possible according to the grouping number input by a user, and the grouping principle is that the same target numerical value must fall into the same gear. When the number of groups input by a user is p (1< p < ═ d), the number of elements in each group is rounded down to n/p, namely the number q of elements in each group is floor (n/p).
First, a sequence (i.e., a third sequence) composed of k values needs to be generated according to the sequence M ', each element in the third sequence corresponds to an element in the sequence M ', and each element in the third sequence is a k value corresponding to an element in the sequence M '. Then, finding the quantiles for dividing the sequence into p equal parts, wherein the number of the quantiles is p-1, the number of elements before each quantile is q, sequentially, firstly positioning to the first quantile, finely adjusting the positions of the quantile according to the number of the elements, then positioning to the second quantile until the quantile is p-1, dividing the sequence into p secondary sequences, wherein each secondary sequence is a group of target values, and finishing the grouping of the target values, and the sequence M' is, for example:
M’={17,23,24,26,51,71,85,121}
generating a third sequence consisting of k is:
{1,1,1,2,1,2,1,1}
assuming that the number p of user input packets is 3, the number q of elements per group is floor (10/3) is 3, and the result of grouping the sequence of k is:
{1,1,1}{2,1}{2,1,1}
and restoring the grouping result into a grouping result of a target numerical value, wherein the grouping result of the target numerical value is as follows:
M1’={17,23,24}M2’={26,26,51}M3’={71,71,85,121}。
step 104: determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius;
the bubbles are not one-dimensional visual graphs, and absolute numerical values are difficult to visually represent, so that the target numerical values are grouped by utilizing the relative numerical value relationship represented by the bubbles, and each group of target numerical values corresponds to the same bubble radius, so that a user can visually distinguish the size and the grading relationship of the target numerical values in a proper interval range.
Specifically, as shown in fig. 4, step 104 includes the following steps:
step 401: calculating a bubble radius base number;
in this embodiment, the bubble radius base c is calculated based on the pixels included in the rectangular chart area displaying the bubble map, so that the bubble radius of the bubble map can be calculated on a pixel basis, and there is an advantage that the bubble radius does not change in proportion with expansion and contraction.
First, the size of a rectangular chart area displaying a bubble chart, which is input by a user, is received, the length of the rectangular chart area is X, the height of the rectangular chart area is Y, and the rectangular chart area is in pixel units.
The calculation formula of the bubble radius base c is as follows: and c is (X + Y)/2n, wherein n is the number of elements in the first target numerical sequence. The bubble radius base number c is a median value for grouping the sizes of the bubble radii, and is also a base number for performing the bubble radius mapping.
Step 402: determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
first, the maximum and minimum values of the bubble radius need to be set to determine the range of the mapping. If the bubble radius is too small, the user is not easy to observe, and if the bubble radius is too large, the bubble radius is easy to exceed the chart range, so that a reasonable value interval of the bubble radius needs to be set. Through tests, when the radius of the bubbles is changed between 0.5c and 1.5c, the sizes of the bubbles are proper, the sizes of the adjacent bubbles are easy to distinguish, the bubbles cannot exceed the range of a chart because of being too large, and the bubbles cannot be easily observed because of being too small. Certainly, the value interval of the bubble radius is not limited to [ 0.5c, 1.5c ], and may be changed according to the user's needs, for example, when the number of packets is large (exceeds 7 groups), the value interval of the bubble radius may be expanded.
Step 403: sequentially taking p bubble radius values in the value interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value interval, the p-th bubble radius value is the maximum value of the value interval, and the difference values between the adjacent bubble radius values are equal;
according to the grouping number, the value interval of the bubble radius is evenly divided into p groups and p bubble radius values are obtained, for example, when the grouping number is 3, three bubble radius values are respectively 0.5c, c and 1.5c, and when the grouping number is 4, four bubble radius values are respectively 0.5c,5/6c,7/6c and 1.5c, and so on.
Step 404: and sequencing p groups of target values in a descending order, wherein the radius of the bubble of the mth group of target values is the mth bubble radius value, and m is an integer which is greater than or equal to 1 and less than or equal to p.
And respectively corresponding the p groups of target values with the p bubble radius values in a one-to-one manner from small to large.
Assuming that the user draws a bubble map in an 800 × 500 area, where X is 800, Y is 500, and the number n of known target values is 10, and the bubble radius base is calculated to be (800+500)/2 × 10 is 65(px), the value intervals of the bubble radius are [ 0.5 × 65, 1.5 × 65 ] - [ 32.5, 97.5 ], the number of packets input by the user is 3, and further three bubble radius values are 32.5px, 65px, and 97.5px, and 3 sets of target values are respectively in one-to-one correspondence with 3 bubble radius values in the order from small to large, M can be obtained1' {17,23,24} corresponds to a bubble radius value of 32.5px, M2' {26,26,51} corresponds to a bubble radius value of 65px, M3The value of the radius of the bubble is 97.5px for' {71,71,85,121 }.
Step 105: generating a bubble map in the coordinate system according to the determined bubble radius.
The bubble graph is generated by determining the center point of the bubble and the radius of the bubble, the center point of the bubble can be determined through the dimension sequence, and the center point of the bubble can be determined by using the prior art, which is not described herein again. In addition, the size of the bubble radius is obtained through the above steps, and an Application Programming Interface (API) is combined with the third party icon library (with the position and size of the bubble as parameters), so that the bubble map can be drawn in the coordinate system.
The target values in the same group are mapped into bubbles with the same size, so that a user can intuitively determine the target values in the same level and the target values in different levels from the bubble map.
Specifically, as shown in fig. 5, step 105 includes the steps of:
step 501: obtaining the dimensionality corresponding to the target numerical value;
step 502: acquiring a bubble radius corresponding to a target numerical value;
step 503: and determining the center point of the bubble according to the dimension corresponding to the target numerical value, and generating the bubble according to the center point of the bubble and the radius of the bubble.
In a specific example, assume that the dimension sequences a and B are:
a ═ 1 month, 2 months, 3 months, 4 months, 5 months, 6 months, 7 months, 8 months, 9 months, 10 months };
b ═ beijing, shanghai, guangzhou, shenzhen, chengdu, wuhan, shenyang, uniujue, xi' an, nanjing };
M={71,23,26,85,121,26,17,24,51,71};
the generated bubble map is specifically shown in fig. 6.
Because target values with different values in the same group are mapped into bubbles with the same size, and the size of the target value in the same group cannot be distinguished by a user on the radius of the bubbles, the target values in the same group can be observed and compared by the user through an auxiliary prompt box, and particularly, the dimension value and the target value of the bubbles can be displayed in the form of the prompt box when a first trigger instruction aiming at one bubble is received; and when a second trigger instruction for a bubble is received, displaying a target numerical value of target data in the same group with the bubble in a prompt box form.
Specifically, the first trigger instruction may be triggered after the mouse sweeps over the bubble, as shown in fig. 7, and after the mouse sweeps over the bubble, the prompt box displays the values of the dimensions a and B in which the bubble is located and the value of the metric M.
Specifically, the second trigger instruction may be triggered after the mouse clicks the bubble, as shown in fig. 8, and after the mouse clicks the bubble, the prompt box may display different target values in the same group and size comparison between the target values.
In this embodiment, all target values in a target data sequence are sorted according to the size of the target values, and the sorted target values are grouped according to a preset grouping number, wherein the grouping result needs to satisfy that the target values with the same value are located in the same group, the bubble radius of each group of target values is determined according to the grouping number and the bubble radius base number, and each group of target values corresponds to the same bubble radius, so that the radius of bubbles is irrelevant to the characteristics of the target values, when the target values are not uniformly distributed or the order of magnitude difference of the target values is large, the overall visual effect of the bubble map can be ensured, a user can quickly and intuitively obtain data which the user wants to view from the bubble map, and the value of the bubble map is improved; in addition, the present embodiment determines the coordinate system of the bubble map according to the dimensions of the target data sequence, so that the bubble map is not only applicable to the numerical cartesian coordinate system, but also applicable to other types of coordinate systems. In addition, after the user inputs the packet number, the intermediate steps from data acquisition to visual bubble diagram generation do not need manual intervention, and the bubble diagram generation efficiency is high.
Example two
An embodiment of the present invention further provides a bubble chart generating apparatus, as shown in fig. 9, including:
an obtaining module 21, configured to obtain a target data sequence to be displayed, where the target data sequence includes multiple sets of target data, and each set of target data includes a target numerical value and at least one dimension field;
the data selection module 22 is configured to determine a coordinate system of the bubble map, and select a dimension field corresponding to the target value from the target data sequence according to the selected coordinate system;
the grouping module 23 is configured to sort all target values in the target data sequence according to the size of the target value, and group the sorted target values according to a preset grouping number, where the grouping results need to satisfy that the target values with the same value are in the same group;
the bubble radius determining module 24 is configured to determine a bubble radius of each set of target values according to the number of packets and the bubble radius base number, where each set of target values corresponds to the same bubble radius;
a generating module 25, configured to generate a bubble map in the coordinate system according to the determined bubble radius.
In the embodiment, all target values in a target data sequence are sequenced according to the size of the target values, and the sequenced target values are grouped according to the preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group, the bubble radius of each group of target values is determined according to the grouping number and the bubble radius base number, and each group of target values corresponds to the same bubble radius, so that the radius of the bubbles is irrelevant to the characteristics of the target values; in addition, the present embodiment determines the coordinate system of the bubble map according to the dimensions of the target data sequence, so that the bubble map is not only applicable to the numerical cartesian coordinate system, but also applicable to other types of coordinate systems.
Further, the data selecting module 22 includes any one of the following units:
a first selecting unit, configured to select any one of the following from the target data sequence when the coordinate system of the bubble map is a cartesian coordinate system:
at least two numerical dimensions;
at least two categorical dimensions;
at least one numerical dimension and at least one categorical dimension;
and the second selecting unit is used for selecting at least one geographical dimension from the target data sequence when the coordinate system of the bubble map is a geographical coordinate system.
Further, the grouping module 23 includes:
the sorting unit is used for sorting all target numerical values in the target data sequence according to the size of the target numerical values to obtain a first target numerical value sequence;
the merging unit is used for merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
a third sequence generating unit, configured to generate a third sequence according to the second target numerical sequence, where elements in the third sequence are in one-to-one correspondence with target numerical values in the second target numerical sequence, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical sequence;
the grouping unit is used for grouping the elements in the third sequence according to a preset grouping number p, the sum of the front p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and the processing unit is used for obtaining the grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
Further, the apparatus further comprises:
a calculation module, configured to calculate the bubble radius base c according to pixels included in a rectangular chart area displaying a bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
Further, the bubble radius determination module 24 includes:
a value interval selecting unit for determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
the value taking unit is used for sequentially taking p bubble radius values in the value taking interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value taking interval, the p th bubble radius value is the maximum value of the value taking interval, and the difference values between the adjacent bubble radius values are equal;
and the bubble radius selecting unit is used for sequencing p groups of target values in a sequence from small to large, the bubble radius of the mth group of target values is the mth bubble radius value, and m is an integer which is more than or equal to 1 and less than or equal to p.
Further, the apparatus further comprises at least one of:
the first display module is used for receiving a first trigger instruction aiming at a bubble and displaying the dimension value and the target numerical value of the bubble in a prompt box form;
and the second display module is used for receiving a second trigger instruction aiming at a bubble and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
EXAMPLE III
An embodiment of the present invention further provides a bubble map generating device 30, as shown in fig. 10, including:
a processor 32; and
a memory 34, in which memory 34 computer program instructions are stored,
wherein the computer program instructions, when executed by the processor, cause the processor 32 to perform the steps of:
acquiring a target data sequence to be displayed, wherein the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping results need to meet the condition that the target values with the same value are positioned in the same group;
determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius;
generating a bubble map in the coordinate system according to the determined bubble radius.
In the embodiment, all target values in a target data sequence are sequenced according to the size of the target values, and the sequenced target values are grouped according to the preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group, the bubble radius of each group of target values is determined according to the grouping number and the bubble radius base number, and each group of target values corresponds to the same bubble radius, so that the radius of the bubbles is irrelevant to the characteristics of the target values; in addition, the present embodiment determines the coordinate system of the bubble map according to the dimensions of the target data sequence, so that the bubble map is not only applicable to the numerical cartesian coordinate system, but also applicable to other types of coordinate systems.
Further, as shown in fig. 3, the bubble map generating device 30 further includes a network interface 31, an input device 33, a hard disk 35, and a display device 36.
The various interfaces and devices described above may be interconnected by a bus architecture. A bus architecture may be any architecture that may include any number of interconnected buses and bridges. Various circuits of one or more Central Processing Units (CPUs), represented in particular by processor 32, and one or more memories, represented by memory 34, are coupled together. The bus architecture may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like. It will be appreciated that a bus architecture is used to enable communications among the components. The bus architecture includes a power bus, a control bus, and a status signal bus, in addition to a data bus, all of which are well known in the art and therefore will not be described in detail herein.
The network interface 31 may be connected to a network (e.g., the internet, a local area network, etc.), and may obtain relevant data from the network, such as a target data sequence to be displayed, and may store the relevant data in the hard disk 35.
The input device 33 can receive various commands input by the operator and send the commands to the processor 32 for execution. The input device 33 may comprise a keyboard or a pointing device (e.g., a mouse, a trackball, a touch pad or a touch screen, etc.
The display device 36 may display the results of the instructions executed by the processor 32.
The memory 34 is used for storing programs and data necessary for operating the operating system, and data such as intermediate results in the calculation process of the processor 32.
It will be appreciated that memory 34 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. The memory 34 of the apparatus and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 34 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 341 and application programs 342.
The operating system 341 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 342 includes various applications, such as a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application 342.
When the processor 32 calls and executes the application program and the data stored in the memory 34, specifically, the processor may obtain a target data sequence to be displayed, where the target data sequence includes a plurality of sets of target data, and each set of target data includes a target value and at least one dimension field; determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system; sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping results need to meet the condition that the target values with the same value are positioned in the same group; determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius; generating a bubble map in the coordinate system according to the determined bubble radius.
The methods disclosed in the above embodiments of the present invention may be implemented in the processor 32 or by the processor 32. The processor 32 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 32. The processor 32 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, and may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 34, and the processor 32 reads the information in the memory 34 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Specifically, the processor 32 selects at least two numerical dimensions from the target data sequence when the coordinate system of the bubble map is a numerical cartesian coordinate system;
when the coordinate system of the bubble graph is a category-type Cartesian coordinate system, selecting at least two category-type dimensions from the target data sequence;
when the coordinate system of the bubble map is a geographic coordinate system, at least one geographic dimension is selected from the target data sequence.
Specifically, the processor 32 sorts all target values in the target data sequence according to the size of the target values, to obtain a first target value sequence;
merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
generating a third sequence according to the second target numerical value sequence, wherein elements in the third sequence correspond to target numerical values in the second target numerical value sequence one by one, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical value sequence;
grouping the elements in the third sequence according to a preset grouping number p, wherein the sum of the first p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and obtaining a grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
Specifically, the processor 32 calculates the bubble radius base number c from the pixels included in the rectangular chart area displaying the bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
Specifically, the processor 32 determines a value interval of the bubble radius by using the bubble radius base number as a unit;
sequentially taking p bubble radius values in the value interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value interval, the p-th bubble radius value is the maximum value of the value interval, and the difference values between the adjacent bubble radius values are equal;
and sequencing p groups of target values in a descending order, wherein the radius of the bubble of the mth group of target values is the mth bubble radius value, and m is an integer which is greater than or equal to 1 and less than or equal to p.
Specifically, the processor 32 receives a first trigger instruction for a bubble, and displays a dimension value and a target numerical value of the bubble in a prompt box form;
and receiving a second trigger instruction aiming at a bubble, and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
Example four
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the following steps:
acquiring a target data sequence to be displayed, wherein the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping results need to meet the condition that the target values with the same value are positioned in the same group;
determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius;
generating a bubble map in the coordinate system according to the determined bubble radius.
In the embodiment, all target values in a target data sequence are sequenced according to the size of the target values, and the sequenced target values are grouped according to the preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group, the bubble radius of each group of target values is determined according to the grouping number and the bubble radius base number, and each group of target values corresponds to the same bubble radius, so that the radius of the bubbles is irrelevant to the characteristics of the target values; in addition, the present embodiment determines the coordinate system of the bubble map according to the dimensions of the target data sequence, so that the bubble map is not only applicable to the numerical cartesian coordinate system, but also applicable to other types of coordinate systems.
Further, the computer program, when executed by a processor, further causes the processor to perform the steps of:
when the coordinate system of the bubble diagram is a numerical Cartesian coordinate system, selecting at least two numerical dimensions from the target data sequence;
when the coordinate system of the bubble graph is a category-type Cartesian coordinate system, selecting at least two category-type dimensions from the target data sequence;
when the coordinate system of the bubble map is a geographic coordinate system, at least one geographic dimension is selected from the target data sequence.
Further, the computer program, when executed by a processor, further causes the processor to perform the steps of:
sequencing all target values in the target data sequence according to the size of the target values to obtain a first target value sequence;
merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
generating a third sequence according to the second target numerical value sequence, wherein elements in the third sequence correspond to target numerical values in the second target numerical value sequence one by one, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical value sequence;
grouping the elements in the third sequence according to a preset grouping number p, wherein the sum of the first p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and obtaining a grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
Further, the computer program, when executed by a processor, further causes the processor to perform the steps of:
calculating the bubble radius base c from pixels included in a rectangular chart area displaying a bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
Further, the computer program, when executed by a processor, further causes the processor to perform the steps of:
determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
sequentially taking p bubble radius values in the value interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value interval, the p-th bubble radius value is the maximum value of the value interval, and the difference values between the adjacent bubble radius values are equal;
and sequencing p groups of target values in a descending order, wherein the radius of the bubble of the mth group of target values is the mth bubble radius value, and m is an integer which is greater than or equal to 1 and less than or equal to p.
Further, the computer program, when executed by a processor, further causes the processor to perform the steps of:
receiving a first trigger instruction aiming at a bubble, and displaying a dimension value and a target numerical value of the bubble in a prompt box form;
and receiving a second trigger instruction aiming at a bubble, and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
The foregoing is 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 be construed as the protection scope of the present invention.

Claims (12)

1. A bubble map generation method is characterized by comprising the following steps:
acquiring a target data sequence to be displayed, wherein the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
determining a coordinate system of the bubble diagram, and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
sequencing all target values in the target data sequence according to the size of the target values, and grouping the sequenced target values according to a preset grouping number, wherein the grouping results need to meet the condition that the target values with the same value are positioned in the same group;
determining the bubble radius of each group of target values according to the group number and the bubble radius base number, wherein each group of target values corresponds to the same bubble radius;
generating a bubble map in the coordinate system according to the determined bubble radius.
2. The method for generating the bubble map according to claim 1, wherein the determining a coordinate system of the bubble map and selecting the dimension field corresponding to the target value from the target data sequence according to the selected coordinate system includes any one of:
when the coordinate system of the bubble graph is a geographic coordinate system, selecting at least one geographic dimension from the target data sequence;
when the coordinate system of the bubble map is a Cartesian coordinate system, any one of the following is selected from the target data sequence:
at least two numerical dimensions;
at least two categorical dimensions;
at least one numeric dimension and at least one categorical dimension.
3. The bubble graph generation method according to claim 1, wherein the sorting all the target values in the target data sequence according to the size of the target values and grouping the sorted target values according to a preset grouping number, wherein the grouping result requires that the target values with the same value are in the same group, and the grouping comprises:
sequencing all target values in the target data sequence according to the size of the target values to obtain a first target value sequence;
merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
generating a third sequence according to the second target numerical value sequence, wherein elements in the third sequence correspond to target numerical values in the second target numerical value sequence one by one, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical value sequence;
grouping the elements in the third sequence according to a preset grouping number p, wherein the sum of the first p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and obtaining a grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
4. The bubble map generating method according to claim 1, further comprising a step of calculating a bubble radius base, the step of calculating a bubble radius base including:
calculating the bubble radius base c from pixels included in a rectangular chart area displaying a bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
5. The method for generating a bubble map according to claim 1, wherein the determining the bubble radius of each set of target values according to the number of packets and the bubble radius base number comprises:
determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
sequentially taking p bubble radius values in the value interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value interval, the p-th bubble radius value is the maximum value of the value interval, and the difference values between the adjacent bubble radius values are equal;
and sequencing p groups of target values in a descending order, wherein the radius of the bubble of the mth group of target values is the mth bubble radius value, and m is an integer which is greater than or equal to 1 and less than or equal to p.
6. The method for generating a bubble map according to claim 1, wherein after generating the bubble map in the coordinate system according to the determined bubble radius, the method further comprises at least one of:
receiving a first trigger instruction aiming at a bubble, and displaying a dimension value and a target numerical value of the bubble in a prompt box form;
and receiving a second trigger instruction aiming at a bubble, and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
7. An apparatus for generating a bubble map, comprising:
the display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a target data sequence to be displayed, the target data sequence comprises a plurality of groups of target data, and each group of target data comprises a target numerical value and at least one dimension field;
the data selection module is used for determining a coordinate system of the bubble diagram and selecting a dimension field corresponding to the target numerical value from the target data sequence according to the selected coordinate system;
the grouping module is used for sequencing all target values in the target data sequence according to the size of the target values and grouping the sequenced target values according to a preset grouping number, wherein the grouping result needs to meet the condition that the target values with the same value are positioned in the same group;
the bubble radius determining module is used for determining the bubble radius of each group of target values according to the group number and the bubble radius base number, and each group of target values corresponds to the same bubble radius;
and the generating module is used for generating a bubble map in the coordinate system according to the determined bubble radius.
8. The bubble chart generation device according to claim 7, wherein the data selection module comprises any one of the following units:
a first selecting unit, configured to select any one of the following from the target data sequence when the coordinate system of the bubble map is a cartesian coordinate system:
at least two numerical dimensions;
at least two categorical dimensions;
at least one numerical dimension and at least one categorical dimension;
and the second selecting unit is used for selecting at least one geographical dimension from the target data sequence when the coordinate system of the bubble map is a geographical coordinate system.
9. The bubble map generating apparatus of claim 7, wherein the grouping module comprises:
the sorting unit is used for sorting all target numerical values in the target data sequence according to the size of the target numerical values to obtain a first target numerical value sequence;
the merging unit is used for merging the target values with the same value to obtain a second target value sequence, and recording the number k of the target values with the same value, wherein k is a positive integer;
a third sequence generating unit, configured to generate a third sequence according to the second target numerical sequence, where elements in the third sequence are in one-to-one correspondence with target numerical values in the second target numerical sequence, and the elements in the third sequence are k values of the corresponding target numerical values in the second target numerical sequence;
the grouping unit is used for grouping the elements in the third sequence according to a preset grouping number p, the sum of the front p-1 groups of elements is equal to q, q is equal to n/p and rounded downwards, n is the number of target values, and p is an integer greater than 1;
and the processing unit is used for obtaining the grouping result of the target numerical value according to the grouping result of the third sequence and the corresponding relation between the elements in the third sequence and the target numerical value.
10. The bubble map generating apparatus according to claim 7, further comprising:
a calculation module, configured to calculate the bubble radius base c according to pixels included in a rectangular chart area displaying a bubble map: and c is (X + Y)/2n, wherein X is the length of the rectangular chart area, Y is the height of the rectangular chart area, the unit is pixel, and n is the number of target values.
11. The apparatus for generating a bubble map of claim 7, wherein the bubble radius determination module comprises:
a value interval selecting unit for determining a value interval of the bubble radius by taking the bubble radius base number as a unit;
the value taking unit is used for sequentially taking p bubble radius values in the value taking interval according to the group number p, wherein the 1 st bubble radius value is the minimum value of the value taking interval, the p th bubble radius value is the maximum value of the value taking interval, and the difference values between the adjacent bubble radius values are equal;
and the bubble radius selecting unit is used for sequencing p groups of target values in a sequence from small to large, the bubble radius of the mth group of target values is the mth bubble radius value, and m is an integer which is more than or equal to 1 and less than or equal to p.
12. The bubble map generation apparatus of claim 7, wherein the apparatus further comprises at least one of:
the first display module is used for receiving a first trigger instruction aiming at a bubble and displaying the dimension value and the target numerical value of the bubble in a prompt box form;
and the second display module is used for receiving a second trigger instruction aiming at a bubble and displaying the target numerical value of the target data in the same group with the bubble in a prompt box form.
CN201910407976.3A 2019-05-15 2019-05-15 Bubble chart generation method and device Pending CN111949842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910407976.3A CN111949842A (en) 2019-05-15 2019-05-15 Bubble chart generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910407976.3A CN111949842A (en) 2019-05-15 2019-05-15 Bubble chart generation method and device

Publications (1)

Publication Number Publication Date
CN111949842A true CN111949842A (en) 2020-11-17

Family

ID=73335929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910407976.3A Pending CN111949842A (en) 2019-05-15 2019-05-15 Bubble chart generation method and device

Country Status (1)

Country Link
CN (1) CN111949842A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113907724A (en) * 2021-11-09 2022-01-11 刘明明 Pancreas overall microcirculation function evaluation and visualization method
WO2022105402A1 (en) * 2020-11-19 2022-05-27 海信视像科技股份有限公司 Information processing device, display device, and viewership analysis system
CN114824527A (en) * 2022-04-29 2022-07-29 楚能新能源股份有限公司 Method for quickly restoring original position of battery

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105402A1 (en) * 2020-11-19 2022-05-27 海信视像科技股份有限公司 Information processing device, display device, and viewership analysis system
CN113907724A (en) * 2021-11-09 2022-01-11 刘明明 Pancreas overall microcirculation function evaluation and visualization method
CN114824527A (en) * 2022-04-29 2022-07-29 楚能新能源股份有限公司 Method for quickly restoring original position of battery

Similar Documents

Publication Publication Date Title
CN111949842A (en) Bubble chart generation method and device
Barton et al. Resampling methods for input modeling
CN110647608A (en) Map-based mass data aggregation display method, system, device and medium
Fang et al. Methodology for credibility assessment of historical global LUCC datasets
CN115794414B (en) Satellite earth-to-earth view analysis method, device and equipment based on parallel computing
CN105975486A (en) Information recommendation method and apparatus
CN112084269A (en) Data quality calculation method and device, storage medium and server
Bertini et al. Quality metrics for 2d scatterplot graphics: automatically reducing visual clutter
CN110569190B (en) Transaction pressure testing method and device, electronic device and readable storage medium
Ward et al. Improving CAMA Models Using Geographic Information Systems/Response Surface Analysis Location Factors.
CN113850917A (en) Three-dimensional model voxelization method and device, electronic equipment and storage medium
CN107958135B (en) Event evaluation data display method and device, computer equipment and storage medium
CN111143500B (en) Visual area calculation method, terminal, control device and storage medium
CN110765226B (en) Goods owner matching method, device, equipment and medium
Griffith et al. Heterogeneity of attribute sampling error in spatial data sets
Herrmann et al. Comparison of SpatialAnalyzer and different adjustment programs
CN110866078A (en) Data processing method and device, display control method and device and vehicle
US20150364118A1 (en) Attribute based map marker clustering
CN108510778B (en) Vehicle aggregation display implementation method based on recorder management platform
CN111767295B (en) Map data processing method, device, computing equipment and medium
CN109492853A (en) Model engineering amount calculates method, apparatus, storage medium and computer equipment
Mitchell Comparison of programs for fixed kernel home range analysis
CN112348379A (en) Information processing method, information processing device and terminal equipment
CN114168228A (en) Map data rendering method and device, electronic equipment and storage medium
CN113381900B (en) Visualization method and device for drive test data

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