Skip to Content
author's profile photo Former Member
Former Member

Overriding chart properties

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 07, 2014 at 03:33 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.