Multiple chart types

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

Moderator: Alex Zencovich

Multiple chart types

Postby ttgchicago » Thu Nov 29, 2007 4:43 pm

Alex -

Can you show me an example with displaying multiple chart types (Series) simultaneously. Id like to create a chart with Measure[0] = Bar Chart and all subsequent measures displaying via a line chart.

Im sure this is easy but Im just missing something?!?

Thanks!

Bob
ttgchicago
User
 
Posts: 14
Joined: Wed Nov 28, 2007 10:24 pm

Postby AlexZencovich » Thu Nov 29, 2007 6:27 pm

It is not easy. Moreover, it is imposible with TPivotChart without code change (but change is quite easy, I never add this just because nobody asks)

You need find procedure

function TPivotChart.doBeforeCreateSeries(cell : ICell; mapMeasure : TMapMeasure) : boolean;

and add there VAR parameter series : TChartSeriesClass;
so you will able change series type in event OnBeforeChartSeries
like
if mapMeasure.Index = 0 then
series := TBarSeries
else
series := TLineSeries
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

Postby ttgchicago » Fri Nov 30, 2007 4:47 am

That worked great!

Would you mind putting that in your code so I dont have to keep updating everytime I get a new release?
ttgchicago
User
 
Posts: 14
Joined: Wed Nov 28, 2007 10:24 pm

Postby AlexZencovich » Fri Nov 30, 2007 5:32 am

Yes, I will do that
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

Multiple Chart Types

Postby BasPav » Fri Apr 04, 2008 2:15 pm

Have you any progress with this topic?

I would apreciate if you can fix this in your next release.
Bas van de Pavert
BasPav
Developer
 
Posts: 24
Joined: Fri Sep 29, 2006 8:02 am
Location: Netherlands

Postby AlexZencovich » Fri Apr 04, 2008 3:14 pm

It is done...at least since January 2008
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 0 guests

cron