Method and device for adjusting graph granularity
A technology for adjusting direction and granularity, applied in the input/output process of data processing, instruments, electrical and digital data processing, etc., and can solve problems such as low efficiency, low accuracy, and poor user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2017-11-24
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of data mining, in particular to a method and device for adjusting the granularity of graphs. Background technique
[0002] When performing statistics, it is common to use charts to display the data. For example, in the network management system, the performance data is obtained every 5 minutes, and then a chart is constructed with time as the horizontal axis and performance data as the vertical axis, which can clearly reflect the change of performance data over time. However, due to the influence of factors such as data transmission and system refresh, the time granularity of the charts seen by operation and maintenance personnel is relatively coarse, such as hourly granularity, so it is not convenient for data statistics and analysis. In order to analyze data more accurately, it is often necessary to adjust the granularity of the chart to dig deeper into the data.
[0003] At present, a common solution is to confi...
Examples
Embodiment 1
[0088] see figure 1 , this embodiment provides a method for adjusting the granularity of the graph, including:
[0089] 101: Obtain the coordinates of the first point triggered by the user on the chart;
[0090] 102: Obtain the sliding position of the user operation in real time, and determine the granularity corresponding to each position;
[0091] 103: Obtain data corresponding to each granularity;
[0092] 104: Keep the coordinates of the first point in the grain size adjustment direction unchanged, and update the data on the chart in real time according to each grain size and corresponding data.
[0093] In this embodiment, the graph refers to a two-dimensional data graph, which includes a first coordinate axis and a second coordinate axis that are perpendicular to each other, and usually uses two coordinate values to represent data. For example, the first coordinate axis is time and the second coordinate axis is percentage; or the first coordinate axis is distance an...
Embodiment 2
[0129] see figure 2 , this embodiment provides a method for adjusting the granularity of the graph, the method specifically includes:
[0130] 201: Obtain the coordinates of the first point triggered by the user on the chart;
[0131] In this embodiment, the graph refers to a two-dimensional data graph, and includes a first coordinate axis and a second coordinate axis that are perpendicular to each other; usually two coordinate values are used to represent data.
[0132] For example, the first coordinate axis is time and the second coordinate axis is percentage; or the first coordinate axis is distance and the second coordinate axis is the number of users, and so on. Wherein, one of the first coordinate axis and the second coordinate axis is a horizontal direction, and the other is a vertical direction, which is not specifically limited in the present invention.
[0133] 202: Display an adjustment box containing controls, the adjustment box is used to adjust the granulari...
Embodiment 3
[0158] see Image 6 , this embodiment provides a method for adjusting the granularity of the graph, the method specifically includes:
[0159] 601: Obtain the coordinates of the first point triggered by the user on the chart;
[0160] In this embodiment, the graph refers to a two-dimensional data graph, and includes a first coordinate axis and a second coordinate axis that are perpendicular to each other, usually two coordinates are used to represent data.
[0161] For example, the first coordinate axis is time and the second coordinate axis is percentage; or the first coordinate axis is distance and the second coordinate axis is the number of users, and so on. Wherein, one of the first coordinate axis and the second coordinate axis is a horizontal direction, and the other is a vertical direction, which is not specifically limited in the present invention.
[0162] In this embodiment, if the user uses a finger to trigger the screen, the contact point of the finger on the scr...