Good afternoon, Yeray!
I have question.
1. How do I get width of a chart not a canvas width with javascript or other ways?
2. How do I move legend position?
please refer an attached picture.
How do I get width of a chart?
Re: How do I get width of a chart?
hello.
is it impossible?
is it impossible?
Re: How do I get width of a chart?
Use the chartRect property:
Code: Select all
var w = Chart1.chartRect.width;
The legend bounds are calculated in the legend's calcrect function. You could do this to move the legend to any x position you wish:
Code: Select all
Chart1.legend.oldcalcrect = Chart1.legend.calcrect;
Chart1.legend.calcrect = function () {
this.oldcalcrect();
this.bounds.x = 100;
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |