How to Display Percentage values on TOP of CCC Bar Chart in CDE (Non-Stacked Bar Chart)

1.2k views Asked by At

My requirement is to show percentage values on the top of the bar ccc Bar chart (non-stacked), so far I have got the percentages in between the bar charts all I need is to display them on the top.

I have added this function in clickable action and made clickable TRUE

function(scene) { var pctVar = scene.vars.value.percent;

alert(pctVar.label);

}

Then in advance properties I have changed values visible = True and Valuemask= {Value}% so until this I can get values in middle of the bar chart

So what and all I need to do to show the percentages on the TOP of the Bar Charts? Thanks in Advance!

enter image description here

1

There are 1 answers

1
Gian García On

valuesAnchor: Top

Extension points [

label_textMargin: 1 label_textBaseline: bottom }