Sets the updated event handler for ToolTip that gets triggered whenever toolTip content is updated.
Default: null
- var chart = new CanvasJS.Chart("container",
- {
- .
- .
- toolTip: {
- .
- .
- updated: function ( e ) {
- console.log("X Value for which toolTip is shown: " + e.entries[0].xValue);
- }
- }],
- .
- .
- });
- chart.render();
- e: {
- entries: [{
- xValue,
- dataPoint,
- dataSeries,
- dataPointIndex,
- dataSeriesIndex
- }],
- content: "Updated Content of Tooltip",
- toolTip: {options},
- chart: {}
- }
Also See: