chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
64.44k stars 11.9k forks source link

Ability to use HTML on chart title #5258

Closed znypah777 closed 6 years ago

znypah777 commented 6 years ago

I've been digging through the docs and stack overflow but can't seem to find an answer to my question.

can we use HTML on the title for the chart? let's say like an image that contains a link or something

I've tried this

 title: {
           text: "<img src='https://files.coinmarketcap.com/static/img/coins/16x16/bitcoin.png'/>",
           display: true
}

it's rendered as text. is this possible in chartjs?

etimberg commented 6 years ago

@znypah777 that's not supported because all of the Chart.js rendering happens on a single HTML 5 canvas.