Export Gantt HTML5 JScript

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
Menant.D
Newbie
Newbie
Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Export Gantt HTML5 JScript

Post by Menant.D » Wed Dec 21, 2016 11:12 am

Hi,

the export of a gantt to HTML5 seems not working well.
Attachments
TeechartHtml5Gantt.zip
(60.17 KiB) Downloaded 1532 times

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

Re: Export Gantt HTML5 JScript

Post by Yeray » Fri Dec 23, 2016 10:48 am

Hello,

I've reproduced the problem so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1727

Thanks for reporting it.
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

Menant.D
Newbie
Newbie
Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Re: Export Gantt HTML5 JScript

Post by Menant.D » Fri Dec 23, 2016 2:34 pm

Hi,
thanks for your reply.
We look at the java script and we see that axes are inverted.
It seems not difficult to correct it. Do you think you could send us a patch?
It's very important for us, when do you think we can have a patch?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Export Gantt HTML5 JScript

Post by Sandra » Tue Dec 27, 2016 12:37 pm

Hello Menant,

We aren't sure when you fix the problem. But, when we find a fix for it, we contact immediately with you.

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Export Gantt HTML5 JScript

Post by Marc » Fri Jul 07, 2017 3:37 pm

You can get a copy of the calculated Axis Increment before exporting the Chart.

Eg.

Code: Select all

procedure TForm4.Button1Click(Sender: TObject);
var
  JavascriptExportFormat: TJavascriptExportFormat;
begin
  inherited;

  Chart1.Axes.Bottom.Increment := Chart1.Axes.Bottom.CalcIncrement;

  JavascriptExportFormat            := TJavascriptExportFormat.Create;
  JavascriptExportFormat.Panel      := Chart1;
  JavascriptExportFormat.CanvasName := 'canvas' + intToStr(Tag);
  JavascriptExportFormat.JScript.SaveToFile('GanttTest.html');

end;
The above code tests successfully with the example.

Regards,
Marc Meumann
Steema Support

Post Reply