cancel
Showing results for 
Search instead for 
Did you mean: 

Harvey Ball Micro Chart doesn't show multiple color

Former Member
0 Kudos

Hi,

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.

https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/sap.suite.ui.microchart.HarveyBallMicroChart....

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>

Thanks,

Tarun

Accepted Solutions (0)

Answers (0)