Is there a way to show all tooltip when the chart is already rendered?

Is there a way to show all tooltip when the chart is already rendered?

Expected Behavior

show the tooltip at once not when mouseover
image

Current Behavior

only hover then show the tooltip
image

Possible Solution

i see some resolves like this,but is there an easy way to solve my problem? and in the latest version i can’t get the this.datasets and this.scale in onComplete fn.
var myLine = new Chart(ctx).Line(chartData, {
showTooltips: false,
onAnimationComplete: function () {

    var ctx = this.chart.ctx;
    ctx.font = this.scale.font;
    ctx.fillStyle = this.scale.textColor
    ctx.textAlign = "center";
    ctx.textBaseline = "bottom";

    this.datasets.forEach(function (dataset) {
        dataset.points.forEach(function (points) {
            ctx.fillText(points.value, points.x, points.y - 10);
        });
    })
}

});

Steps to Reproduce (for bugs)

Context

Environment

  • Chart.js version:
  • Browser name and version:
  • Link to your project:

Author: Fantashit

1 thought on “Is there a way to show all tooltip when the chart is already rendered?

Comments are closed.