Pie chart Export as HTML5 Canvas

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MicroSolutions
Newbie
Newbie
Posts: 2
Joined: Wed Jul 03, 2019 12:00 am

Pie chart Export as HTML5 Canvas

Post by MicroSolutions » Thu Jul 04, 2019 7:58 am

Hello,

We have an issue with Pie Chart. We show it on a browser using the HTML5 Canvas export function. In HTML5 the Pie slices are drawn clockwise, the original vcl one was anticlockwise. We transfer the HTML5 click to the original vcl Pie resulting obviously a wrong clicked slice.

If you see my screenshot of the two pie images it is like the HTML5 one is vertically flipped, however the marks stayed at their original place which is obviously wrong.

Can you fix the export, please? Do you have any workaround suggestion until then?

Best regards,
MicroSolutions
pie html5 canvas export bug.png
pie html5 canvas export bug.png (305.54 KiB) Viewed 9270 times

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

Re: Pie chart Export as HTML5 Canvas

Post by Yeray » Tue Jul 09, 2019 8:16 am

Hello,

I see the marks at the correct positions. What TeeChart VCL version are you using? What the link to the teechart.js at the header of the generated html page?

I see the Pie slices are drawn anticlockwise in VCL and clockwise in JavaScript. I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2210
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

MicroSolutions
Newbie
Newbie
Posts: 2
Joined: Wed Jul 03, 2019 12:00 am

Re: Pie chart Export as HTML5 Canvas

Post by MicroSolutions » Tue Jul 09, 2019 10:38 am

Hello Yeray,

Thank you for your respone. Version: TeeChart Pro V2018.25.180808 64bit VCL

I use "Export as HTML5 Canvas" not "Export as HTML5 JScript". There is no teechart.js in the generated page.
I try to be more exact:

Export as HTML5 Canvas details.png
Export as HTML5 Canvas details.png (214.21 KiB) Viewed 9228 times

The javascript export returns a result which is even more different than the original vcl chart. It looks like this for the same vcl chart.

Export as HTML5 JScript.png
Export as HTML5 JScript.png (115.37 KiB) Viewed 9228 times

It looks this slices are ordered by value. It had the link you were looking for in the generated file

<script src="http://www.steema.com/files/public/teec ... eechart.js" type="text/javascript"></script>

But I do not use this JScript export, I do not know if I can influence it looks via code, what I need is the first one (HTML5 Canvas Export) to be fixed. Thank you.

BR,
MicroSolutions

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

Re: Pie chart Export as HTML5 Canvas

Post by Yeray » Tue Jul 09, 2019 12:38 pm

Hello,

Thanks for the clarification.
I've just fixed it for both Export methods for the next maintenance release.
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