color of the charts

Discussion forum for PivotCube VCL users. Common questions. Bug and problem reports

Moderator: Alex Zencovich

color of the charts

Postby tpau17 » Fri Aug 01, 2008 5:20 pm

Hi,

where can I define the color of the charts in the pivotcube ? I'll define e.g. only red on not all the default colors...
I've searched but haven't found the key for this ...


thanks!


:-) thomas
tpau17
Guest
 
Posts: 4
Joined: Fri Aug 01, 2008 5:18 pm

Re: color of the charts

Postby AlexZencovich » Fri Aug 01, 2008 6:23 pm

1. For TPivotChart

Use TPivotChart.OnAfterRefresh to set Chart.Series[].Color to your own color

or (if you not set Color each point) you may override values in
pvchMaxCOlor : integer = 14;
pvchColors : array [0..14] of TColor = (clRed,clGreen,clBlue,clLime,clYellow,
clMaroon,clTeal,
clOlive,clNavy,
clFuchsia,clSilver,clPurple,
clGray,clWhite,clAqua);


2. For drop-down charts (TPivotGrid)
Override PivotGrid.CreateDropDownChart and after call to inherited, set PVChartDDForm.Chart1.Seris[].Color to your own value
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to PivotCube VCL

Who is online

Users browsing this forum: No registered users and 6 guests

cron