charts icon indicating copy to clipboard operation
charts copied to clipboard

Custom background (color or image)

Open hofmannsven opened this issue 3 years ago • 6 comments

Hey! Is it possible to customize the background of the chart? I want to customize the background color or even add a background image.

I already tried to add the background image to the website, but the background (image) is no part of the rendered SVG and consequently not included in the exported SVG file. Can you help?

hofmannsven avatar May 26 '21 20:05 hofmannsven

for now, you can set background for '.chart-container'. it works well. color or image is ok.

xch1029 avatar Jun 21 '21 08:06 xch1029

@xch1029 This solution works well for the visual presentation in the browser but is not visible in the exported file. How can I add (background) styles which are also a part of the exported SVG file?

hofmannsven avatar Jun 21 '21 11:06 hofmannsven

for exported file, we need creator to add this feature. for now,the exported function can't deal background color well

xch1029 avatar Jun 22 '21 02:06 xch1029

@xch1029 Okay. Will it be part of v2?

hofmannsven avatar Jun 22 '21 11:06 hofmannsven

@hofmannsven no guarantees on adding this to v2.

scmmishra avatar Jun 29 '21 05:06 scmmishra

@scmmishra Oh,... Is there any alternative workaround to hook into the export function?

hofmannsven avatar Jun 29 '21 07:06 hofmannsven