PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 22, 2018 10:24 am

All times are UTC

Forum rules

Please read this before posting on this forum: Forum Rules

Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Apr 30, 2017 5:05 pm 

Joined: Sun Apr 30, 2017 4:52 pm
Posts: 1
I need to plot a several time-based series on line chart and I must provide proper time-shift between each series.

The problem with PDFSharp charting is that for line chart X values are ignored and series use Y values only - for each Y value we have an X index value auto-incremented.
Because of that it is impossible to correctly draw multiple line data series where Xvalues are specific OADateTime values for example.

Let's say that we have 2 series: S1 and S2:
data for S1 starts from 01/01/2017, data for S2 starts from 01/04/2017 - despite the fact that for both series start with different XValues (OADateTime) and on XAxis there should be some shift, the chart mechanisms will plot both series starting from the same X-point = 0 so there will be no shift.

Is there any way to change this behaviour?
If not, what else can be used instead of PDFSharp?

Best regards!

Reply with quote  
PostPosted: Thu Oct 05, 2017 8:54 am 

Joined: Thu Oct 05, 2017 8:30 am
Posts: 1
You can call
method to add empty values, and set DisplayBlanksAs property like
chart.DisplayBlanksAs = BlankType.NotPlotted;

but it will still draw the graph with all values as if you set
chart.DisplayBlanksAs = BlankType.Zero;
and generates the chart bleow, I think ther is a abug

graph.JPG [ 37.14 KiB | Viewed 1145 times ]
Reply with quote  
PostPosted: Thu Oct 05, 2017 9:45 am 
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2829
Location: Cologne, Germany
Yes, I think there is a bug with blank values.
Not my area of expertise, never tried to tackle it.
Any volunteers trying to fix it?

Thomas Hoevel
PDFsharp Team

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group