Skip to Content
Nov 02, 2016 at 06:12 AM

Define the Y-axis parameter as "time"


Hi All,

I am using Scatter chart with time axis.

I want to have, time on the Y-axis (in HH:mm) format And Date on the x-axis.

I have used timeAxis due to which i am able to get the Date on the x-axis, but when I try to format the value axis as "time" I get error

[50005] - valueAxis : does not meet the minimum or maximum number of feeds definition.

I have to plot the day and on what did the event happened.Please find the screenshot attached.

Below is the code snippet that i tried:

var oDatasetDuration = new{
dimensions: [{
 name: 'TakenOn',
 value: '{TakenOn}',
dataType: 'date'

measures: [
name: 'TakenOn',
 dataType: 'time',
value: {
    parts: ['TakenOn'],
  formatter: function(sTime) {
 var sTime = new Date(sTime);"sap.ui.core.format.DateFormat");
var oDateFormat = sap.ui.core.format.DateFormat.getTimeInstance({
 pattern: "HH:mm"
 return oDateFormat.format(sTime);

  var feedx = new sap.viz.ui5.controls.common.feeds.FeedItem({	                                                            uid: "valueAxis",
				                type: "Measure",
				                values: ['TakenOn']

 var feedy = new sap.viz.ui5.controls.common.feeds.FeedItem({
				                uid: "timeAxis",
				                type: "Dimension",
				                values: ['TakenOn']


capture.png (32.2 kB)