on 10-25-2016 12:22 PM
Hi Experts,
I have a sample data for my Line chart. I have built the chart as in the attachment. My requirement is to display the points (Heart beat & Temperature) in the chart with different color for certain dates. Say from July 15 - 17.
Please provide suggestions as to how this can be accomplished.
Thanks,
Srinivasanchart.png
hi
Srinivasan,
I hope this piece of code will help you...
var oVizFrame = new sap.viz.ui5.controls.VizFrame({
vizType: "line"
})
oVizFrame.setVizProperties({
plotArea: {
marker: {
visible: true
},
lineRenderer: function(oMarker) {
oMarker.graphic.color = "#5cbae6";
},
markerRenderer: function(oMarker) {
oMarker.graphic.fill = "#5cbae6";
if (oMarker.ctx.Date == "your data value") {
oMarker.graphic.fill = "#FF0000";
} else {
oMarker.graphic.fill = "#008000"
}
}
}
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Silvia,
Thank you for your suggestion. On referring to other blogs I am able to give color to the line. But my requirement is that for specific dates I want my line graph to appear in different colors.
Pardon me if my query is basic.
Thanks,
Srinivasan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not sure if you are aware of the documenation of vizframes. As I see and also only used yet you can just set a color to the plotArea and for axis.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any suggestions on how to proceed further would be very helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.