CDXYChartMBS Transparency Issues

Setting the background color of a CDXYChartMBS to transparent results in a black background. Following code in the paint event of a canvas results in a chart with purely black background:

DIM Chart AS NEW CDXYChartMBS(me.Width, me.Height, CDXYChartMBS.kTransparent) g.DrawPicture chart.makeChartPicture, 0, 0

It doesn’t help to add the following line:

Chart.setTransparentColor(Chart.kTransparent)

Is this a bug? Any help appreciated.
Alex

makeChartPicture does not provide mask.
You have to make PNG to get mask exported.

How would I do that without saving to disk but use it in my canvas directly?

simply like this:

dim pngData as string = c.makeChart(c.kPNG) Backdrop = PNGStringToPictureMBS(pngData)

Awesome, thanks!

Welcome