Page 1 of 1

Export Gantt HTML5 JScript

Posted: Wed Dec 21, 2016 11:12 am
by 16578476
Hi,

the export of a gantt to HTML5 seems not working well.

Re: Export Gantt HTML5 JScript

Posted: Fri Dec 23, 2016 10:48 am
by yeray
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.

Re: Export Gantt HTML5 JScript

Posted: Fri Dec 23, 2016 2:34 pm
by 16578476
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?

Re: Export Gantt HTML5 JScript

Posted: Tue Dec 27, 2016 12:37 pm
by 10050769
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

Re: Export Gantt HTML5 JScript

Posted: Fri Jul 07, 2017 3:37 pm
by Marc
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