PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 2:55 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
 Post subject: XY scatter plots...
PostPosted: Tue Nov 03, 2009 10:08 am 
Offline

Joined: Tue Nov 03, 2009 9:06 am
Posts: 4
As the title suggests, same as the line plots but without the lines would be great for displaying scientific data.


Top
 Profile  
Reply with quote  
 Post subject: Re: XY scatter plots...
PostPosted: Tue Nov 03, 2009 10:24 am 
Offline

Joined: Tue Nov 03, 2009 9:06 am
Posts: 4
I think if you change the following section in LinePlotAreaRenderer.cs from:

Code:
        matrix.TransformPoints(points);
        gfx.DrawLines(sri.LineFormat, points);
        DrawMarker(gfx, points, sri);


...to:

Code:
        matrix.TransformPoints(points);
        if sri.LineFormat.Width > 0:
            gfx.DrawLines(sri.LineFormat.Width, points);
        DrawMarker(gfx, points, sri);


...this would achieve the result - we'd just need to set the line width to 0.


Top
 Profile  
Reply with quote  
 Post subject: Re: XY scatter plots...
PostPosted: Tue Mar 29, 2011 11:47 am 
Offline

Joined: Tue Mar 29, 2011 11:35 am
Posts: 2
JonCage wrote:
I think if you change the following section in LinePlotAreaRenderer.cs from:

Code:
        matrix.TransformPoints(points);
        gfx.DrawLines(sri.LineFormat, points);
        DrawMarker(gfx, points, sri);


...to:

Code:
        matrix.TransformPoints(points);
        if sri.LineFormat.Width > 0:
            gfx.DrawLines(sri.LineFormat.Width, points);
        DrawMarker(gfx, points, sri);


...this would achieve the result - we'd just need to set the line width to 0.



This brings no success, because SeriesRendererInfo.LineFormat.Width internaly alway is set to ChartRenderer.DefaultSeriesLineWidth.
I think the better way is to set SeriesRendererInfo.LineFormat.Visible to false e.g. setting Series.LineFormat.Visible to false.
I tried this and it works!


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: No registered users and 36 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