Hi Kedar,
Thanks for your quick reply. How to convert string to date is not a big problem here, see my code below, i wanna build a bubble chart and use dates as my x axis coordinates, but it seems not work here.....
var oBubbleChart = new sap.viz.ui5.Bubble({
.........
dataset: new sap.viz.core.FlattenedDataset({
dimensions: [{
axis: 1,
name: 'object',
value: "{object}"
}, {
axis: 1,
name: 'id',
value: "{id}"
}],
measures: [{
group: 1,
name: 'att1',
type: new sap.ui.model.type.Date({source:{pattern:"yyyyMMdd"}, pattern:"yyyy-MM-dd"}),
value: '{att1}'
}, {
group: 2,
name: 'att2',
value: '{att2}'
}, {
group: 3,
name: 'att3',
value: '{att3}'
}],
data: {
path: "/"
}
}),
models: myModel
});
The myModel is the list of following block,
.....
{
id: 2,
name: "test",
att1: 2012.12.10,
att2: 83,
att3: 12
}
......