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

Re: Stacked Bar Chart valueAxis

$
0
0

Maybe this is an alternative:


vizFrame does comes with a chart type called timeseries_column which could plot timestamp as Dimension. There are few guidelines according to my understanding:

1, you must define your timeStamp as Dimension and set it's dataType as "date" like below

var DataSet = new sap.viz.ui5.data.FlattenedDataset({

  dimensions : [

               {name: "DateTime", value: {datetime}, dataType: "date"}

  ],

  measures  : [{name : "TimeLoss",value : "{timeFrom}"}],

     data : {path : "/modelData"}

  });

 

2, try ensure the date value is in milliseconds form in dataset like:

{"datetime": 1271635200000, timeForm: 889232} // Mon Apr 19 2010 08:00:00 GMT+0800

{"datetime": 1273104000000, timeForm: 22321} // Thu May 06 2010 08:00:00 GMT+0800


3, one of the limitation to timeseries_column is that it accepts only 1 dimension.


I have a demo here https://jsfiddle.net/Chapman/Lbephzqn/


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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