cancel
Showing results for 
Search instead for 
Did you mean: 

Can we fix i5 chart Bar width in SAP MII 14.0 SP4

Former Member
0 Kudos


Hi All,

I want to fix the bar width of i5 bar chart in sap MII 14.0 SP4. Is it possible?

please help on this issue.

Regards

Venkat

Accepted Solutions (0)

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Venkata,

I don't think there is any direct property to change the width of a bar in bar i5chart. But, you can achieve it using CSS.


Please add the following piece of code in your style sheet -


     rect.v-datapoint.v-morphable-datapoint{

                              width:15px !important;

                              }

Before Applying CSS -


After Applying CSS -


Regards,

Sai Vellanki.

Former Member
0 Kudos

Thanks Sai,

Is there any option to change Y-axis values like 20000 to 20K and value on tool tip 20,000.

Regards

Venkat


saivellanki
Active Contributor
0 Kudos

Hi Venkata,

I don't think, we have an option to format the text in i5chart.


Need an Expert advise on this, Sorry to bother you every time. can you please help here?


Regards,

Sai Vellanki

Former Member
0 Kudos

Hi Sai,

This code working in 14.0 but same code not working in 15.0. there is no change in bar width with this css code.

Regards

Venkat

Private_Member_14935
Active Participant
0 Kudos

Hi Venkat, Sai,

There are no direct methods to format the text, but you can try to do this in onAfterRendering event of chart.

Also, there is no method available in SAP UI5 to remove the gaps between the bars, however using jQuery/css it might be possible.

Thanks and Best Regards,

Ria