fixed auto-scaling on x and y-axis

This commit is contained in:
Lieven Janssen 2012-07-15 12:44:44 +02:00
parent b9c4a07d8d
commit 4978e076a9

View File

@ -169,10 +169,12 @@ my.Graph = Backbone.View.extend({
if (this.model.fields.get(this.state.get('group')).get('type') === 'date') {
xaxis.mode = 'time';
xaxis.timeformat = '%y-%b';
xaxis.autoscaleMargin = 2;
xaxis.autoscale = true;
xaxis.autoscaleMargin = 0.02;
};
var yaxis = {};
yaxis.autoscaleMargin = 2;
yaxis.autoscale = true;
yaxis.autoscaleMargin = 0.02;
var mouse = {};
mouse.track = true;