Recent

Author Topic: Pie Chart: Create your own  (Read 784 times)

Boleeman

  • Hero Member
  • *****
  • Posts: 714
Pie Chart: Create your own
« on: July 09, 2024, 11:09:06 am »
Just a Basic Pie Chart Maker


Save and load to simple txt fie and Save picture to Png.
Uses a TListbox to enter the values into.
Select your own sector colors.

« Last Edit: July 11, 2024, 02:37:22 pm by Boleeman »

Boleeman

  • Hero Member
  • *****
  • Posts: 714
Re: Pie Chart: Create your own ... Working Well
« Reply #1 on: July 11, 2024, 07:44:19 am »
Made the following changes:

Added labels for labeling the values on the chart.
These label positions can be changed with mouse click and drags.

Dynamically placing these labels when the font size of the labels is changed.
I made the centroid of the Value labels move along radial mid-lines of each sector.

Saving the labeled values on the Pie Chart to png.
Thanks to ( https://stackoverflow.com/questions/43738888/save-imageenview-and-a-label-on-it-as-png-in-delphi ) for the idea on how to do it.

Enjoy.
« Last Edit: July 11, 2024, 10:31:54 am by Boleeman »

Boleeman

  • Hero Member
  • *****
  • Posts: 714
Re: Pie Chart: Create your own ... All Problems Solved
« Reply #2 on: July 11, 2024, 11:12:19 am »
Addition of Remove Item Tcommandbutton and some increment changes on TSpinedits.

Hopefully final version now.


Bevel on png done with my Bevel Maker.

Boleeman

  • Hero Member
  • *****
  • Posts: 714
Re: Pie Chart: Create your own ... All Problems Solved
« Reply #3 on: July 11, 2024, 02:36:50 pm »
Actually had an idea of using a TColorListBox instead of a Normal TListbox.

but things are kinda getting real screwed. Ouch!

 

TinyPortal © 2005-2018