mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
Merge branch 'master' of github.com:grafana/grafana
This commit is contained in:
commit
25f88e9b3a
@ -207,15 +207,20 @@ function pushToXBuckets(buckets, point, bucketNum, seriesName) {
|
||||
}
|
||||
|
||||
function pushToYBuckets(buckets, bucketNum, value, point, bounds) {
|
||||
var count = 1;
|
||||
// Use the 3rd argument as scale/count
|
||||
if (point.length > 2) {
|
||||
count = parseInt(point[2]);
|
||||
}
|
||||
if (buckets[bucketNum]) {
|
||||
buckets[bucketNum].values.push(value);
|
||||
buckets[bucketNum].count += 1;
|
||||
buckets[bucketNum].count += count;
|
||||
} else {
|
||||
buckets[bucketNum] = {
|
||||
y: bucketNum,
|
||||
bounds: bounds,
|
||||
values: [value],
|
||||
count: 1,
|
||||
count: count,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user