Skip to Content
Former Member
Nov 25, 2016 at 08:54 PM

Harvey Ball Micro Chart doesn't show multiple color

130 Views Last edit Nov 25, 2016 at 09:08 PM 3 rev


I want to use Harvey Ball Micro Chart to show multiple pie with different colors, but it only shows the color for first item. I have tried adding multiple color values to colorPalette as well as individual HarveyBallMicroChartItem but it does't work.

Following API documentation says: Colors from the palette are assigned to each slice consequentially.

Is this an existing issue with sap.suite.ui.microchart.HarveyBallMicroChart or something wrong with how I am using it ?

Please find attached code.

<mvc:View controllerName="sap.suite.ui.microchart.sample.HarveyBallMicroChart.HarveyBallMicroChart" xmlns="sap.suite.ui.microchart" xmlns:mvc="sap.ui.core.mvc"> <HarveyBallMicroChart size="M" total="100" totalScale="Mrd" colorPalette="#5cbae6, #b6d957, #ff0000" press="press"> <items> <HarveyBallMicroChartItem fraction="20" fractionScale="Mrd" /> <HarveyBallMicroChartItem fraction="30" fractionScale="Mrd" /> <HarveyBallMicroChartItem fraction="50" fractionScale="Mrd" /> </items> </HarveyBallMicroChart> </mvc:View>