by 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