Skip to Content
avatar image
Former Member

Harvey Ball Micro Chart doesn't show multiple color


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>



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers