Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem when adding pie slice gap when only a single slice.

$
0
0
I trying to add a slight white gap between pie slices, and when I have two slices, the white space is fine, however, when the pie chart only displays a single slice (i.e fills entire pie), a white line is still displayed across the radius of the pie (see attachment).

To create the white gap between slices, I use pieSliceProperties as seen below with the code snippet.

Code:

FacetChart fc = new FacetChart();
fc.setChartType(ChartType.PIE);
fc.setShowTitle(Boolean.FALSE);
fc.setFacets(new Facet(FACET_ID, FACET_TITLE));
fc.setValueProperty(VALUE_PROPERTY);
fc.setShowShadows(Boolean.FALSE);
fc.setWidth100();
fc.setHeight100();
...
DrawSector pieSliceProperties = new DrawSector();
pieSliceProperties.setLineColor("#FFFFFF");
pieSliceProperties.setLineWidth(1);
fc.setPieSliceProperties(pieSliceProperties);
fc.setData(recordList);
...
Window window = new Window();
window.setTitle(title);
window.setAutoCenter(Boolean.TRUE);
window.setShowMinimizeButton(Boolean.FALSE);
window.setShowMaximizeButton(Boolean.FALSE);
window.setWidth(400);
window.setHeight(400);
window.setKeepInParentRect(Boolean.TRUE);
window.addItem(fc);
window.show();

SmartClient Version: v9.1p_2014-06-17/Pro Deployment (built 2014-06-17)

FF ESR 24.6.0

Thanks

Attached Images
File Type: png screenshot_26.png (24.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles