如何往TChart中TCandleSeries中加点,在线点
代码如下:
Chart2->ClearChart();
TCandleSeries *s;
s=new TCandleSeries(Chart2);
Chart2-> AddSeries(s);
s->XValues->DateTime = false;
Chart2->BottomAxis->Automatic = false;
Chart2->BottomAxis->SetMinMax(0,20);
Chart2->BottomAxis->Increment = 1;
Chart2->LeftAxis->Automatic = false;
Chart2->LeftAxis->SetMinMax(0,20);
Chart2->LeftAxis->Increment = 1;
int a[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int b[10] = {10,2, 13, 4,7, 2,11,14,3,12};
for (int i = 0; i < 10; i++)
{s->AddXY(a[i], b[i], "", clGreen);}
我想往TCandleSeries序列s中加点形成类似于蜡烛图的效果,可按照上面的方式,做出的却是柱状图,应该怎么改啊,求教
[解决办法]
自己解决了就好