New to Kendo UI for AngularStart a free 30-day trial

YAxisCrosshairComponent

Represents the crosshair configuration options of the Y axis (see example).

html
<kendo-chart>
 <kendo-chart-y-axis>
  <kendo-chart-y-axis-item>
   <kendo-chart-y-axis-item-crosshair [visible]="true" color="#ff0000" [width]="2">
    <kendo-chart-y-axis-item-crosshair-tooltip format="c"></kendo-chart-y-axis-item-crosshair-tooltip>
   </kendo-chart-y-axis-item-crosshair>
  </kendo-chart-y-axis-item>
 </kendo-chart-y-axis>
</kendo-chart>

Selector

kendo-chart-y-axis-item-crosshair

Inputs

NameTypeDefaultDescription

color

string

Specifies the color of the crosshair.

opacity

number

Specifies the opacity of the crosshair.

tooltip

YAxisCrosshairTooltip

Specifies the tooltip configuration of the crosshair.

visible

boolean

Determines whether the crosshair is visible.

width

number

Specifies the width of the crosshair.

Methods

notifyChanges

Updates the component fields with the specified values and refreshes the Chart.

Use this method when the configuration values cannot be set through the template.

ts
item.notifyChanges({ visible: true });
Parameters

changes

any

An object containing the updated input fields.

In this article
SelectorInputsMethods
Not finding the help you need?
Contact Support