Skip to content

Commit

Permalink
Fixed the treemaps dataseries to include the labels and added the squ…
Browse files Browse the repository at this point in the history
…arified layout as a default
  • Loading branch information
smartziou committed Mar 6, 2024
1 parent bcdc02c commit af84844
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ function convertToValidHighchartJson(responseData, originJson){

if(seriesInstance.type == "treemap")
{
// Add the squarified layout algorithm as a default in treemaps
seriesInstance.layoutAlgorithm = 'squarified';
seriesInstance.data = [];
for (let dataIndex = 0; dataIndex < responseData.series[index].data.length; dataIndex++) {

Expand All @@ -474,7 +476,7 @@ function convertToValidHighchartJson(responseData, originJson){
seriesInstance.data.push({ name: dataName, value: dataValue, colorValue: dataValue });
}
}
if(seriesInstance.type == "dependencywheel" || seriesInstance.type == "sankey")
else if(seriesInstance.type == "dependencywheel" || seriesInstance.type == "sankey")
{
seriesInstance.data = responseData.series[index].data;
seriesInstance.keys = responseData.series[index].keys;
Expand Down

0 comments on commit af84844

Please sign in to comment.