final Number highSlice = ElementTypeUtils.getNumberAttribute(element, SparklineAttributeNames.NAMESPACE,
SparklineAttributeNames.HIGH_SLICE, new Double(1));
final boolean clockwise = ElementTypeUtils.getBooleanAttribute(element, SparklineAttributeNames.NAMESPACE,
SparklineAttributeNames.COUNTER_CLOCKWISE, false);
final PieGraphDrawable drawable = new PieGraphDrawable();
drawable.setValue(numbers);
drawable.setStartAngle(startAngle);
drawable.setLowSlice(lowSlice);
drawable.setMediumSlice(mediumSlice);
drawable.setHighSlice(highSlice);
drawable.setCounterClockWise(clockwise);
return new PieSparklinesWrapper(drawable);
}