Hi Line,
You have to use 6 data series for the effect. For example, in C#/Java, it would be like:
double[] data0 = {100, 125, 245, 147, Chart.NoValue};
double[] data1 = {85, 156, 179, 211, Chart.NoValue};
double[] data2 = {97, 87, 56, 267, Chart.NoValue};
double[] lastData0 = {Chart.NoValue, Chart.NoValue, Chart.NoValue, Chart.NoValue, 67};
double[] lastData1 = {Chart.NoValue, Chart.NoValue, Chart.NoValue, Chart.NoValue, 123};
double[] lastData2 = {Chart.NoValue, Chart.NoValue, Chart.NoValue, Chart.NoValue, 157};
BarLayer b = c.addBarLayer2(Chart.Stack);
b.addDataSet(data0, 0xff0000, "AAA");
b.addDataSet(data1, 0xff0000, "NNN");
b.addDataSet(data2, 0xff0000, "QQQ");
b.addDataSet(lastData0, 0xffff00, "Last AAA");
b.addDataSet(lastData1, 0xff00ff, "Last NNN");
b.addDataSet(lastData2, 0x00ffff, "Last QQQ");
Hope this can help.
Regards
Peter Kwan |