cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding chart properties

Former Member
0 Kudos

Is there any way to add custom configuration to a chart? I have used css to change some font styling, but this can't be done for position attributes like X and Y. For example: I want the labels on the v-axis to align to the left.

Do I need to get deep knowledge of sap.viz for this? How do I hook into the existing chart component using javascript?

Thanks again.

Accepted Solutions (0)

Answers (1)

Answers (1)

mike_howles4
Active Contributor
0 Kudos

I do not believe that you can subclass the Design Studio charts with the current SDK to create a variant, without starting with the cvom or d3 libraries and reinventing the wheel largely.  You could attempt to get creative with some carefully written CSS styling selectors to get the axes to possibly reposition themselves but it would be a stretch, and require intimate familiarity of the DOM or SVG structure of the component to even pull it off.

I think mostly DS charts are d3 based now versus cvom, but both libraries are available, if you use the stdInclude parameter, if you are going the SDK route.