Hi! First of all, I’m using ChartJsToImage (let me know if this is the wrong place to ask).
I want my canvas to be transparent, but my title and legend labels to have a background so I can properly read it.
Here is my chart right now:
And here is something I want to achieve.
My code:
{
chart: "{type:'pie',data:{datasets:[{data:[7,2,1,1],backgroundColor:['#0084d1','#c5000b','#ff950e','#5b1f6f','#aecf00','#314004','#83caff','#7e0021','#579d1c','#ffd320','#ff420e','#004586'],borderColor:'#000000',color:'#',borderWidth:4}],labels:['História','Bug','Tarefa','Melhoria']},options:{title:{display:true,text:'Tipos de itens (taxa de inovação)',fontColor:'#000000',font:{size:30}},devicePixelRatio:1.5,legend:{position:'right',labels:{fontColor:'#000000',boxWidth:15}},plugins:{datalabels:{display:true,align:'center',color:'#000000',font:{size:30,weight:'bold'}}}}}",
width: 750,
height: 450,
devicePixelRatio: 1.8,
backgroundColor: 'transparent',
format: 'png'
}
Thank you in advance.