Hello,
Your attached file solve tooltip problem of mine but it gives error in showing horizontal stackedbar chart.
Error is =
“Operation is not supported
[Break On This Error] f == “light” ? (k = h == “x” ?..8e8”), k.addColorStop(1, “#9d9d9d”)); "
in firefox.
My code is here,
var data=[{ c_id:“a”, closed:“42000”, progress:“5462”}, { c_id:“b”, progress:“151200”}, { c_id:“c”, closed:“55000”}, { c_id:“d”, progress:“10”, newone:“20”}, { c_id:“e”, newone:“75000”}, { c_id:“f”, progress:“45000”}, { c_id:“g”, closed:“25000”, progress:“2500”}];
var g_list = [{ group:“closed”, text:“Closed”, color:"#66cc33"}, { group:“progress”, text:“Progress”, color:"#ff9933"}, { group:“newone”, text:“New”, color:"#ffff66"}];
var stack_chart = new dhtmlXChart({
view: “stackedBarH”,
container: self.element_id+"-"+self.chart+“chart”,
value:"#"+g_list[0].group+"#",
gradient: “3d”,
border: false,
width: 1024,
radius: 0,
color: g_list[0].color,
origin:0,
xAxis: {
lines:true,
title:“Total Value”
},
yAxis: {
title:“name”,
template:function(obj){
return obj[‘c_id’];
}
},
padding: {
left: 75
},
legend: {
values: g_list,
align:“left”,
valign:“top”,
layout: “x”,
marker: {
type:“round”,
width:12
}
}
});
for (var k = 1; k<g_list.length;k++){
var col = g_list[k];
stack_chart.addSeries({
value: “#”+col.group+"#",
color: col.color,
});
}
stack_chart.parse(data, “json”);
In original dhtmlxchart.js it was working.
Is there any solution for this??
Thanks,
Kunal