本文主要是介绍teechart堆积柱状图,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.示例代码:
Chart2->View3D = false;
TBarSeries *BarSeriesBadStatistics = new TBarSeries(Chart2);
Chart2->AddSeries(BarSeriesBadStatistics);
BarSeriesBadStatistics->Clear();
BarSeriesBadStatistics->Marks->Visible = false;
BarSeriesBadStatistics->MultiBar = mbSelfStack;
BarSeriesBadStatistics->CustomBarWidth = 30;
BarSeriesBadStatistics->Add(10,"1", clRed);
BarSeriesBadStatistics->Add(30,"1", clBlue);
BarSeriesBadStatistics->Add(30,"1", clBlue);
BarSeriesBadStatistics->AddBar(10,"2", clRed);
BarSeriesBadStatistics->Add(30,"2", clBlue);
BarSeriesBadStatistics->Add(150,"2", clBlue);
TBarSeries *BarSeriesBadStatistics1 = new TBarSeries(Chart2);
Chart2->AddSeries(BarSeriesBadStatistics1);
BarSeriesBadStatistics1->Marks->Visible = false;
BarSeriesBadStatistics1->MultiBar = mbSelfStack;
BarSeriesBadStatistics1->CustomBarWidth = 30;
BarSeriesBadStatistics1->Add(5,"1", clRed);
BarSeriesBadStatistics1->Add(6,"1", clBlue);
BarSeriesBadStatistics1->Add(30,"1", clBlue);
BarSeriesBadStatistics1->AddBar(8,"2", clRed);
BarSeriesBadStatistics1->Add(30,"2", clBlue);
BarSeriesBadStatistics1->Add(150,"2", clBlue);
这篇关于teechart堆积柱状图的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!