ceTe Software Help Library for Java August - 2020
DynamicPDF Generator for Java / Programming with Generator for Java / Charts / Chart Elements / Markers
In This Topic
    Markers
    In This Topic

    Markers are symbols used to identify the individual data values i.e. the point of intersection of an X and Y coordinate on a chart. Markers can only be used with Area, Line and XYScatter charts. The following symbols can be used as markers:

    • Circle
    • Square
    • Triangle
    • Diamond
    • Plus
    • Cross
    • Dash
    • Asterisk

     The below code shows how to add marker to the series in a line chart:

    [Java]  
         DateTimeLineSeries lineSeries = new DateTimeLineSeries("Series name");
         Marker marker = Marker.getCircle(2);
         lineSeries.setMarker(marker);
    

    Note: Markers can also be added from the series constructors.

    See Also