Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: how to make date type as a measure in viz chart

$
0
0

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

 

 

  }

......


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>