Page 1 of 1
WPF graph xaml export problem
Posted: Tue Dec 23, 2014 12:37 pm
by 15669273
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.
Re: WPF graph xaml export problem
Posted: Wed Dec 24, 2014 12:11 pm
by yeray
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 (51.8 KiB) Viewed 10188 times
Re: WPF graph xaml export problem
Posted: Mon Jan 05, 2015 9:17 am
by 15669273
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,
Re: WPF graph xaml export problem
Posted: Mon Jan 05, 2015 2:19 pm
by yeray
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?
Re: WPF graph xaml export problem
Posted: Tue Jan 06, 2015 9:40 am
by 15669273
We are using version 4.1.2012.1312
the snap shot you attached is the graph itself or the Xaml export result?
Thanks,
Alon.
Re: WPF graph xaml export problem
Posted: Wed Jan 07, 2015 10:33 am
by yeray
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.
Re: WPF graph xaml export problem
Posted: Thu Jan 08, 2015 1:21 pm
by 15669273
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.
Re: WPF graph xaml export problem
Posted: Fri Jan 09, 2015 9:19 am
by narcis
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.