Hello,
I am able to add a Chart to a Layout , but when i am trying to add series to chart its not working; and i am getting error as - lineChart.series is NOT a function.
Please let me know where i am making mistake.
{{
var lineChart =({
view: “line”,
value: “#sales#”,
line: {
color: “#3399ff”,
width: 3
},
item: {
borderColor: “#ffffff”,
color: “#000000”,
borderWidth: 1,
radius: 3
},
xAxis: {
template: “#year#”
},
offset: 0,
yAxis: {
start: 0,
end: 35000,
step: 5000
},
legend:{
values:[{text:"Received",color:"#3399ff"},{text:"Processed",color:"#ff9900"},{text:"Failed",color:"#ee4339"}],
valign:"bottom",
align:"right",
width:75,
layout:"x",
marker:{
type:"round",
width:15
}
}
});
lineChart.addSeries({
value:“#sales3#”
});
chart1 = nesteadLayout1.cells("b").attachChart(lineChart);
chart1.parse(dataset,"json");
}}
Regards,
Ram