Chart

edited September 2010 in FastReport 4.0
hello to all masters.
i wanna to make a chart from my excel data.

its Complete Question.

if there is no way,,so say to me,,how to access to Chatr'sDataset?
( trick: i wanna make default chart,then set my dataset on chart's dataset :lol:" border="0" alt="laugh.gif" /> )" alt="> )" />

Comments

  • gpigpi
    edited 1:44AM
    Try to use:
    Chart1.AddSeries(csLine);
    with Chart1.SeriesData[0] do
           begin
             DataType := dtDBData;
             DataSet := ADOQuery1;                                                              
             XSource := 'ADOQuery1."X"';
             YSource := 'ADOQuery1."Y"';
           end;
    
  • edited 1:44AM
    gpi wrote: »
    Try to use:
    Chart1.AddSeries(csLine);
    with Chart1.SeriesData[0] do
           begin
             DataType := dtDBData;
             DataSet := ADOQuery1;                                                              
             XSource := 'ADOQuery1."X"';
             YSource := 'ADOQuery1."Y"';
           end;
    

    can you explain more?
    or give me a sample?
    please my dear >
  • gpigpi
    edited 1:44AM
    Just add this code in main procedure of the report's script:
    begin
    Chart1.AddSeries(csLine);
    with Chart1.SeriesData[0] do
           begin
             DataType := dtDBData;
             DataSet := ADOQuery1;                                                              
             XSource := 'ADOQuery1."X"';
             YSource := 'ADOQuery1."Y"';
           end;
    end.
    
  • edited 1:44AM
    gpi wrote: »
    Just add this code in main procedure of the report's script:
    begin
    Chart1.AddSeries(csLine);
    with Chart1.SeriesData[0] do
           begin
             DataType := dtDBData;
             DataSet := ADOQuery1;                                                              
             XSource := 'ADOQuery1."X"';
             YSource := 'ADOQuery1."Y"';
           end;
    end.
    

    Gracias!! eso estaba buscando!!!!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.