Tooltip

The Tooltip follows the pointer movement and is used to indicate the value of a point. This feature is applicable for line, column, pie, and area Sparkline. You can customize the tooltip fill, e-border and e-font.

  • CSHTML
  • <ej-spark-line>
    <e-tool-tip visible="true">
    </e-tool-tip>
    </ej-spark-line>

    Tooltip Template

    HTML elements can be displayed in the tooltip by using the template option of the tooltip. The template option takes the value of the id attribute of the HTML element. You can use the #point.x# and #point.y# as place holders in the HTML element to display the x and y values of the corresponding point.

  • CSHTML
  • <div id="item" style="display: none;">
        <div>
            <div>#point.x#</div>
            <div>#point.y#</div>
        </div>
    </div>
    <ej-spark-line>
    <e-tool-tip visible="true" template="item">
    </e-tool-tip>
    </ej-spark-line>