PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 4:12 pm

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 
Offline

Joined: Sun Apr 30, 2017 4:52 pm
Posts: 1
Hello,
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!


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

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

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


Attachments:
graph.JPG
graph.JPG [ 37.14 KiB | Viewed 4959 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 05, 2017 9:45 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
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?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
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: Google [Bot] and 123 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group