Hello Experts,
Is there a setting that I can use to create upper control limit,Lower Control Limit and Mean on sap.viz.ui5.Line object? I don't see a property.To overcome that I passed ucl,mean and lcl as different lines with static data but the problem is I need to have marker on my data line but the marker is showing up on the control lines as I am passing that as data lines.
below is the code Snippet
var chartDataMap = { | |||||||||||
dimensions : [ | |||||||||||
{axis : 1, name: "MRDate", value: "{MRDate}"} | |||||||||||
], | |||||||||||
measures : [ | |||||||||||
{name :"MR",value : "{meltRate}"}, | |||||||||||
{name :"ucl",value : ucl}, | |||||||||||
{name :"Avg",value : Avg}, | |||||||||||
{name :"lcl",value : lcl} | |||||||||||
], | |||||||||||
data : { | |||||||||||
path : "/data" | |||||||||||
} | |||||||||||
}; | |||||||||||
var oDataset = new sap.viz.core.FlattenedDataset(chartDataMap); | |||||||||||
var oModel = new sap.ui.model.json.JSONModel(chartData); | |||||||||||
oDataset.setModel(oModel); | |||||||||||
var oChart = new sap.viz.ui5.Line( | |||||||||||
{ | |||||||||||
id: "line"+index, | |||||||||||
width : "90%", | |||||||||||
height : "500px", | |||||||||||
title: { | |||||||||||
visible : true, | |||||||||||
text : DisplayName | |||||||||||
}, | |||||||||||
plotArea: { | |||||||||||
colorPalette : ['#0000FF','#FF0000','#008000','#FF0000'] | |||||||||||
}, | |||||||||||
yAxis :new sap.viz.ui5.types.Axis().setScale(new sap.viz.ui5.types.Axis_scale().setMinValue(300).setMaxValue(450).setFixedRange(true)), | |||||||||||
dataset: oDataset | |||||||||||
} | |||||||||||
); | |||||||||||
oChart.getPlotArea().setWidth(1); |
|