Skip to Content
0

CSS for a chart in a dashboard in sap design studio 1.6 SP4 patch 2

Oct 27, 2017 at 05:47 PM

55

avatar image

Good day:

I'm having problems with a dashboard made in Design Studio 1.6 SP4 patch 2, I need to center the label for a chart and I use this code:

.v-m-legend .v-label

{ transform: translate(44px,0px) !important; }

The result when I run the dashboard in chrome is this:

The label is like centered, but if I run the dashboard in MS Edge or Explorer it doesn't work.

Do you know how can I fix this problem or if there's another way to center the label?.

Thanks in advance for any help that you can give me.

Greetings

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Tammy Powlas
Oct 27, 2017 at 07:43 PM
1

Andoni Paz - hello

Instead of using CSS, I recommend using an InfoChart and then using the properties of the legend to center - see below:

FYI - I also changed the tag from Dashboards to Lumira Designer (successor to Design Studio)


andoni.jpg (270.2 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

thanks Tammy for the response, I tried to use the infochart and it works centering the labels, the only problem that I have is in order to center the label I need to have a dimension in the rows.

Do you know if there is a way to center the label without having a dimension in the data source?.

Thanks in advance for any help that you can give me.

Greetings

0