yAxis.notes.icon Object

The icon of the notes.

yAxis.notes.icon.background String

The background color of the notes icon.

Example - set the y axis notes icon background

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        background: "red"
      },
      data: [{ value: 1 }]
    }
  }
});
</script>

yAxis.notes.icon.border Object

The border of the icon.

Example - set the y axis notes icon border

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        border: {
          width: 2,
          color: "red"
        }
      },
      data: [{ value: 1 }]
    }
  }
});
</script>

yAxis.notes.icon.border.color String

The border color of the icon.

Example - set the y axis notes icon border color

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        border: {
          color: "green"
        }
      },
      data: [{ value: 1 }]
    }
  }
});
</script>

yAxis.notes.icon.border.width Number

The border width of the icon.

Example - set the y axis notes icon border width

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        border: {
          width: 3
        }
      },
      data: [{ value: 1 }]
    }
  }
});
</script>

yAxis.notes.icon.size Number

The size of the icon.

Example - set the y axis notes icon size

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        size: 30
      },
      data: [{ value: 1 }]
    }
  }
});
</script>

yAxis.notes.icon.type String (default: "circle")

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.

Example - set the y axis notes icon shape

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        type: "triangle"
      },
      data: [{ value: 1.3 }]
    }
  }
});
</script>

yAxis.notes.icon.visible Boolean (default: "true")

Sets the icon visibility.

Example - set the y axis notes icon visibility

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 2], [2, 3]]
  }],
  yAxis: {
    notes: {
      icon: {
        visible: false
      },
      data: [{ value: 1 }]
    }
  }
});
</script>
In this article
Not finding the help you need?