1

Here is the standard knob gauge of TChart, of which only a sector is used:

Conventional knob

Here we see that a huge area of Chart is not used.

I would like to have following cropped and stretched display:

Cropped and stretched knob sector

Which parameters of TChart could I use to achieve this?

Paul
  • 25,812
  • 38
  • 124
  • 247
  • You can position any series through their `CustomBounds` (I don't think there is a direct support for what you want to get, as this series is circular and tries to occupy space proportionally). – Victoria Aug 17 '18 at 09:54
  • @Victoria: Thank you. I was looking at `CustomBounds` property too and found that `Left`, `Top`, `Right` and `Bottom` are read-only. `Width`, `Height`, `SetLocation` do not influence position at all. It seems that I will be further using the ugly TPanel trick. – Paul Aug 17 '18 at 10:21
  • 2
    Yes, because it's of type `TRect`. Make a rectangle that you assign to it (try e.g. `Series1.CustomBounds := Rect(0, 0, Chart1.ClientWidth, Chart1.ClientHeight * 2);` from the chart's `OnResize` event). – Victoria Aug 17 '18 at 10:26
  • 1
    You're welcome! Steema actually shows kind of this way in [this example](https://github.com/Steema/TeeChart-VCL-samples/blob/master/TeeNew/KnobGauge_Series.pas) (coincidentally for `TKnobGauge`). – Victoria Aug 17 '18 at 10:53

0 Answers0