Hi it’s possible combine stackedArea with line on the one chart ???
I can combine only area with line in one chart …
Hi
Yes
Try the next sample:
var data = [
{ sales:"5.0",sales1:"3.4",sales2:"2.1", year:"2000" },
{ sales:"2.8",sales1:"4.8",sales2:"0.3", year:"2001" },
{ sales:"1.1",sales1:"4.4",sales2:"2.9", year:"2002" },
{ sales:"4.4",sales1:"5.5",sales2:"2.6", year:"2003" },
{ sales:"2.6",sales1:"6.0",sales2:"1.4", year:"2004" },
{ sales:"4.1",sales1:"5.7",sales2:"1.1", year:"2005" }
]
var AreaChart = new dhtmlXChart({
view:"stackedArea",
container:"chart_container",
value:"#sales#",
alpha:0.6,
gradient:true,
xAxis:{
title:"Year",
template:"#year#"
},
yAxis:{
title:"Sales per year"
}
})
AreaChart.addSeries({
view: "line",
value:"#sales1#",
color:"#45abf5",
label:"#sales1#"
});
AreaChart.parse(data,"json");
hi, when i want show label value on the line chart in combine with stackedArea , labels don’t shows …
Could you provide your chart data and properties to reproduce the issue? May be + image woth fact and exepting result?
sorry i use old library , not 3.6
Yes, it can be the reason of such behaviour. Locally in 3.6 everything shows.