2
rated 0 times
[
7]
[
5]
/ answers: 1 / hits: 91477
/ 8 Years ago, tue, january 31, 2017, 12:00:00
How can I set the code that there will be no hover effects, hover options, (hover) links etc on chart?
I'm using chart.js. Below is my code, where I set pie chart.
Html..
<div id=canvas-holder style=width:90%;>
<canvas id=chart-area />
</div>
..and js...
$(document).ready(function () {
var config = {
type: 'pie',
data: {
datasets: [{
data: [60,20],
backgroundColor: [
#ddd,
#58AC1C
],
label: 'Dataset 1'
}],
labels: [
Bla1 ,
Bla2 +
]
},
options: {
responsive: true
}
};
window.onload = function() {
var ctx = document.getElementById(chart-area).getContext(2d);
window.myPie = new Chart(ctx, config);
};
});
More From » jquery