cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member365727
Active Contributor
0 Kudos

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'