PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Vertical Chart
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1783
Page 1 of 1

Author:  maleman [ Tue Sep 13, 2011 7:45 pm ]
Post subject:  Vertical Chart

I'm trying to create a PDF that contains a vertical chart. Is there any property that I can change to adjust the orientation of a chart? If not, are there any other ways of creating a vertical chart?

Thanks

Author:  Thomas Hoevel [ Wed Sep 14, 2011 6:47 am ]
Post subject:  Re: Vertical Chart

What's a vertical chart?

MigraDoc supports Column Charts with vertical indicators (|||) and Bar Charts with horizontal indicators (=).
So maybe Column Charts are what you are looking for.

Author:  maleman [ Wed Sep 14, 2011 6:59 am ]
Post subject:  Re: Vertical Chart

What I'm trying to do is create a graph that instead of graphing from left to right, will graph from top to bottom and will span several pages. I've attached a picture of a graph that is similar to what I am trying to create.

Attachment:
vertical graph.jpg
vertical graph.jpg [ 80.96 KiB | Viewed 6947 times ]

Author:  Thomas Hoevel [ Wed Sep 14, 2011 8:40 am ]
Post subject:  Re: Vertical Chart

Charts in MigraDoc cannot span several pages. So it's up to you to split the data and create one chart per page.

There may be a simpler way, but spontanously I'd create the charts normally in landscape format and then use the technique shown in the Mix MigraDoc And PDFsharp sample to draw the charts rotated on a protrait PDF.

You could add a new chart type to MigraDoc if the current line charts do not offer the flexibility you need.

See also:
http://www.pdfsharp.net/wiki/MixMigraDo ... ample.ashx

Author:  maleman [ Wed Sep 14, 2011 3:09 pm ]
Post subject:  Re: Vertical Chart

Thanks! I looked at it and I definitely think that this is going to be the best way to go about it. Thank you for your help.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/