cancel
Showing results for 
Search instead for 
Did you mean: 

value of each sector on pie graph in viz chart sap ui5

prasad
Participant
0 Kudos

I have a pie chart using viz ui5

oController.ticketsgraph = new sap.viz.ui5.controls.VizFrame('graph',{vizType : "pie",vizProperties : { title:{ text : "Details " },      

     plotArea: {             colorPalette : d3.scale.category20().range(),             drawingEffect: "glossy"                 } }, width : "100%", });

attached a flattened data set and add feed to the pie chart.

but  i just want to print the value on each part of piechart we are getting the value when we hover on the graph instead of that value must be printed on chart

as below

Please do the needful

Regards

Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

yogesh_beria
Explorer
0 Kudos

Hi Prasad,

You can check the below url for the properties:

https://sapui5.netweaver.ondemand.com/sdk/docs/vizdocs/index.html#reference/chartProperty/Charts/Pie...

The vizProperty object might not have been initiated correctly.

Regards,

Yogesh

prasad
Participant
0 Kudos

thanks for the reply yogesh i did the changes its working in Internet Explorer  but in chrome its failing . How come this is possible? thanks prasad

yogesh_beria
Explorer
0 Kudos

Hi Prasad,

That's strange. It generally happens the other way round for me.

Clearing the cache usually fixes the issue.

You can try that. Can't think of anything else because of which it should not work on chrome.

Regards,

Yogesh

yogesh_beria
Explorer
0 Kudos

Hi Prasad,

You can add the following to your plotArea object when setting the vizProperties.

dataLabel: {

  visible: true,

  type: "value"

  }

So your plotArea object looks like this:

plotArea: {   

         colorPalette : d3.scale.category20().range(),

         drawingEffect: "glossy",     

       dataLabel: {

            visible: true,

            type: "value"

       }

}


Regards,

Yogesh

prasad
Participant
0 Kudos

thanks for the reply iam using the viz frame yogesh but i could not find the data label attribute for that when used its giving an error graph is not at all displaying thanks Prasad