Page 1 of 1
bottom row labels go away?
Posted: Wed Aug 14, 2013 12:26 pm
by 17766684
if the X of the chart size is too big the bottom row labels go away? some charts don't do this. In this image I found the thresh hold for this bug. On the left the size allows the graph, on the left I scaled the width just by a few pixels and the label vanished.
Re: bottom row labels go away?
Posted: Mon Aug 26, 2013 9:38 am
by yeray
Hi,
Excuse us for the delayed reply here.
Could you please share the code you used to generate that chart so we can reproduce the problem here?
Re: bottom row labels go away?
Posted: Mon Aug 26, 2013 12:26 pm
by 17766684
Good chart
----------------------
this.canvas.width = 400
this.Xdata = 0.66,1.18,2.11,3.78,6.78,12.13
this.Ydata = 0,1,2,3,4,4.99999
----------------------
Bad chart
----------------------
this.canvas.width = 700
this.Xdata = 0.66,1.18,2.11,3.78,6.78,12.13
this.Ydata = 0,1,2,3,4,4.99999
----------------------
Code: Select all
chart.prototype.draw = function ()
{
this.UIDiv.removeChild( this.canvas );
this.canvas = document.createElement( 'canvas' );
this.canvas.id = "canvas" + this.id;
this.canvas.width = this.canvasData_width;
this.canvas.height = this.canvasData_height;
this.canvas.style.zIndex = this.canvasData_zIndex;
this.UIDiv.appendChild( this.canvas );
this.Chart1 = new Tee.Chart( "canvas" + this.id );
this.annot = new Tee.Annotation( this.Chart1 );
this.annot.position.x = 15;
this.annot.position.y = 20;
var anno = this.annot
this.annot.mousemove = function () { this.text = ""; }
this.addData( this.Xdata, this.Ydata, .05, "ellipse" );
this.Chart1.tools.add( this.annot );
this.Chart1.title.text = "";
this.Chart1.axes.left.title.text = this.labelY;
this.Chart1.axes.bottom.title.text = this.labelX;
this.Chart1.tools.add( new Tee.DragTool( this.Chart1 ) );
this.Chart1.draw();
};
Re: bottom row labels go away?
Posted: Thu Aug 29, 2013 2:58 pm
by yeray
Hi,
I've been able to reproduce the problem with the example attached so I've added it to the defect list to be revised for further releases (TF77016700).
The bottom axis labels seem to be correctly drawn with a chart width 500, but with 600.
Thanks for reporting it.
- test.zip
- (620 Bytes) Downloaded 1087 times