#2043 Added PieChart theme variable support

This commit is contained in:
Ashish Jain
2021-05-06 03:09:36 +02:00
parent 1337ffe9e5
commit edb06b12e9

View File

@@ -34,12 +34,12 @@ export const draw = (txt, id) => {
width = 1200;
}
if (typeof conf.useWidth !== 'undefined') {
if (typeof conf.pie.useWidth !== 'undefined') {
width = conf.useWidth;
}
const diagram = select('#' + id);
configureSvgSize(diagram, height, width, conf.useMaxWidth);
configureSvgSize(diagram, height, width, conf.pie.useMaxWidth);
// Set viewBox
elem.setAttribute('viewBox', '0 0 ' + width + ' ' + height);