我用的是PAGECONTROL设了两个页面,其中一个页面显示DBCHART 
可为什么在运行是出现不了,与数据库对应的图形呢?
请赐教:)

解决方案 »

  1.   

    //******先添加一个series dbchart1->serieslist -> add
    form1.adoquery1.Close;
    form1.adoquery1.SQL.Clear;
    form1.adoquery1.SQL.Add('select * from cj');
    form1.adoquery1.Open;
    Series1.DataSource:=nil;
    Series1.DataSource:=form1.adoquery1;//数据来源    { <-- the Table component }
    Series1.YValues.ValueSource:='cj';  { <-- t字段 Y轴显示 }
     Series1.XLabelsSource:='time1';{x轴显示 一般按时间}