I've incorporated the angular-fusion charts directive into my application and successfully created a heat map chart following an example. However, I'm encountering an issue where the values of the x-axis are not displaying in my application. I'm struggling to identify what is causing this problem.
var salesHMChart = new FusionCharts({
type: 'heatmap',
renderAt: 'chart-container',
width: '550',
height: '470',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Downtime Reasons",
"bgColor": "ffffff",
"outCnvBaseFontSize": "10",
"outCnvBaseFontColor": "000000",
"canvasBgColor": "ffffff",
"toolTipColor": "ffffff",
"showXaxisLabels": "1",
"toolTipBorderThickness": "0",
"toolTipBgColor": "#000000",
"toolTipBgAlpha": "80",
"toolTipBorderRadius": "2",
"toolTipPadding": "5",
"hdivLineColor": "e8700e",
"vdivLineColor": "e8700e",
"showborder": "0",
"showPlotBorder": "1",
"plotBorderColor": "e8700e",
"canvasBorderColor": "e8700e"
},
"columns": {
"column": [
{
"id": "1123741",
"label": "order 1123741"
},
{
"id": "858546",
"label": "order 858546"
}
]
},
"dataset": [
{
"data": [
{
"rowid": "Limpieza Input",
"columnid": "1123741",
"value": "1",
"tllabel": "Limpieza Input",
"trlabel": "Order #1123741"
},
{
"rowid": "Marcha Input",
"columnid": "858546",
"value": "27",
"tllabel": "Marcha Input",
"trlabel": "Order #858546"
},
{
"rowid": "Averia KKE Input",
"columnid": "858546",
"value": "2",
"tllabel": "Averia KKE Input",
"trlabel": "Order #858546"
},
{
"rowid": "Documentacion Input",
"columnid": "858546",
"value": "1",
"tllabel": "Documentacion Input",
"trlabel": "Order #858546"
},
{
"rowid": "Cambio (Set-Up) Input",
"columnid": "858546",
"value": "7",
"tllabel": "Cambio (Set-Up) Input",
"trlabel": "Order #858546"
},
{
"rowid": "Limpieza Input",
"columnid": "858546",
"value": "5",
"tllabel": "Limpieza Input",
"trlabel": "Order #858546"
},
{
"rowid": "Mantenimiento planificado Input",
"columnid": "858546",
"value": "1",
"tllabel": "Mantenimiento planificado Input",
"trlabel": "Order #858546"
},
{
"rowid": "No laborable Input",
"columnid": "858546",
"value": "5",
"tllabel": "No laborable Input",
"trlabel": "Order #858546"
},
{
"rowid": "Sin trabajo Input",
"columnid": "858546",
"value": "14",
"tllabel": "Sin trabajo Input",
"trlabel": "Order #858546"
},
{
"rowid": "ST Maq. parada","
"columnid": "858546",
"value": "1",
"tllabel": "ST Maq. parada",
"trlabel": "Order #858546"
}
]
}
],
"colorrange": {
"gradient": "1",
"minvalue": "1",
"code": "fce797",
"startlabel": "Low",
"endlabel": "High",
"color": [
{
"maxvalue": "4",
"code": "f74c25",
"label": "Medium"
},
{
"code": "c71610",
"maxvalue": "7"
}
]
}
}
})
.render();
});
Feel free to check out the Demo on Fiddle
I would greatly appreciate any assistance with resolving this issue.
UPDATE
After making changes to the column id from 1123741
to 112741
and removing the entire columns object, the chart started working correctly. As altering the data is not an option, I am eager to understand why it was failing in the previous configuration!! :(