Skip to Content
avatar image
Former Member

Stacked Bar Chart: Show Time Scale(like 14:22) in x-axis of stacked_bar Chart using viz_frame

Hi Experts,

Below is the image of my stacked bar.

Here, I am trying to show the time scale in x-axis of stacked_bar chart and I have no idea how to show time scale.I tried few things like passing datatype as date,but nothing is happening.

var oPerformanceStripDataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions: [{
axis: 1,
name: "ChartType",
value: "{ChartType}"
},
{
axis : 2,
name : 'StoppageType',
value : "{StoppageType}"
}],

measures: [{
name: "Date",
value: "{Date}",
dataType: 'date'
}],

data: {
path: "/Rowset/Row"
}
});

I want to show like below image.

Thanks,

Sony

sfeko.png (9.2 kB)
iitvh.png (9.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 07, 2017 at 04:54 PM

    Set chart type as stacked bar chart

    I guess you are trying to measure Planned, Unplanned and Runtime which are coming from 'StoppageType', if so set measure as 'StoppageType' and dimension as 'Date'

    Add comment
    10|10000 characters needed characters exceeded