Quantcast
Channel: SCN : Blog List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 646

Missing Chart Styles? At least here is one for a pie chart...

$
0
0

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.jpgchart 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....


Viewing all articles
Browse latest Browse all 646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>