PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 10, 2024 7:16 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 05, 2024 12:20 am 
Offline

Joined: Tue Mar 05, 2024 12:08 am
Posts: 1
Hi,
We are using PdfSharp.Charting, PdfSharp.Charting.Renderers components to draw the line chart in the PDF Document.

Here line has 64 Points. Out of 64 points, the maximum value of the Y-axis is 130 and minimum value is -9.9E+37.
These values are comes from Audio Analyzer instrument. Sometime few values are very large(-9.9E+37).
In this case, the PdfSharp.Charting.Renderers component not able to handle the charting. It hangs and memory is increasing and get out of memory Exception.

Do we have any limitation of value for Y-Axis? If so, kindly provide the range of values.

We are using below components for PDF Document creation.

Component : PdfSharp.Charting.Renderers
File : VerticalYAxisRenderer.cs
Namespace : PdfSharpCore.Charting.Renderers
Class : VerticalYAxisRenderer

Regards,
M.Rajanbabu


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 05, 2024 8:54 am 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1007
Location: CCAA
rajanbabu033 wrote:
Do we have any limitation of value for Y-Axis? If so, kindly provide the range of values.
It is up to you to find out.
Reduce the number of horizontal lines and Y axis tick marks. I think that leads to an overflow in the end.

A chart covering the range 130 down to -9.9000000000000000000000000000000000000 will look odd anyway.
Which range do "useful" values have?

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 6 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