Reputation: 1000
In my StockChart I want to select all datasets but it just binds the first dataset item (Anadolu YK).
How can I do to select others? (Avrupa YK) (Bursa) (Antalya) ..
dataSets: [{
title: "Anadolu YK",
fieldMappings: [{
fromField: "value",
toField: "value"
}, {
fromField: "volume",
toField: "volume"
}],
dataProvider: chartData1,
categoryField: "date"
},
{
title: "Avrupa YK",
fieldMappings: [{
fromField: "value",
toField: "value"
}, {
fromField: "volume",
toField: "volume"
}],
dataProvider: chartData2,
categoryField: "date"
},
Upvotes: 1
Views: 423
Reputation: 8595
To make a Data Set pre-selected set its compared
property to true
:
{
title: "Avrupa YK",
fieldMappings: [ {
fromField: "value",
toField: "value"
}, {
fromField: "volume",
toField: "volume"
} ],
dataProvider: chartData2,
categoryField: "date",
compared: true
}
Upvotes: 2