on ‎2015 Mar 19 6:45 AM
Hi experts,
Can we show only markers hiding the lines in SAP UI5 Line charts???
If possible please post any solution.
Thanks in advance!!!
Request clarification before answering.
Hi Vinoth,
........line is not plotting at some points due to data in-availability
On such cases,I just need to show the Markers hiding the lines. This is quite confusing, either you have to show a line or only the markers. How are you planning to partially show lines and partially markers. I don't think any ready made config. is available for this.
Regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then define line width as 0. It would solve your problem.
Check this: SAPUI5 SDK - Demo Kit
Regards,
Swaroop
Hi Vinoth,
You can use Bubble or Scatter charts for this. PFB the link to help you out:
UI5 CVOM HTML5 Charts - sap.viz.ui5
Hope it helps.
Best Regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using sap.viz.ui5 charts not a display template.
Hi Vinoth,
Trid to search in this direction but unfortunately I could not see any such functionality included yet in the libraries. I would suggest you to raise a ticket with SAP so that they can include it.
I would like to invite other experts as well to comment on this as this would be a intended functionality for most of the migrations from applet to SAP UI5.
Thanks and Regards,
Swaroop
Hi Vinoth,
If you are using SAP MII15.0, then you can already do this using Data Series functionality for Custom chart as shown below:
Please let me know if you have any questions on the configuration part. I think if you are already on MII15.0, then since MII i5Chart supports this feature out-of the box you could use this instead of using sap ui5 viz chart directly. Please try and let us know if this meets your requirement.
In case you are on some older release of MII and want to use SAP UI5 chart, then you could try setting the line width for the measure to 0 and then the marker alone should appear (hiding the line).
Hope this helps!
Thanks and Best Regards,
Ria
Hi Vinoth,
You cannot directly provide width, it has to be under aggregation plotArea and the range is between 1-7, anything outside it wouldst it to default 2.
PFB:
var oLine = new sap.viz.ui5.Line({
width:"300px",
height:"300px",
plotArea:new sap.viz.ui5.types.Line({width:1,
colorPalette: ["#ffffff","#9CC677"],
}),
title : {
visible : true,
text : 'Title'
},
dataset : oFlattenedDataSet
});
Set the colorPallete so that background and line colour is same as background. But again, the marker color would be same as color palette, so ultimately you would not be able to see anything. I still suggest you t move towards other chart types like bubble to achieve this.
Best Regards,
Swaroop
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.