bottom row labels go away?

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
sct
Newbie
Newbie
Posts: 31
Joined: Tue Aug 06, 2013 12:00 am

bottom row labels go away?

Post by sct » Wed Aug 14, 2013 12:26 pm

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.
Attachments
labels.png
labels.png (60.56 KiB) Viewed 10699 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: bottom row labels go away?

Post by Yeray » Mon Aug 26, 2013 9:38 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

sct
Newbie
Newbie
Posts: 31
Joined: Tue Aug 06, 2013 12:00 am

Re: bottom row labels go away?

Post by sct » Mon Aug 26, 2013 12:26 pm

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();
         };

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: bottom row labels go away?

Post by Yeray » Thu Aug 29, 2013 2:58 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply