Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×