WPF graph xaml export problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Yossi
Newbie
Newbie
Posts: 8
Joined: Mon May 19, 2014 12:00 am

WPF graph xaml export problem

Post by Yossi » Tue Dec 23, 2014 12:37 pm

Hi,
We are using TChart to show a graph in our application.
while exporting the graph to xaml when the series is a straight line or close to a straight line (moderate slope) The graph does not draw the line (appear as empty space).
Attached is a sample project, a video and some snapshots from our application that illustrate the problem.

how can we solve this issue?

Thanks.
Attachments
GraphExport.zip
(149.64 KiB) Downloaded 606 times

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

Re: WPF graph xaml export problem

Post by Yeray » Wed Dec 24, 2014 12:11 pm

Hello,

I see the XamlExport.xaml ("Show run time xaml export" button) doesn't show the horizontal green lines. However, I'm not sure to see how you created the file XamlExport.xaml. We'd need to recreate the chart that seems to produce a wrong xaml when exported.

If I create a chart with an horizontal line in your application ("Draw straight Line" button) and then I export that chart to a xaml ("Show Xaml and Image" button), this looks fine for me here:
2014-12-24_1309.png
2014-12-24_1309.png (51.8 KiB) Viewed 10225 times
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

Yossi
Newbie
Newbie
Posts: 8
Joined: Mon May 19, 2014 12:00 am

Re: WPF graph xaml export problem

Post by Yossi » Mon Jan 05, 2015 9:17 am

Hi Yeray,

Thanks for your reply,
The XamlExport.xaml file is just one example from our system of the problem, we would prefer to focus on the test project
we have made where the generation of the xaml file and the graph from which the xaml is generated are present.

Unfortunately you didn't attached a project so we can’t understand how you fixed the problem,
At run time the graph look good the problem is only in the exported xaml result.

We just need to export the chart and get the same graph data in the xaml output,
We would appreciate if you could demonstrate the fix for the problem on the sample project we sent and attached the project to your reply.

Best Regards,

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

Re: WPF graph xaml export problem

Post by Yeray » Mon Jan 05, 2015 2:19 pm

Hello,

I didn't attach any project because I was just using the project you attached.
Maybe the difference is in the TeeChart version you and I are using. What exact TeeChart build are you using?
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

Yossi
Newbie
Newbie
Posts: 8
Joined: Mon May 19, 2014 12:00 am

Re: WPF graph xaml export problem

Post by Yossi » Tue Jan 06, 2015 9:40 am

We are using version 4.1.2012.1312
the snap shot you attached is the graph itself or the Xaml export result?

Thanks,
Alon.

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

Re: WPF graph xaml export problem

Post by Yeray » Wed Jan 07, 2015 10:33 am

Hi Alon,
Yossi wrote:We are using version 4.1.2012.1312
Where did you find that version? I can't find it in the download page.
Could you please check the build number? The last number use to indicate the month and day of the release, so that "13" sounds strange to me.
Yossi wrote:the snap shot you attached is the graph itself or the Xaml export result?
That was the snapshot of the application.
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

Yossi
Newbie
Newbie
Posts: 8
Joined: Mon May 19, 2014 12:00 am

Re: WPF graph xaml export problem

Post by Yossi » Thu Jan 08, 2015 1:21 pm

Hi Yeray,

Thanks for your replay, the TeeChart.WPF.dll version we are using is 4.1.2012.1312 like i stated and the TeeChart.dll version is 4.1.2012.9283.
I must say that i am disappointed that this discussion is not going into the right direction despite of the fact we have made a very simple and easy to use code example that demonstrate the
problem.

Let me restate the problem and explain the test project:

1. When you run the test project we attached, you will see a tee chart graph showing "steps" shaped graph data (that works perfectly fine).
2. when pressing the "Show Xaml and Image" button on the top left corner of the screen, a new window will open showing the resulted xaml export of the same graph on the top section and the image export result on the bottom section.
3. You can clearly see that in the xaml export result the line on the "steps" shaped graph is cut in multiple places.

Our requirement:
Send us back the project where the graph xaml export works properly (you can use any version of Dll's you want).
By "xaml export that works properly" we mean: that on the "Show Xaml and Image" window that opens after clicking the "Show Xaml and Image" button the xaml export result you see at the top looks identical to the
Image export result you see on the bottom section (without any cuts or missing data on the graph).

Please sent me a response ASAP if any part of the description written above is unclear \ you have problems running the test project.
I reattached the test project just in case..

P.S
We also made a video that demonstrate the problem of the test project but we can't attach it here because you have a very small size limitation of the attached items.

This issue is of high priority to us, so i will really appreciate quick solution to our problem.

Thanks,
Alon.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: WPF graph xaml export problem

Post by Narcís » Fri Jan 09, 2015 9:19 am

Hi Alon,

Thanks for your feedback.

I build your project with the latest TeeChart for .NET release (build 4.1.2014.12150-12154) and the exported bitmap and xaml files are absolutely identical, find them attached. Can you please try compiling your project with the latest TeeChart assemblies available?

Thanks in advance.
Attachments
GraphTempBmpAndXaml.zip
(53.4 KiB) Downloaded 601 times
Best Regards,
Narcís Calvet / 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

Post Reply