Skip to Content

Designers who have used 1.0 prior to 1.1 would definitely miss the chart styles. They are no longer there. Every now and then question pop up about the styles and the unusable setStyle and getStyle methods.

Here is style that I was able to create for a pie chart, which by the styles standard, pretty basic. But then this is all I can do with what is available.

chart style.jpg

This consist of two pie charts assigned to the same data source. Lower one slightly larger and brighter color than the upper one.

chart outline.jpg

Charts can be positioned manually using the properties panel as shown below

Upper Chart Lower Chart
chart 1 prop.jpg chart 2 prop.jpg

OR can be positioned using script as shown below

var extraDia = 20;
CHART_2.setWidth(CHART_1.getWidth() + extraDia);
CHART_2.setHeight(CHART_1.getHeight() + extraDia);
CHART_2.setTopMargin(CHART_1.getTopMargin() - extraDia/2);
CHART_2.setLeftMargin(CHART_1.getLeftMargin() - extraDia/2);

Either way, if you want a glossy thickness of 10px, add 20px to the width and height of the lower chart and position it 10px to the top-left of the upper chart.

SAP, give us our styles back….

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Wolfgang Bidner

    SAP, give us our styles back…. – well I had not used these styles of Version 1.0 – but noticed that they have gone …  the development process seems very dynamic 😀

    Wobi

    (0) 

Leave a Reply