JavaScript
var chartDataStore = Ext.create("Ext.data.ArrayStore", {
storeId: "chartData",
fields: [
{ name: "year", type: "integer" },
"country1",
{ name: "value1", type: "integer" },
"country2",
{ name: "value2", type: "integer" },
"country3",
{ name: "value3", type: "integer" }
],
data: [
[1997,"USA",66,"Canada",53,"x",undefined],
[1998,"USA",81,"Canada",67,"x",undefined],
[1999,"USA",83,"Canada",46,"x",0],
[1999,"USA",83,"Canada",46,"x",100],
[2000,"USA",61,"Canada",45,"x",undefined],
[2001,"USA",67,"Canada",53,"x",0],
[2001,"USA",67,"Canada",53,"x",100],
[2002,"USA",68,"Canada",43,"x",undefined]
]
});
var win = Ext.create("Ext.chart.Chart", {
width: 600,
height: 400,
hidden: false,
title: "Example working chart",
renderTo: "demoChart",
layout: "fit",
style: "background:#fff",
animate: true,
store: chartDataStore,
shadow: true,
theme: "Category1",
legend: {
position: "bottom"
},
axes: [{
type: "Numeric",
minimum: 0,
position: "left",
fields: ["value1", "value2", 'value3'],
title: "Value",
minorTickSteps: 1,
grid: {
odd: {
opacity: 1,
fill: "#ddd",
stroke: "#bbb",
"stroke-width": 0.5
}
}
}, {
type: "Category",
position: "bottom",
fields: ["year"],
title: "Year"
}],
series: [{
type: "line",
highlight:...