|
|
@ -96,6 +96,8 @@ function Graph3d(container, data, options) { |
|
|
|
strokeWidth: 1 // px
|
|
|
|
}; |
|
|
|
|
|
|
|
this.dotSizeRatio = 0.02; // size of the dots as a fraction of the graph width
|
|
|
|
|
|
|
|
// create a frame and canvas
|
|
|
|
this.create(); |
|
|
|
|
|
|
@ -844,6 +846,8 @@ Graph3d.prototype.setOptions = function (options) { |
|
|
|
if (options.yValueLabel !== undefined) this.yValueLabel = options.yValueLabel; |
|
|
|
if (options.zValueLabel !== undefined) this.zValueLabel = options.zValueLabel; |
|
|
|
|
|
|
|
if (options.dotSizeRatio !== undefined) this.dotSizeRatio = options.dotSizeRatio; |
|
|
|
|
|
|
|
if (options.style !== undefined) { |
|
|
|
var styleNumber = this._getStyleNumber(options.style); |
|
|
|
if (styleNumber !== -1) { |
|
|
@ -976,7 +980,7 @@ Graph3d.prototype._redrawLegend = function() { |
|
|
|
if (this.style === Graph3d.STYLE.DOTCOLOR || |
|
|
|
this.style === Graph3d.STYLE.DOTSIZE) { |
|
|
|
|
|
|
|
var dotSize = this.frame.clientWidth * 0.02; |
|
|
|
var dotSize = this.frame.clientWidth * this.dotSizeRatio; |
|
|
|
|
|
|
|
var widthMin, widthMax; |
|
|
|
if (this.style === Graph3d.STYLE.DOTSIZE) { |
|
|
@ -1613,7 +1617,7 @@ Graph3d.prototype._redrawDataDot = function() { |
|
|
|
this.dataPoints.sort(sortDepth); |
|
|
|
|
|
|
|
// draw the datapoints as colored circles
|
|
|
|
var dotSize = this.frame.clientWidth * 0.02; // px
|
|
|
|
var dotSize = this.frame.clientWidth * this.dotSizeRatio; // px
|
|
|
|
for (i = 0; i < this.dataPoints.length; i++) { |
|
|
|
var point = this.dataPoints[i]; |
|
|
|
|
|
|
|