CN106372230A - Chart label statistics method and device - Google Patents
Chart label statistics method and device Download PDFInfo
- Publication number
- CN106372230A CN106372230A CN201610810674.7A CN201610810674A CN106372230A CN 106372230 A CN106372230 A CN 106372230A CN 201610810674 A CN201610810674 A CN 201610810674A CN 106372230 A CN106372230 A CN 106372230A
- Authority
- CN
- China
- Prior art keywords
- label
- chart
- statistics
- configuration attribute
- union
- 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
Links
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/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
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 relates to a chart label statistics method and device. The method comprises the following steps: reading label configuration properties of charts; combining the read label configuration properties into a set, and acquiring a label configuration property of the set charts; acquiring statistics results of labels from data to be processed according to the label configuration property of the set charts; allocating the acquired statistics results of the labels to corresponding charts according to the label configuration properties of the charts to display. By adopting the chart label statistics method and device, the problem of high consumption of server resources during label statistics is solved, and the problem of one-time calculation memory overflow is avoided.
Description
Technical field
The invention belongs to technical field of data processing is and in particular to a kind of chart label statistical method and device.
Background technology
With network information, forum, microblogging, wechat continuous rise so as to enter into an information rapidly swollen for the Internet
In the swollen epoch, counted based on big data label and be shown to chart, can be can be visually seen certain from various types of diagrammatic representation
The positive negative report of the volumes such as event, topic, product, so requirement on statistical efficiency for the statistical data of support diagrammatic representation
More and more higher.Get more and more with chart, label, data is increasing, and existing statistical method efficiency is in label statistic processess meeting
Lead to the consuming of server resource during label statistics many, make once to calculate internal memory and overflow, lead to the chart cannot normal presentation.
Content of the invention
It is an object of the invention to solving above-mentioned technical problem and providing a kind of chart label statistical method and device.
For achieving the above object, the present invention adopts the following technical scheme that
A kind of chart label statistical method, comprises the following steps:
Read the label configuration attribute of each chart;
The label configuration attribute of reading is taken union, obtains the label configuration attribute of chart after union;
The statistical result of each label is obtained according to the label configuration attribute of chart after union from pending data;
The statistical result of each label obtaining is assigned to corresponding chart by the label configuration attribute of each chart opened up
Show.
Described after according to union the label configuration attribute of chart obtain from pending data each label statistics knot
During fruit, the number of times of label statistics and the number of labels of every secondary label statistics to be preset, then basis presets label
The number of labels of the number of times of statistics and every secondary label statistics enters row label statistics.
The present invention also aims to providing a kind of chart label statistic device, comprising:
Reading unit, for reading the label configuration attribute of each chart;
Combining unit, for the label configuration attribute of reading is taken union, obtains the label configuration attribute of chart after union;
Statistic unit, for obtaining the statistics of each label from pending data according to the label configuration attribute of chart after union
Result;
Allocation unit, for being assigned to correspondence by the statistical result of each label obtaining by the label configuration attribute of each chart
Chart be shown.
Described chart label statistic device, including;
Setup unit, for setting the number of times of label statistics and the number of labels of every secondary label statistics for statistic unit.
The present invention, by the label configuration attribute of reading is taken union, obtains the label configuration attribute of chart after union;So
The statistical result of each label is obtained afterwards according to the label configuration attribute of chart after union from pending data, every by obtain
The statistical result of individual label is assigned to corresponding chart by the label configuration attribute of each chart and is shown, thus decreasing mark
When signing statistics, server resource expends many problems, it is to avoid once calculate internal memory overflow problem.
Brief description
The flow chart that Fig. 1 illustrates chart label statistical method of the present invention;
Fig. 2 illustrates the particular flow sheet of chart label statistical method of the present invention;
Fig. 3 illustrates the diagrammatic representation schematic diagram of label statistical result of the present invention;
Fig. 4 illustrates the structure principle chart of chart label statistic device of the present invention.
Specific embodiment
Below, in conjunction with example, the substantive distinguishing features of the present invention and advantage are further described, but the present invention not office
It is limited to listed embodiment.
Shown in Figure 1, a kind of chart label statistical method, comprise the following steps:
Read the label configuration attribute of each chart;
The label configuration attribute of reading is taken union, obtains the label configuration attribute of chart after union;
The statistical result of each label is obtained according to the label configuration attribute of chart after union from pending data;
The statistical result of each label obtaining is assigned to corresponding chart by the label configuration attribute of each chart opened up
Show.
Further, after according to union, the label configuration attribute of chart obtains the statistics of each label from pending data
During result, the number of times of label statistics and the number of labels of every secondary label statistics to be preset, then basis presets mark
The number of labels of the number of times and every secondary label statistics of signing statistics enters row label statistics.
Wherein, described label configuration attribute refers to the different situations of the label that a chart is configured, and each chart is extremely
Configure a label less, label is an information, is data Chinese version content, the literary composition specified such as comprising inside the word such as title
Word, to set with specific reference to information to be counted.
As, setting label " Chinese ", the text containing " Chinese " information as follows can be hit in data statisticss: I is in one
Compatriots, by Chinese culture, the awfully hot feelings ... of Chinese people.
For another example setting label " the Yellow River " hit include as follows " the Yellow River " information " the Yellow River be China mother river, the Yellow River picture
Article one, giant dragon, the Yellow River is in roar the Yellow River in roar etc..
Each chart configures respective labels, according to the data of corresponding label hit, respective labels statistical result is shown
Come.Label configuration, first chart configuration " the Yellow River ", " Chinese " label, second chart configuration are done if there are two charts
" the Changjiang river ", " Chinese " label, according to current algorithm: first figure meter table is calculated certain time (as July 24) and once respectively hit " Huang
River ", the number of times of " Chinese ";Second certain time of schematic calculation (as July 24) once respectively hit " the Changjiang river ", " Chinese " secondary
Number;Result shows in corresponding two charts respectively.As shown in figure 3, lateral coordinates represent the time shafts of label statistics, longitudinally
The number of times of coordinate representation label statistics, can be by intuitively being shown label statistical result forming curves chart.This label
Statistical graph methods of exhibiting, arrives greatly more than one hundred million when data volume, when number of labels is again many, is repeating statistics " Chinese " or more
Many labels, consume a lot of server resources it is therefore desirable to improve more, propose the chart label statistics of the present invention for this
Method.
Below, provide concrete statistical flowsheet in conjunction with Fig. 2, chart label statistical method of the present invention is described in detail.
As shown in Fig. 2 the label of chart 1 configuration has label tag1, label tag2, label tag3 ..., chart 2 configuration
Label has label tag3 ..., and the label of chart n configuration has label tag4 ..., when entering row label statistics, reads every first
The label configuring condition of individual chart, the such as above-mentioned label reading chart 1 configuration has label tag1, label tag2, label
Tag3 ..., the label of chart 2 configuration has label tag3 ..., and the label of chart n configuration has label tag4 ..., then to institute
Multiple labels of statistics take union, obtain label condition after union is processed, such as label tag1, label tag2, label tag3,
Tag4 ..., then presses the quantity of default each statistics label, according to the label condition after this union, to pending big number
According in data enter row label statistics, obtain and corresponding label statistical result reallocated after the corresponding statistical result of each label
Show in corresponding chart, such as by label tag1, label tag2, label tag3 ... corresponding label statistical result distribution
Show in chart 1, the statistical result of label tag3 ... is assigned in chart 2 and shows, by the statistics of label tag4 ...
Result is assigned in chart n shows, thus completing counting and showing of chart label.
The present invention by first " the Yellow River ", " China ", " the Changjiang river ", " China " the label tag that configures of all charts takes union,
Obtain " the Yellow River ", " the Changjiang river ", " China " and again go calculate, and more than one hundred million big data in batches calculating process, multiple label tag
(can be up to up to ten thousand individual even more many) calculate, the label statistical result warehouse-in finally calculating in batches, and are assigned to correspondence
Chart does to be shown, decrease the consuming of server resource, it is to avoid once calculate internal memory overflow problem.
It is the present invention also aims to providing a kind of chart label statistic device, shown in Figure 4, comprising: reading unit,
For reading the label configuration attribute of each chart;Combining unit, is connected with described reading unit, for reading reading unit
The label configuration attribute taking takes union, obtains the label configuration attribute of chart after union;Statistic unit, with described combining unit phase
Connect, for obtaining the statistics of each label from pending data according to the label configuration attribute of chart after combining unit union
Result;Allocation unit, is connected with described statistic unit, for the statistical result of each label that obtains statistic unit by every
The label configuration attribute of individual chart is assigned to corresponding chart and is shown.
It should be noted that in the present invention, the label statistical method of described chart label statistic device, as described above for chart
The statistical flowsheet of label statistical method, specifically refers to the process statistical flowsheet of chart label statistical method as described above, here
No longer it is described in detail
Further, described chart label statistic device, including in setup unit, with described statistic unit phase downlink connection, is used for
Preset the number of times of label statistics and the number of labels of every secondary label statistics for statistic unit.
The number of times of label statistics and the number of labels of every secondary label statistics can be set by this setup unit, so unite
When meter unit label configuration attribute of chart after according to union obtains the statistical result of each label from pending data, root
Enter row label statistics according to the number of times of label set in advance statistics and the number of labels of every secondary label statistics, so that label
Statistics is processed in batches, further decreases the consuming of server resource, it is to avoid once calculates internal memory and overflows and asks
Topic.
Above analysis is it can be seen that the present invention, by the label configuration attribute of reading is taken union, obtains chart after union
Label configuration attribute;Then the system of each label is obtained from pending data according to the label configuration attribute of chart after union
Meter result, the statistical result of each label obtaining is assigned to corresponding chart by the label configuration attribute of each chart and carries out
Show, thus when decreasing label statistics server resource expend many problems, it is to avoid once calculate internal memory overflow problem.
The above is only the preferred embodiment of the present invention it is noted that ordinary skill people for the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (4)
1. a kind of chart label statistical method is it is characterised in that comprise the following steps:
Read the label configuration attribute of each chart;
The label configuration attribute of reading is taken union, obtains the label configuration attribute of chart after union;
The statistical result of each label is obtained according to the label configuration attribute of chart after union from pending data;
The statistical result of each label obtaining is assigned to corresponding chart by the label configuration attribute of each chart opened up
Show.
2. according to claim 1 chart label statistical method it is characterised in that the label of described chart after according to union
When configuration attribute obtains the statistical result of each label from pending data, the number of times of label statistics and every to be preset
The number of labels of secondary label statistics, the then number of labels according to the number of times presetting label statistics and every secondary label statistics
Enter row label statistics.
3. a kind of chart label statistic device is it is characterised in that include:
Reading unit, for reading the label configuration attribute of each chart;
Combining unit, for the label configuration attribute of reading is taken union, obtains the label configuration attribute of chart after union;
Statistic unit, for obtaining the statistics of each label from pending data according to the label configuration attribute of chart after union
Result;
Allocation unit, for being assigned to correspondence by the statistical result of each label obtaining by the label configuration attribute of each chart
Chart be shown.
4. according to claim 3 chart label statistic device it is characterised in that include;
Setup unit, for setting the number of times of label statistics and the number of labels of every secondary label statistics for statistic unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610810674.7A CN106372230A (en) | 2016-09-09 | 2016-09-09 | Chart label statistics method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610810674.7A CN106372230A (en) | 2016-09-09 | 2016-09-09 | Chart label statistics method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106372230A true CN106372230A (en) | 2017-02-01 |
Family
ID=57900517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610810674.7A Pending CN106372230A (en) | 2016-09-09 | 2016-09-09 | Chart label statistics method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106372230A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1763743A (en) * | 2004-10-18 | 2006-04-26 | 微软公司 | System and method for automatic label placement on charts |
CN103279457A (en) * | 2013-05-22 | 2013-09-04 | 北京京东尚科信息技术有限公司 | Method and device for generating diagram based on Excel |
CN105608065A (en) * | 2015-12-16 | 2016-05-25 | 北京奇虎科技有限公司 | Chart generation method and apparatus |
CN105608132A (en) * | 2015-12-16 | 2016-05-25 | 北京奇虎科技有限公司 | Method and device for providing self-defined diagram generation service |
CN105740449A (en) * | 2016-02-03 | 2016-07-06 | 北京市知识产权局 | Dynamic generation system and method for statistic report |
-
2016
- 2016-09-09 CN CN201610810674.7A patent/CN106372230A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1763743A (en) * | 2004-10-18 | 2006-04-26 | 微软公司 | System and method for automatic label placement on charts |
CN103279457A (en) * | 2013-05-22 | 2013-09-04 | 北京京东尚科信息技术有限公司 | Method and device for generating diagram based on Excel |
CN105608065A (en) * | 2015-12-16 | 2016-05-25 | 北京奇虎科技有限公司 | Chart generation method and apparatus |
CN105608132A (en) * | 2015-12-16 | 2016-05-25 | 北京奇虎科技有限公司 | Method and device for providing self-defined diagram generation service |
CN105740449A (en) * | 2016-02-03 | 2016-07-06 | 北京市知识产权局 | Dynamic generation system and method for statistic report |
Non-Patent Citations (1)
Title |
---|
逆心: "SQL操作结果-并集、差集、交集、结果集排序", 《博客园HTTP://WWW.CNBLOGS.COM/KISSDODOG/ARCHIVE/2013/06/24/315274 3.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104063361B (en) | Report design method and Report Form Design system | |
SG166080A1 (en) | Operational reliability index for the knowledge management system | |
CN102890698A (en) | Method for automatically describing microblogging topic tag | |
CN106610931A (en) | Extraction method and device for topic names | |
CN104239067B (en) | The preparation method and device of miniature client | |
CN103905482A (en) | Information push method, push server and system | |
CN105528618A (en) | Short image text identification method and device based on social network | |
CN101976394A (en) | Data acquiring and counting system and method | |
CN106354731A (en) | Document inspection method and device | |
EP2538349A3 (en) | Server, inter-business enterprise information control method and computer program | |
CN106372230A (en) | Chart label statistics method and device | |
CN107025214A (en) | Data processing method and device | |
CN102541811A (en) | On-demand computing-based data analysis device and method for analysis factors | |
CN106407391A (en) | A data quality monitoring method and system | |
CN107071553A (en) | Method, device and computer readable storage medium for modifying video and voice | |
CN105721586A (en) | Information intelligent distribution device, method and system | |
CN103365900A (en) | Method and device for throwing on-line material | |
CN104933546B (en) | Data reporting method and system based on custom built forms | |
CN109034894A (en) | Advertisement page pageview statistical method, device, electronic equipment and storage medium | |
CN105225299A (en) | A kind of method of university student's residential placement and management | |
CN104184835A (en) | Automatic data interaction triggering method and system | |
CN104408550A (en) | Commodity specification processing method | |
CN204010029U (en) | Procedure for producing technique fool proof management system | |
CN108022356A (en) | One kind is for queuing system | |
CN103729414B (en) | The method and its device of a kind of statistical information frequency of interaction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170201 |