cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP UI5 Line charts

Former Member
0 Likes
1,073

Hi experts,

Can we show only markers hiding the lines in SAP UI5 Line charts???

If possible please post any solution.

Thanks in advance!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

swaroop_anasane
Active Contributor
0 Likes

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

Former Member
0 Likes


Hi Swaroop,

I am trying to show only the markers.

Regards,

Vinoth

swaroop_anasane
Active Contributor
0 Likes

Then define line width as 0. It would solve your problem.

Check this: SAPUI5 SDK - Demo Kit

Regards,

Swaroop

swaroop_anasane
Active Contributor
0 Likes

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

Former Member
0 Likes

Hi Swaroop,

I thought the same way.

The point to raise the question is the 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.

Thanks for the idea!!!

-----------

Vinoth

swaroop_anasane
Active Contributor
0 Likes

Try interpolate option on disp temp.

Former Member
0 Likes

I am using sap.viz.ui5 charts not a display template.

swaroop_anasane
Active Contributor
0 Likes

Sorry.... Confused iit with anothr post. Let me see...there should be some type parameter in ui5 chart as well for this.

swaroop_anasane
Active Contributor
0 Likes

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

RiaNinan
Product and Topic Expert
Product and Topic Expert
0 Likes

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

Former Member
0 Likes

Hi Ria,

Thanks for the suggestion.

I tried to set the line width "0" in the plot area,it still shows lines.

I can't use i5Charts,As I work on MII 14.0,

Regards,

Vinoth

swaroop_anasane
Active Contributor
0 Likes

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