Hey!
We truly hope that our free tool comes in handy for your business, especially these days. Follow our news, stay safe & pivot on!

duplicate chart data

Answered

Hello, I’m trying to implement a pie chart but the data is displayed twice.
Here is the code used :

var pivot2 = new WebDataRocks({
container: "#wdr-tableau_highchart",
toolbar: true,
height: 600,
report: {
dataSource: {
filename: urlDataSource
},
"slice": {
"rows": [
{
"uniqueName": "Code criée"
}
],
"columns": [
{
"uniqueName": "Measures"
}
],
"measures": [
{
"uniqueName": "Total somme poids du lot",
"aggregation": "sum",
"format": "4354nfho"
}
]
},
"options": {
"grid": {
"type": "classic",
"showTotals": "off",
"showGrandTotals": "off"
}
},
"formats": [
{
"name": "4354nfho",
"thousandsSeparator": " ",
"decimalSeparator": ".",
"decimalPlaces": 2,
"currencySymbol": "",
"currencySymbolAlign": "left",
"nullValue": "",
"textAlign": "right",
"isPercent": false
}
]
},
reportcomplete: function() {
pivot2.off("reportcomplete");
createChart();
}
});


function createChart() {
pivot2.highcharts.getData({
type: "pie"
}, function(data) {
Highcharts.chart('highchartsContainer', data);
});
}

1 answer

WebDataRocks Team WebDataRocks August 28, 2020

Hello,
 
Thank you for reaching out to us.
 
Our team would like to inform you that we did not manage to reproduce the problem using the provided code snippet.
 
Please prepare the sample where the issue would be reproducible. We suggest using the following CodePen example as a template: https://codepen.io/webdatarocks/pen/RwaVmqq.
 
Our team is looking forward to hearing from you.
 
Kind regards,
WebDataRocks Team

Please login or Register to Submit Answer