PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

PDF Charting Not able to handle large value
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4560
Page 1 of 1

Author:  rajanbabu033 [ Tue Mar 05, 2024 12:20 am ]
Post subject:  PDF Charting Not able to handle large value

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

Author:  TH-Soft [ Tue Mar 05, 2024 8:54 am ]
Post subject:  Re: PDF Charting Not able to handle large value

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?

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