|
@ -37,8 +37,10 @@ function Graph3d(container, data, options) { |
|
|
this.yLabel = 'y'; |
|
|
this.yLabel = 'y'; |
|
|
this.zLabel = 'z'; |
|
|
this.zLabel = 'z'; |
|
|
|
|
|
|
|
|
this.xValueLabel = function(v) { return v; }; |
|
|
|
|
|
this.yValueLabel = function(v) { return v; }; |
|
|
|
|
|
|
|
|
var passValueFn = function(v) { return v; }; |
|
|
|
|
|
this.xValueLabel = passValueFn; |
|
|
|
|
|
this.yValueLabel = passValueFn; |
|
|
|
|
|
this.zValueLabel = passValueFn; |
|
|
|
|
|
|
|
|
this.filterLabel = 'time'; |
|
|
this.filterLabel = 'time'; |
|
|
this.legendLabel = 'value'; |
|
|
this.legendLabel = 'value'; |
|
@ -835,6 +837,7 @@ Graph3d.prototype.setOptions = function (options) { |
|
|
|
|
|
|
|
|
if (options.xValueLabel !== undefined) this.xValueLabel = options.xValueLabel; |
|
|
if (options.xValueLabel !== undefined) this.xValueLabel = options.xValueLabel; |
|
|
if (options.yValueLabel !== undefined) this.yValueLabel = options.yValueLabel; |
|
|
if (options.yValueLabel !== undefined) this.yValueLabel = options.yValueLabel; |
|
|
|
|
|
if (options.zValueLabel !== undefined) this.zValueLabel = options.zValueLabel; |
|
|
|
|
|
|
|
|
if (options.style !== undefined) { |
|
|
if (options.style !== undefined) { |
|
|
var styleNumber = this._getStyleNumber(options.style); |
|
|
var styleNumber = this._getStyleNumber(options.style); |
|
@ -1270,7 +1273,7 @@ Graph3d.prototype._redrawAxis = function() { |
|
|
ctx.textAlign = 'right'; |
|
|
ctx.textAlign = 'right'; |
|
|
ctx.textBaseline = 'middle'; |
|
|
ctx.textBaseline = 'middle'; |
|
|
ctx.fillStyle = this.colorAxis; |
|
|
ctx.fillStyle = this.colorAxis; |
|
|
ctx.fillText(step.getCurrent() + ' ', from.x - 5, from.y); |
|
|
|
|
|
|
|
|
ctx.fillText(this.zValueLabel(step.getCurrent()) + ' ', from.x - 5, from.y); |
|
|
|
|
|
|
|
|
step.next(); |
|
|
step.next(); |
|
|
} |
|
|
} |
|
|