on 2017 Dec 19 1:12 PM
I want the points to be linked even if there are missing values.
How can you not show every date?
var oDataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions : [{
name : "Datum und Uhrzeit",
value : "{date}",
dataType : "date"
}],
measures : [
{
name : "Wert",
value : "{value}"
}],
data : {
path : "/row"
}
});
oVizFrame.setDataset(oDataset);
oVizFrame.setModel(oModel);
oVizFrame.setVizType("line");
//4.Set Viz properties
oVizFrame.setVizProperties({
title: {
text: diagName
},
valueAxis: {
title: {
visible: false
}
},
categoryAxis: {
title: {
visible: false
}
},
legend : {
visible: false
},
plotArea: {
colorPalette : ["#0101DF","#F6CECE","#F6CECE"],
marker:{visible : false},
dataPoint:{invalidity: "ignore"},
referenceLine: {
line: {
valueAxis: [{
value: og,
visible: true,
size: 1,
type: "dotted",
label: {
text: "Obergrenze",
visible: true
}
},{
value: ug,
visible: true,
size: 1,
type: "dotted",
label: {
text: "Untergrenze",
visible: true
}
}]
}
}
}});
var feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({
"uid": "categoryAxis",
"type": "Dimension",
"values": ["Datum und Uhrzeit"]
}),
feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({
"uid": "valueAxis",
"type": "Measure",
"values": ["Wert"]
});
oVizFrame.addFeed(feedCategoryAxis);
oVizFrame.addFeed(feedValueAxis);
return oVizFrame;
}
});
As you have date value defined as dimension, you could try using timeseries_line chart which comes with plotArea.dataPoint.invalidity. This property could allow you to connect the dots over the missing value. A sample is availble on https://sapui5.hana.ondemand.com/#/sample/sap.viz.sample.TimeConfig/preview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
i have found the mistake.
The property invalidity is just available in the timeline.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't understand what do you mean. In the SDK the dots are connecting(choose the small dataset, this seems "far" so that it looks like there are "missing values").
For a better answer, provide clarifications, view code, the dataset used, more relevant controller code or better yet a jsfiddle or something of that sort.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.