Recent

Author Topic: Doughnut, half-doughnut & gauge charts  (Read 838 times)

JD

  • Hero Member
  • *****
  • Posts: 1793
Doughnut, half-doughnut & gauge charts
« on: December 08, 2019, 04:58:21 pm »
Hi there everyone,

I want to know if it is possible to create dougnnut, half-doughnut and radial gauge charts like in the attachments using TAChart or any other tool in Lazarus. If it is can someone please show me an example?

Thanks a million,

JD
Windows (10, 7) - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

PaulRowntree

  • Full Member
  • ***
  • Posts: 132
    • Paul Rowntree
Re: Doughnut, half-doughnut & gauge charts
« Reply #1 on: December 08, 2019, 06:14:03 pm »
Have you seen the 'Industrial' package?  It is not longer installed with Lazarus, but it is available here
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/industrialstuff/
Paul Rowntree
- coding for instrument control, data acquisition & analysis, CNC systems

wp

  • Hero Member
  • *****
  • Posts: 7356
Re: Doughnut, half-doughnut & gauge charts
« Reply #2 on: December 08, 2019, 06:21:09 pm »
There has been some progress in the TPieSeries of TAChart in Lazarus trunk.
  • Donut style after setting InnerRadiusPercent
  • StartAngle --> angle at which the first pie begins
  • AngleRange --> angle range between first and last pie (360: full circle, 180: half circle, etc.)
  • Improved 3D style
    - DepthBrightnessDelta --> makes 3D-edges of the pies darker (or brighter)
    - Orientation: normal = as before, horizontal = pies lying flat on horizontal ground, vertical = pies standing like wheel
    - ViewAngle --> displacement of viewpoint from pie plane
Have a look at the demo in folder (lazarus)/components/tachart/demo/radial.

« Last Edit: December 08, 2019, 08:10:11 pm by wp »
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

JD

  • Hero Member
  • *****
  • Posts: 1793
Re: Doughnut, half-doughnut & gauge charts
« Reply #3 on: December 09, 2019, 12:34:12 am »
Thanks a lot for your responses.

@PaulRowntree
I had forgotten about the Industrial package, I'll give it a look

@wp
I seem to have a different (older?) version of TAChart. My own Radial demo looks like the attached screenshot. Where can I find your version?


JD
Windows (10, 7) - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

wp

  • Hero Member
  • *****
  • Posts: 7356
Re: Doughnut, half-doughnut & gauge charts
« Reply #4 on: December 09, 2019, 12:58:28 am »
Where can I find your version?
As I said: Laz trunk; since these are all new features they did not make it into Laz 2.0.6. The easiest way to get trunk is via FPCUpDeluxe (https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases).
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

JD

  • Hero Member
  • *****
  • Posts: 1793
Re: Doughnut, half-doughnut & gauge charts
« Reply #5 on: December 09, 2019, 10:18:45 am »
Where can I find your version?
As I said: Laz trunk; since these are all new features they did not make it into Laz 2.0.6. The easiest way to get trunk is via FPCUpDeluxe (https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases).

Pardon me. I overlooked that. I'll give Lazarus trunk a look. Many thanks.  :D

JD
Windows (10, 7) - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

 

TinyPortal © 2005-2018