New to Kendo UI for jQuery? Start a free 30-day trial

Series.notes.icon

configuration

The icon of the notes.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12],
        notes: {
            data: [{
                value: 15,
                text: "Peak Value"
            }],
            icon: {
                background: "red",
                size: 16,
                type: "circle",
                border: {
                    color: "black",
                    width: 1
                }
            }
        }
    }]
});
</script>

The background color of the notes icon.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12],
        notes: {
            data: [{
                value: 15,
                text: "Peak Value"
            }],
            icon: {
                background: "lightblue"
            }
        }
    }]
});
</script>

The border of the icon.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12],
        notes: {
            data: [{
                value: 15,
                text: "Peak Value"
            }],
            icon: {
                border: {
                    color: "red",
                    width: 2
                }
            }
        }
    }]
});
</script>

The size of the icon.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12],
        notes: {
            data: [{
                value: 15,
                text: "Peak Value"
            }],
            icon: {
                size: 20
            }
        }
    }]
});
</script>

The icon shape.

The supported values are:

  • "circle" - the marker shape is circle.
  • "square" - the marker shape is square.
  • "triangle" - the marker shape is triangle.
  • "cross" - the marker shape is cross.

Default: "circle"

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12],
        notes: {
            data: [{
                value: 15,
                text: "Peak Value"
            }],
            icon: {
                type: "square"
            }
        }
    }]
});
</script>

The icon visibility.

Default: "true"

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12],
        notes: {
            data: [{
                value: 15,
                text: "Peak Value"
            }],
            icon: {
                visible: false
            }
        }
    }]
});
</script>