Jump to content
Registration disabled at the moment Read more... ×
TurboMagic

Getting marks dimensions from a TChart on a FastReport

Recommended Posts

Hello,

 

I have a TfrxChartview TChart on a FastReports report. It contains a bar series and I'd like to find out the length of
the marks added to the bars in order to be able to move their y-position if they do not fit on the bar itsself (as they
would overlap with the bottom axis then). Additionally one needs to find out the bar length for this. The latter one
seems to work somehow. The retrieval of the marks dimensions doesn't work as it does in a small VCL test application
where the chart is sitting on a form.

There you can use this one:

Chart.Series[si].Marks.Positions.Position[i].Bounds.Width

But when using the chart on a FastReports report Chart.Chart.Series[si].Marks.Positions.Position is nil.
The values have been added via Chart.Chart.SeriesData.YSource, as the data is not comming from a database.

 

Any ideas?

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×