The label of the note.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        text: "Important Date"
                    }
                }]
            }
        }
    }
});
</script>

The background color of the label. Accepts a valid CSS color string, including hex and rgb.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        background: "yellow"
                    }
                }]
            }
        }
    }
});
</script>

The border of the label.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        border: {
                            width: 2,
                            color: "red"
                        }
                    }
                }]
            }
        }
    }
});
</script>

The color of the border. Accepts a valid CSS color string, including hex and rgb.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        border: {
                            color: "green"
                        }
                    }
                }]
            }
        }
    }
});
</script>

The dash type of the border.

The following dash types are supported:

  • "dash" - a line consisting of dashes
  • "dashDot" - a line consisting of a repeating pattern of dash-dot
  • "dot" - a line consisting of dots
  • "longDash" - a line consisting of a repeating pattern of long-dash
  • "longDashDot" - a line consisting of a repeating pattern of long-dash-dot
  • "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot
  • "solid" - a solid line

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        border: {
                            dashType: "dash"
                        }
                    }
                }]
            }
        }
    }
});
</script>

The width of the border in pixels. By default the border width is set to zero which means that the border will not appear.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        border: {
                            width: 2
                        }
                    }
                }]
            }
        }
    }
});
</script>

The text color of the note label. Accepts a valid CSS color string, including hex and rgb.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        color: "red"
                    }
                }]
            }
        }
    }
});
</script>

The font style of the note label.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        font: "16px Verdana"
                    }
                }]
            }
        }
    }
});
</script>

The template which renders the labels.

The fields which can be used in the template are:

  • value - the category value

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        template: (data) => `Note: ${kendo.toString(data.value, "yyyy-MM-dd")}`
                    }
                }]
            }
        }
    }
});
</script>

If set to true the chart will display the category notes label. By default the category notes label are visible.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        visible: false
                    }
                }]
            }
        }
    }
});
</script>

The rotation angle of the label. By default the label are not rotated.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        rotation: 45
                    }
                }]
            }
        }
    }
});
</script>

The format used to display the note label. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        format: "Date: {0:yyyy-MM-dd}"
                    }
                }]
            }
        }
    }
});
</script>

The label note text.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        text: "Important milestone"
                    }
                }]
            }
        }
    }
});
</script>

The position of the category axis note label.

  • "inside" - the label is positioned inside of the icon.
  • "outside" - the label is positioned outside of the icon.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        position: "outside"
                    }
                }]
            }
        }
    }
});
</script>