Changing colors on XYPoint Series graphs?

Posted by: zenrhapsody on 8 September 2017, 2:31 pm EST

  • Posted 8 September 2017, 2:31 pm EST

    I'm using <FONT size=2>

    series.PointMarker = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>BuiltinMarker</FONT></FONT><FONT size=2>((</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>MarkerShape</FONT></FONT><FONT size=2>)s, 4);

    </FONT>but I want to specify the color. Can I?
  • Replied 8 September 2017, 2:31 pm EST

    ZenRhapsody,


    Use the PointBorder and/or PointFill properties to set the color for the markers for all data points in the series.  For example...


        series.PointBorder = new SolidLine(Color.DarkGreen);
        series.PointFill = new SolidFill(Color.LightGreen);


    Use the PointBorders and/or PointFills properties to set the color for a marker for an individual data point in the series.  For example...


        series.PointBorders[1] = new SolidLine(Color.DarkGreen);
        series.PointFills[1] = new SolidFill(Color.LightGreen);

  • Replied 8 September 2017, 2:31 pm EST

    Thank you! 


    I guess this is a RTFM (read the friggin' manual) moment !


    But I just missed it.


     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels