Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 27, 2017 at 07:43 PM

    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)

    Add comment
    10|10000 characters needed 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