Edit this page

valueAxis.crosshair Object

The crosshair configuration options.

valueAxis.crosshair.color String

The color of the crosshair.

valueAxis.crosshair.width Number

The width of the crosshair.

valueAxis.crosshair.opacity Number

The opacity of the crosshair.

valueAxis.crosshair.dashType Number

The dash type of the crosshair.

valueAxis.crosshair.visible Boolean(default: true)

The dash type of the crosshair.

valueAxis.crosshair.tooltip Object

The crosshair tooltip configuration options.

valueAxis.crosshair.tooltip.background String

The background color of the tooltip.

valueAxis.crosshair.tooltip.border Object

The border configuration options.

valueAxis.crosshair.tooltip.border.color String(default: "black")

The color of the border.

valueAxis.crosshair.tooltip.border.width Number(default: 0)

The width of the border.

valueAxis.crosshair.tooltip.color String

The text color of the tooltip.

valueAxis.crosshair.tooltip.font String(default: "12px Arial,Helvetica,sans-serif")

The tooltip font.

valueAxis.crosshair.tooltip.format String

The tooltip format.

Example

//sets format of the tooltip
format: "C"

valueAxis.crosshair.tooltip.padding Number |Object

The padding of the tooltip.

Example

// sets the top, right, bottom and left padding to 3px.
padding: 3

// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }

valueAxis.crosshair.tooltip.template String |Function

The tooltip template. Template variables:

  • value- the point value (either a number or an object)

Example

// chart initialization
$("#sparkline").kendoSparkline({
     data: [200, 450, 300, 125],
     valueAxis: {
         crosshair: {
             visible: true,
             tooltip: {
                 visible: true,
                 template: "value: #= value #"
             }
         }
     }
});

valueAxis.crosshair.tooltip.visible Boolean(default: false)

A value indicating if the tooltip should be displayed.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy