Search found 8 matches
- Mon Jan 27, 2025 9:17 am
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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...
- Fri Jan 24, 2025 3:04 pm
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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%....
- Wed Jan 22, 2025 7:39 am
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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...
- Fri Jan 17, 2025 1:00 pm
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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. ...
- Wed Jan 15, 2025 9:28 am
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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...
- Tue Jan 14, 2025 3:19 pm
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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...
- Tue Jan 14, 2025 12:34 pm
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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 ...
- Mon Jan 13, 2025 12:13 pm
- Forum: VCL
- Topic: Distance between axis tick and label text, and more questions
- Replies: 15
- Views: 10302
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...