cancel
Showing results for 
Search instead for 
Did you mean: 

VIzFrame - Is there a possibility to get a min and max limit, rendered as a line

0 Kudos

Hello,

Is there a possibility in UI5 to show upper and lower limits?

http://cdn.leanblog.org/wp-content/uploads/2011/04/control-limits-500x268.png

Regards,

Suneel J

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Other better option is to use reference lines. I think it's easier and it suits more to your needs:

oVizFrame.setVizProperties({

  plotArea: {

  referenceLine: {

  line: {

  primaryValues: [{

  value: 80,

  color: "#0000FF",

  type: "line",

  label: {

  text: "Min Value",

  }

  },

  {

  value: 100,

  color: "#FF0000",

  type: "line",

  label: {

  text: "Max Value",

  },

  }]

  }

  }

  }

  })

0 Kudos

Perfecto!!

Thanks Luis.. mightly helpful

0 Kudos

Hello again Luis,

I was wondering if it is possible to give data points that cross the limits in a different color

Regards,

Suneel J.

Former Member
0 Kudos

Hello Suneel

It should be possible with some rules for datapoint, like in this sample:

var chartOption = {

plotArea: {

dataPointStyle: {

rules: [

dataContext: {Country: "USA"},

properties: {

color: "#EACF5E"

},

displayName: "USA"

],

others: {

properties: {

color: "#EB271B"

},

displayName: "Others"

}

}

}

You just have to check  how to put the appropriated rule in the "rules" property to check if the data pooint has crossed the limits, and then change the dataPointStyle color.

You can take a further look here:

https://sapui5.hana.ondemand.com/docs/vizdocs/

0 Kudos

Hi Luis,

How can we put label of reference line right aligned? Can you tell me which viz properties can solve that?

Thanks,

Nitin

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Suneel

You can create measures with the same value in Y axis, and two or more points to cover all the X axis dimension (month/year in the sample).

Then, you can manipulate the lines to remove the markers in the upper/lower limit lines.

I've posted how to do it in these threads:

Regards

Luis Becker

former_member204155
Active Participant
0 Kudos

Hi Suneel,

may be you can do so work around with your data model for chart for LSL and USL values . And somthi9ng like your scenario can be achieved.

See the Bin it may Help.

https://output.jsbin.com/yahiqi/2

Regards,

Kuntal

former_member254395
Active Participant
0 Kudos

Hi Suneel,

I dout its there with the standard charts givent my sap.

However you can goahed and customize one if you need badly for your requirements...

Thanks & Regards

Rabin D