fixed auto-scaling on x and y-axis
This commit is contained in:
@@ -169,10 +169,12 @@ my.Graph = Backbone.View.extend({
|
|||||||
if (this.model.fields.get(this.state.get('group')).get('type') === 'date') {
|
if (this.model.fields.get(this.state.get('group')).get('type') === 'date') {
|
||||||
xaxis.mode = 'time';
|
xaxis.mode = 'time';
|
||||||
xaxis.timeformat = '%y-%b';
|
xaxis.timeformat = '%y-%b';
|
||||||
xaxis.autoscaleMargin = 2;
|
xaxis.autoscale = true;
|
||||||
|
xaxis.autoscaleMargin = 0.02;
|
||||||
};
|
};
|
||||||
var yaxis = {};
|
var yaxis = {};
|
||||||
yaxis.autoscaleMargin = 2;
|
yaxis.autoscale = true;
|
||||||
|
yaxis.autoscaleMargin = 0.02;
|
||||||
|
|
||||||
var mouse = {};
|
var mouse = {};
|
||||||
mouse.track = true;
|
mouse.track = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user