Search found 12 matches

by MXHW
Thu Feb 20, 2025 12:37 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Thanks for the new example. Any idea about positioning the chart and axes of the scrollpager to fit the requirements in my previous post? The attached image shows, that the scrollpager's chart is horizontally not aligned with main chart. (Both bottom axes should start at same x position and have the...
by MXHW
Mon Feb 17, 2025 1:17 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Thanks for the example. For some reason I have to call 'PlaceAxes' in the 'OnLegendClick' handler (add/remove series to/from chart) with a non-zero value for MargLeft (example below). Otherwise the left-most axis (with smallest offset) is drawn partly offscreen. ...PlaceCustomAxes(0, 0, 0, 12, 0); /...
by MXHW
Mon Feb 10, 2025 10:43 am
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Hello, The main concept is that the area in which the signals (aka series) are displayed only takes up the space left by the dynamic number of axes. So, if a file has four channels, each signal in the chart has one axis. The four axes are either to the left side or the right side (or mixed eg. 2 le...
by MXHW
Mon Feb 03, 2025 9:12 am
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Thank you so much! (1) "[...]When you assign a series to ScrollPagerTool, the series is cloned into it, [...]" So, if one changes e.g. data of the series of the main chart, one needs to apply the changes manually to the 'corresponding' series of the scroll pager's subchart, too? Or is there an autom...
by MXHW
Mon Jan 27, 2025 9:17 am
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

I see you are assigning the vertical axis of the Signals[0] to the subchart at InitFile . Instead of that, just make sure the VertAxis of the series in the scrollpager is set to aLeftAxis : // set left axis of series of main chart to be used as left axis of series in Scrollpager's sub chart // Scro...
by MXHW
Fri Jan 24, 2025 3:04 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

I see you are moving the Bottom axis StartPosition at around line 912. ViewChart.BottomAxis.StartPosition := ScalePosFactor * (NumScales - 1) + ScalePosOffset; That calculation gives 5 so the bottom axis starts at 5% of the chart rectangle. You have your custom vertical axes at positions 1% and 5%....
by MXHW
Wed Jan 22, 2025 7:39 am
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Ok, update to ..42.. fixes text distance issue, thank you very much -- that was problem 1/3, now to problem 2 and 3. ;) 2) Grid The horizontal grid lines are drawn starting at the left most axis, not at the 0.0 position of the bottom axis. I do not know how to fix this! In the example project, click...
by MXHW
Fri Jan 17, 2025 1:00 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Attached is an (ugly) but stand-alone working example of the 'ViewChart' (TChart) that is normally embedded in a big application with lots of dependencies. Please click the button 'Default' (bottom-left corner) to add random data to the chart. You can scroll the axes, and click series in the chart. ...
by MXHW
Wed Jan 15, 2025 9:28 am
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

You can play with the Texts.MarginToAxis property to find what fits your needs. See the example below. Thank you, I'll test that. Is there a way to read the current distance of the texts to the axis line? The margin would/should be different for higher/lower DPI, font types and font sizes etc. Unfo...
by MXHW
Tue Jan 14, 2025 3:19 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

Ja, that's what I want, changing the grid (show/hide for axes) works already. The problem: In my chart the horizontal lines of a grid are painted starting directly from the clicked axis. In your video/example: the 'orange' horizontal grid lines start at '0.0' position of the bottom axis. In my chart...
by MXHW
Tue Jan 14, 2025 12:34 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Re: Distance between axis tick and label text, and more questions

You can play with the Texts.MarginToAxis property to find what fits your needs. See the example below. Thank you, I'll test that. Is there a way to read the current distance of the texts to the axis line? The margin would/should be different for higher/lower DPI, font types and font sizes etc. I'm ...
by MXHW
Mon Jan 13, 2025 12:13 pm
Forum: VCL
Topic: Distance between axis tick and label text, and more questions
Replies: 22
Views: 50985

Distance between axis tick and label text, and more questions

Hello! TeeChart Pro v2024.41.240913 32bit VCL RAD Studio 12 Version 29.0.53571.9782 (1) In an project I am using a custom axis for each series. There is a 'huge' distance between the text and the axis (picture: left arrow). The right side of the picture shows the desired result (I'd faked this by ed...