Series visible and invisible

Comments

1 comment

  • Support Admin

    Hi Aanand,

    Plot series have an attribute called visible. By default, this attribute is set to true, unless you explicitly change it:

     <xyPlot name="myPlot">
    <series name="hiddenSeries" visible="false" >
    <data>0 0; 20 20</data>
    </series>
    </xyPlot>

    To alter this attribute from script, you can use the following:

    plotName.seriesName.Visible = true

    or

    plotName.seriesName.Visible = false

    E.g.:

     <button content="See Series">
    <onClick>
    myPlot.hiddenSeries.Visible = true
    </onClick>
    </button>

    Note that series that are not visible still affect plot autoscaling.

    0
    Comment actions Permalink

Please sign in to leave a comment.