<kendo:chart-valueAxisItem-labels>

The axis labels configuration.

Example

<kendo:chart-valueAxisItem>
    <kendo:chart-valueAxisItem-labels></kendo:chart-valueAxisItem-labels>
</kendo:chart-valueAxisItem>

Configuration Attributes

background java.lang.String

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

Example

<kendo:chart-valueAxisItem-labels background="background">
</kendo:chart-valueAxisItem-labels>

color java.lang.String

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

Example

<kendo:chart-valueAxisItem-labels color="color">
</kendo:chart-valueAxisItem-labels>

font java.lang.String

The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".

Example

<kendo:chart-valueAxisItem-labels font="font">
</kendo:chart-valueAxisItem-labels>

format java.lang.String

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

Example

<kendo:chart-valueAxisItem-labels format="format">
</kendo:chart-valueAxisItem-labels>

margin float

The margin of the labels. A numeric value will set all margins. Further configuration is available via kendo:chart-valueAxisItem-labels-margin.

Example

<kendo:chart-valueAxisItem-labels margin="margin">
</kendo:chart-valueAxisItem-labels>

mirror boolean

If set to true the chart will mirror the axis labels and ticks. If the labels are normally on the left side of the axis, mirroring the axis will render them to the right.

Example

<kendo:chart-valueAxisItem-labels mirror="mirror">
</kendo:chart-valueAxisItem-labels>

padding float

The padding of the labels. A numeric value will set all margins. Further configuration is available via kendo:chart-valueAxisItem-labels-padding.

Example

<kendo:chart-valueAxisItem-labels padding="padding">
</kendo:chart-valueAxisItem-labels>

position java.lang.String

The position of the axis labels. By default, labels are positioned next to the axis. When position is set to end, the labels are placed at the end of the crossing axis— typically, at the top or right end of the Chart unless the crossing axis was reversed. or When position is set to start, the labels are placed at the start of the crossing axis— typically, at the left or bottom end of the Chart unless the crossing axis was reversed..

Example

<kendo:chart-valueAxisItem-labels position="position">
</kendo:chart-valueAxisItem-labels>

rotation java.lang.Object

The rotation angle (in degrees) of the labels. By default the labels are not rotated. Angles increase clockwise and zero is to the left. Negative values are acceptable. Can be set to "auto" if the axis is horizontal in which case the labels will be rotated only if the slot size is not sufficient for the entire labels. Further configuration is available via kendo:chart-valueAxisItem-labels-rotation.

Example

<kendo:chart-valueAxisItem-labels rotation="rotation">
</kendo:chart-valueAxisItem-labels>

skip float

The number of labels to skip. By default no labels are skipped.

Example

<kendo:chart-valueAxisItem-labels skip="skip">
</kendo:chart-valueAxisItem-labels>

step float

Label rendering step. Every n-th label is rendered where n is the step

Example

<kendo:chart-valueAxisItem-labels step="step">
</kendo:chart-valueAxisItem-labels>

template java.lang.String

The template which renders the labels.The fields which can be used in the template are: value - the value value.

Example

<kendo:chart-valueAxisItem-labels template="template">
</kendo:chart-valueAxisItem-labels>

visible boolean

If set to true the chart will display the value axis labels. By default the category axis labels are visible.

Example

<kendo:chart-valueAxisItem-labels visible="visible">
</kendo:chart-valueAxisItem-labels>

visual java.lang.String

A function that can be used to create a custom visual for the labels. The available argument fields are: createVisual - a function that can be used to get the default visual.; culture - the default culture (if set) on the label; format - the default format of the label; options - the label options.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; text - the label text. or value - the category value.

Example

<kendo:chart-valueAxisItem-labels visual="visual">
</kendo:chart-valueAxisItem-labels>

Configuration JSP Tags

kendo:chart-valueAxisItem-labels-border

The border of the labels.

More documentation is available at kendo:chart-valueAxisItem-labels-border.

Example

<kendo:chart-valueAxisItem-labels>
    <kendo:chart-valueAxisItem-labels-border></kendo:chart-valueAxisItem-labels-border>
</kendo:chart-valueAxisItem-labels>

kendo:chart-valueAxisItem-labels-margin

The margin of the labels. A numeric value will set all margins.

More documentation is available at kendo:chart-valueAxisItem-labels-margin.

Example

<kendo:chart-valueAxisItem-labels>
    <kendo:chart-valueAxisItem-labels-margin></kendo:chart-valueAxisItem-labels-margin>
</kendo:chart-valueAxisItem-labels>

kendo:chart-valueAxisItem-labels-padding

The padding of the labels. A numeric value will set all margins.

More documentation is available at kendo:chart-valueAxisItem-labels-padding.

Example

<kendo:chart-valueAxisItem-labels>
    <kendo:chart-valueAxisItem-labels-padding></kendo:chart-valueAxisItem-labels-padding>
</kendo:chart-valueAxisItem-labels>

kendo:chart-valueAxisItem-labels-rotation

The rotation angle (in degrees) of the labels. By default the labels are not rotated. Angles increase clockwise and zero is to the left. Negative values are acceptable. Can be set to "auto" if the axis is horizontal in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.

More documentation is available at kendo:chart-valueAxisItem-labels-rotation.

Example

<kendo:chart-valueAxisItem-labels>
    <kendo:chart-valueAxisItem-labels-rotation></kendo:chart-valueAxisItem-labels-rotation>
</kendo:chart-valueAxisItem-labels>

Event Attributes

template String

The template which renders the labels.The fields which can be used in the template are: value - the value value.

Example

<kendo:chart-valueAxisItem-labels template="handle_template">
</kendo:chart-valueAxisItem-labels>
<script>
    function handle_template(e) {
        // Code to handle the template event.
    }
</script>

visual String

A function that can be used to create a custom visual for the labels. The available argument fields are: createVisual - a function that can be used to get the default visual.; culture - the default culture (if set) on the label; format - the default format of the label; options - the label options.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; text - the label text. or value - the category value.

Example

<kendo:chart-valueAxisItem-labels visual="handle_visual">
</kendo:chart-valueAxisItem-labels>
<script>
    function handle_visual(e) {
        // Code to handle the visual event.
    }
</script>

Event Tags

kendo:chart-valueAxisItem-labels-template

The template which renders the labels.The fields which can be used in the template are: value - the value value.

Example

<kendo:chart-valueAxisItem-labels>
    <kendo:chart-valueAxisItem-labels-template>
        <script>
            function(e) {
                // Code to handle the template event.
            }
        </script>
    </kendo:chart-valueAxisItem-labels-template>
</kendo:chart-valueAxisItem-labels>

kendo:chart-valueAxisItem-labels-visual

A function that can be used to create a custom visual for the labels. The available argument fields are: createVisual - a function that can be used to get the default visual.; culture - the default culture (if set) on the label; format - the default format of the label; options - the label options.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; text - the label text. or value - the category value.

Example

<kendo:chart-valueAxisItem-labels>
    <kendo:chart-valueAxisItem-labels-visual>
        <script>
            function(e) {
                // Code to handle the visual event.
            }
        </script>
    </kendo:chart-valueAxisItem-labels-visual>
</kendo:chart-valueAxisItem-labels>
In this article
Not finding the help you need?