Accessing SERIES via code. TSeriesPointer

edited June 2010 in FastReport 4.0
(TSeriesPointer)


//////////////////
Chart.Chart.Series[-1+x].Title := 'SERIES' + IntToStr(-1+x);

I can set names to series, make MARKS visible..


But how about pointers?!


Why cant i access pointers? Anyone know how? I need this option set to visible via code.

Anyone have any thoughts? Thx.

Aside from this issue, is there a way to remove series without destroying?

Comments

  • IT GraphIT Graph France
    edited 11:33PM
    alex83 wrote: »
    (TSeriesPointer)


    //////////////////
    Chart.Chart.Series[-1+x].Title := 'SERIES' + IntToStr(-1+x);

    I can set names to series, make MARKS visible..


    But how about pointers?!


    Why cant i access pointers? Anyone know how? I need this option set to visible via code.

    Anyone have any thoughts? Thx.

    Aside from this issue, is there a way to remove series without destroying?
    I have exactly the same question ...
  • IT GraphIT Graph France
    edited 11:33PM
    I found the answer.
    The chart system of FastReports uses the chart TeeChart classes (TeEngine.pas)
    you have just to cast the serie to the desired specific class
    Uses Series;
    
    Var MyLineSeries : TLineSeries;
    
    MyLineSeries                 := TLineSeries(Chart.Chart.Series[-1+x]);
    MyLineSeries.Title           := 'SERIES' + IntToStr(-1+x); 
    MyLineSeries.Pointer.Visible := true;
    
    You can find the list of the classes in the page : http://www.steema.net/teechartdocs/teechart8_content.html

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.