Segment heights and minimum fixed value
Posted: Thu Jan 13, 2022 9:36 am
Hi, I have the following problem with segment heights:
I have a layout of three segments (A, B, C) with their heights being 0.05, 1, 1. All of the heights are of course relative values, not fixed ones. What I want is to assign a fixed minimum value (preferably in pixels) to segment A. I assume that I have to calculate that (relative) size from the ratio of the full height of the chart and the fixed minimum value somehow, but I am unsure how to do this. Is chart.ViewXY.GetGraphSegmentInfo().GraphHeight the full height of the chart in pixels? Any help is appreciated!
Best regards
Niels
I have a layout of three segments (A, B, C) with their heights being 0.05, 1, 1. All of the heights are of course relative values, not fixed ones. What I want is to assign a fixed minimum value (preferably in pixels) to segment A. I assume that I have to calculate that (relative) size from the ratio of the full height of the chart and the fixed minimum value somehow, but I am unsure how to do this. Is chart.ViewXY.GetGraphSegmentInfo().GraphHeight the full height of the chart in pixels? Any help is appreciated!
Best regards
Niels