The following code was taken from
https://www.sharpplot.com/Languages.htm. It produces a nice unadorned
pie chart.
----
'InitCauseway'⎕CY'sharpplot'
InitCauseway''
sp←⎕NEW Causeway.SharpPlot
data←33 18 12 10
exp←0 0 0 20
key←'UK' 'France' 'Italy' 'Ireland'
sp.DrawPieChart(data exp)
svg←sp.RenderSvg Causeway.SvgMode.FixedAspect
3500⌶svg
----
But, the same code wrapped in a function fails:
----
fake_chart←{
sp←⎕NEW Causeway.SharpPlot
data←33 18 12 10
exp←0 0 0 20
key←'UK' 'France' 'Italy' 'Ireland'