Page 1 of 1

Image crated from a TChart Shows Line on Bottom and Left

Posted: Fri Apr 11, 2014 3:25 pm
by 10546565
2014.11.140409 (This took a long time to figure out how to reproduce! )

In the attached demo, the image created from the has a slight bevel/shadow line on the bottom and left of the chart:

Image

This did not occur in the previous version.

One thing we have done in code to create the image is to use a TTeeCanvas3D (verses the TGDIPlusCanvas). The WMF images created from the GDI Plus canvas created significant problems with our report engine.

Ed Dressel

Re: Image crated from a TChart Shows Line on Bottom and Left

Posted: Mon Apr 14, 2014 3:41 pm
by yeray
Hello Ed,

If I comment out this line at the beginning of your AssignChartToGraphic procedure:

Code: Select all

  //aChart.Canvas := TTeeCanvas3D.Create;
And I add this line inside the loop in the same procedure:

Code: Select all

        TPieSeries(aChart.Series[I]).Shadow.Visible:=false;
Both issues disappear, isn't it?

Re: Image crated from a TChart Shows Line on Bottom and Left

Posted: Mon Apr 14, 2014 3:50 pm
by 10546565
But like I said at the bottom of the original post, if I use the default canvas (TGDIPlusCanvas), the images typically[1] do not show up in my report engine (ReportBuilder) when I save to a PDF. So that is not an option--I have to use the TTeeCanvas3D.

[1] It is a very strange problem. I spent hours trying to produce a demo for Digital Metaphors to work with but could not get it to occur. It is better than it was a month ago, but no charts showing up isn't a good problem.

Re: Image crated from a TChart Shows Line on Bottom and Left

Posted: Tue Apr 15, 2014 2:09 pm
by yeray
Hello Ed,
TestAlways wrote:But like I said at the bottom of the original post, if I use the default canvas (TGDIPlusCanvas), the images typically[1] do not show up in my report engine (ReportBuilder) when I save to a PDF. So that is not an option--I have to use the TTeeCanvas3D.

[1] It is a very strange problem. I spent hours trying to produce a demo for Digital Metaphors to work with but could not get it to occur. It is better than it was a month ago, but no charts showing up isn't a good problem.
I've found an alternative workaround to hide the bevel. You can set this at your Create override:

Code: Select all

  Self.Color:=clWhite;

Re: Image crated from a TChart Shows Line on Bottom and Left

Posted: Tue Apr 15, 2014 2:40 pm
by 10546565
Thank you. I will try it.

Note that this problem did not occur in previous versions of TChart.

Ed Dressel

Re: Image crated from a TChart Shows Line on Bottom and Left

Posted: Wed Apr 23, 2014 3:02 pm
by 10546565
We use the charts in our reports, and the reports may have a water mark. Setting the color to clWhite hides the watermark. So while this solution fixes the problem, it creates another.

Is this something that will be fixed soon?

Thank you for your responsiveness.

Ed Dressel

Re: Image crated from a TChart Shows Line on Bottom and Left

Posted: Thu Apr 24, 2014 10:42 am
by yeray
Hi Ed,

I've investigated a bit more to try to find where the problem comes from, and I've added it to the tracker:
http://bugs.teechart.net/show_bug.cgi?id=739
Feel free to add your mail to the CC list to be automatically notified when an update arrives.