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

Line chart in MigraDoc - x axis series
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3602
Page 1 of 1

Author:  damonbla [ Fri Jun 16, 2017 2:57 pm ]
Post subject:  Line chart in MigraDoc - x axis series

Hi, I have MigraDoc 1.32, C#. Does anyone know if it's possible to have a different number of x axis labels than the amount of data in the series of a line graph?

For instance, maybe I have 100 values in the line graph. The x axis can't fit that many in very nicely, so all the number labels end up crushed together in one black blob. I tried putting a smaller number of values in the XSeries variable than the number of values that are used to draw the graph, but it still does the same thing - they are crushed together the same way but just don't go all the way across the graph.

Author:  damonbla [ Fri Jun 16, 2017 3:44 pm ]
Post subject:  Re: Line chart in MigraDoc - x axis series

Actually just figured this out myself, and it's super simple, so I feel pretty dumb for posting it! All you have to do is put in spaces instead of x axis values for every single graph value. I only put in an x axis label for every 10 or so graph values, the rest are spaces. Incredibly easy.

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