Changing the BarStyle(Chart) at Run Time

;) Hi Everyone! I would like to know, how can i change my barstyle of my hcart at run time in fast report. I try many ways, but i didn??t obtain!!! I try, something like this: "chart1.chart.sereis1.barstyle := bsarrow;", but ;) . So, someone can help me?! debtor since already... Raphael

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:09AM
    not all props available
    but here is a hint the series is an indexed list so first series is series[0]
    what you may have to do is create more than 1 series using the same datapoints
    and set the active property of the series to true or false.
    ;)
  • edited 10:09AM
    gordk, Thanks for your atencion!!! But can you give an example in code, how can i access the property series?! Because in my script, series insn??t declared!!! Thanks for all!!! Raphael! ;)
  • gordkgordk St.Catherines On. Canada.
    edited 10:09AM
    procedure Chart1OnBeforePrint(Sender: TfrxComponent);
    begin
    if <condition> then
    begin
    chart1.series[0].active := false;
    chart1.series[1].active := true;
    end
    else
    begin
    chart1.series[0].active := true;
    chart1.series[1].active := false;
    end;

    end;
    ;)
  • edited 10:09AM
    Hi gordk!!! Here i??m again!!! I try access the property Active, exactly as you told me, but, the message (for "Series") "Identifer undeclared" yet appear!!! Is this my FastReports version?! I??m using the version 3.03. Really, i don??t know what can happening ;) ... but, again... thanks for your attention!!!
  • gordkgordk St.Catherines On. Canada.
    edited 10:09AM
    Yes, you are way out of date current version is 3.11
    ;)
  • edited 10:09AM
    Thanks a lot Gordk!!! I will update my version!!!
    Regards... Raphael

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.