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

    series.PointMarker = new BuiltinMarker((MarkerShape)s, 4);

    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