Plot -Hintergrundfarbe ändernHTML

HTML-Programmierer
Anonymous
 Plot -Hintergrundfarbe ändern

Post by Anonymous »

Auf der Suche nach Ratschlägen, wie Sie die Hintergrundfarbe des Handlungsplottes in transparentes ändern können? < /p>

Code: Select all

pie_chart = {
'data': [{
'labels': ['V0', 'V1', 'V2', 'V3', 'V4', 'V5', 'V6', 'V7', 'V8', 'V9'],
'values': [55, 22, 31, 32, 33, 45, 44, 42, 12, 67],
'type': 'pie',
'sort': false,
}],

'layout': {
backgroundColor: "rgba(255,255,255,0.5)",
width: 320,
}

}

Plotly.newPlot('plot', pie_chart.data, pie_chart.layout);< /code>
#plot {
background-color: lightblue;
}< /code>

 

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post