Option to define chart size with chart API ? Problem when a pie chart is in the block column

Option to define chart size with chart API ? Problem when a pie chart is in the block column

by Zabelle Motte -
Number of replies: 0
Picture of Particularly helpful Moodlers

Hello, 

I am working on a project that supposes to have a block that present student results with a pie chart.

I successfully manage to design my chart with the simple and well documented Charts API, but my pie chart is very small while integrated in the block column.

too small pie chart in block column

I read in this forum post that the chart size can be modified with css, but changes also affect the legend part and I do not succeed to have a correct presentation.

Does anybody have a suggestion to improve my pie chart presentation ?

Thanks in advance.

Kisses

Zabelle

Average of ratings: -