I have though about that.
However I have chosen the current logic, for having monochrome theme of Office 365.
Anyway, included your code for the next version.

Moderator: Rathinagiri
Hi Rathi,Rathinagiri wrote: ↑Tue Jun 01, 2021 1:58 pm Cool Grigory Filatov.
I have though about that.
However I have chosen the current logic, for having monochrome theme of Office 365.
Anyway, included your code for the next version.![]()
I have a problem with a Color themes naming/*
MINIGUI - Harbour Win32 GUI library
Copyright 2002-2010 Roberto Lopez <harbourminigui@gmail.com>
http://harbourminigui.googlepages.com
Author: S.Rathinagiri <rathinagiri@sancharnet.in>
*/
/* Legend position */
#define LEGEND_ON_RIGHT 0
#define LEGEND_ON_BOTTOM 1
/* Graph type */
#define GT_DEFAULT 1
#define GT_COLUMNS 1
#define GT_LINE 2
#define GT_POINTS 3
#define GT_PIE 4
#define GT_BAR 5
/* Color theme */
#define THEME_1 1
#define THEME_2 2
#define THEME_3 3
#define THEME_4 4
/* Colors */
#define CLR_HAVELOCK_BLUE { 68 , 115 , 197 }
#define CLR_WESTSIDE { 237 , 125 , 49 }
#define CLR_LIGHT_GREY { 165 , 165 , 165 }
#define CLR_DARK_YELLOW { 253 , 193 , 1 }
#define CLR_PICTON_BLUE { 91 , 155 , 213 }
#define CLR_APPLE { 112 , 173 , 71 }
#define CLR_DARK_GREY { 99 , 99 , 99 }
#define CLR_ENDEAVOUR { 37 , 95 , 145 }
#define CLR_SADDLE_BROWN { 160 , 71 , 13 }
#define CLR_DELL { 66 , 104 , 43 }
#define CLR_LIGHT_BROWN { 152 , 115 , 0 }
#define CLR_DARKER_BLUE { 38 , 68 , 120 }
That is so kind of you Grigory! I thought to create such a header file later. But, you created and helped a lot! Thanks a lot.gfilatov wrote: ↑Wed Jun 02, 2021 8:49 amHi Rathi,Rathinagiri wrote: ↑Tue Jun 01, 2021 1:58 pm Cool Grigory Filatov.
I have though about that.
However I have chosen the current logic, for having monochrome theme of Office 365.
Anyway, included your code for the next version.![]()
I've prepared also the following header file for the GraphPlus library:
I have a problem with a Color themes naming/*
MINIGUI - Harbour Win32 GUI library
Copyright 2002-2010 Roberto Lopez <harbourminigui@gmail.com>
http://harbourminigui.googlepages.com
Author: S.Rathinagiri <rathinagiri@sancharnet.in>
*/
/* Legend position */
#define LEGEND_ON_RIGHT 0
#define LEGEND_ON_BOTTOM 1
/* Graph type */
#define GT_DEFAULT 1
#define GT_COLUMNS 1
#define GT_LINE 2
#define GT_POINTS 3
#define GT_PIE 4
#define GT_BAR 5
/* Color theme */
#define THEME_1 1
#define THEME_2 2
#define THEME_3 3
#define THEME_4 4
/* Colors */
#define CLR_HAVELOCK_BLUE { 68 , 115 , 197 }
#define CLR_WESTSIDE { 237 , 125 , 49 }
#define CLR_LIGHT_GREY { 165 , 165 , 165 }
#define CLR_DARK_YELLOW { 253 , 193 , 1 }
#define CLR_PICTON_BLUE { 91 , 155 , 213 }
#define CLR_APPLE { 112 , 173 , 71 }
#define CLR_DARK_GREY { 99 , 99 , 99 }
#define CLR_ENDEAVOUR { 37 , 95 , 145 }
#define CLR_SADDLE_BROWN { 160 , 71 , 13 }
#define CLR_DELL { 66 , 104 , 43 }
#define CLR_LIGHT_BROWN { 152 , 115 , 0 }
#define CLR_DARKER_BLUE { 38 , 68 , 120 }![]()
What is your opinionIs it useful
![]()
Thanks a lot! Yes you are correct! Actually, it is meaningless to add the title there. So, I have removed the titles. If required, we can add manually before drawing!
Hi Rathi,Rathinagiri wrote: ↑Thu Jun 03, 2021 4:08 am ...
So, I have removed the titles. If required, we can add manually before drawing!
My results and updated source are attached.- fixed the values percent calculation in the Pie graph;
- updated the centering of a graph title taking into account
the width of the legend at right;
- added the legend's centering in a bottom position.
Hi Rathi,Rathinagiri wrote: ↑Thu Jun 03, 2021 4:16 pm Added the following features:
- New Graph Type Bar
- New Graph Type Funnel
- Pie Chart in clockwise (Previous pie chart was drawn in anti-clockwise which was awkward)
- Fixed many bugs and inefficient code