mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph: Fix to legend value Max and negative values, Fixes #1136
This commit is contained in:
@@ -35,6 +35,14 @@ define([
|
||||
expect(series.stats.current).to.be(10);
|
||||
});
|
||||
|
||||
it('max value should work for negative values', function() {
|
||||
series = new TimeSeries({
|
||||
datapoints: [[-10,1], [-4, 2]]
|
||||
});
|
||||
series.getFlotPairs('null', yAxisFormats);
|
||||
expect(series.stats.max).to.be(-4);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('series overrides', function() {
|
||||
|
||||
Reference in New Issue
Block a user