我想做一个像TDBChart控件能够让用户自己设计图表,谁有没有好的方法。
分不够可以在加

解决方案 »

  1.   

    参考一下
    $(Dephi)\Demos\TeeChar\teedemo.dpr
      

  2.   

    ValueSource Example
    Being Quantity, a former numeric Field Name in Table1.LineSeries1.DataSource := Table1 ;
    LineSeries1.YValues.ValueSource := 'Quantity' ;
    Case 2. A Chart Series is connected to another Chart Series:
    If the Series which owns this ValueList is attached to a TChart (or a TDBChart), and if the Series.DataSource property is any TChartSeries component, then the ValueSource property must refer to an existing TChartValueList Name in the underlying TChartSeries.
    Example:LineSeries1.DataSource:=BubbleSerie2;
    LineSeries1.YValues.ValueSource:='Y';
    Being Y, the BubbleSeries2.YValues.Name.ASSUMPTIONS:
    Changing the ValueSource property both at design or runtime, will force the Series to fill again its values from the specified DataSource.
    This must be specially considered when the DataSource Series property is a database TTable or TQuery or TClientDataset, because maybe it takes a long time to retrieve all records.
    If the dataset is closed, the automatic record retrieving will be performed later on, when the dataset is opened again.
      

  3.   

    看看delphi 的DEMO呗 应该很详细了
      

  4.   

    我是想做一个像delphi的TDBChart
    能让用户自定义图表