You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a constant reproducible error when using the resize function if the chart is a piechart. Although I set the transition_duration to 0 before calling the resize function, the chart has an opacity of 0 immediately after calling the function.
The problem occurs when I have multiple charts in one dashboard. These charts have different chart types, but the error only occurs with pie charts.
With single piecharts the error occurs only extremely rarely.
This resize function is used in an export process using Promises and right now the SVG is not visible when exporting.
We have this issue since update to a version >= v3.7. Before that it worked properly
Steps to check or reproduce
in principle, this is what I am using:
constcharts: Array<HTMLDivElement>=d3Select("#content-area").selectAll("div.chart-container").nodes()asArray<HTMLDivElement>;constpromiseArray: Array<IChartExportPromise>=chartsArray.map((chart: HTMLElement,chartIndex: number)=>{constnode: SVGElement=d3Select(chart).select("div.chart").select('svg').node()asSVGElement;//dummy size, normally this is being computedconstchartWidth: number=1920constchartHeight: number=1080;returnnewPromise(resolve=>{constnodeSelection: d3Selection<SVGElement,any,HTMLDivElement,any>=d3Select(node);//fix weird backfillnodeSelection.selectAll("path").attr("fill","none");letsvgString: string;// the bb chart object is allocated to the HTML element using angularJSconstbbChart: ChartModel=angularElement((node.parentNodeasHTMLDivElement)).data();//resize to adapt/change aspect ratioconsttransition:number=bbChart.config('transition_duration');bbChart.config('transition_duration',0)bbChart.resize({height: chartHeight,width: chartWidth});//added for testing, did not have any effectbbChart.flush(false);bbChart.config('transition_duration',transition);svgString=bbChart.export();[...]});});
The text was updated successfully, but these errors were encountered:
Hi @tjohannto, can you provide reproducible working example?
From your comment, it seems affected by some changes from v3.7 and the issue can happen with the combination of different option. To figure out the cause, need reproducible generation option.
Description
I have a constant reproducible error when using the resize function if the chart is a piechart. Although I set the transition_duration to 0 before calling the resize function, the chart has an opacity of 0 immediately after calling the function.
The problem occurs when I have multiple charts in one dashboard. These charts have different chart types, but the error only occurs with pie charts.
With single piecharts the error occurs only extremely rarely.
This resize function is used in an export process using Promises and right now the SVG is not visible when exporting.
We have this issue since update to a version >= v3.7. Before that it worked properly
Steps to check or reproduce
in principle, this is what I am using:
The text was updated successfully, but these errors were encountered: