How do i get to display the data labels within the Pie Chart. In general the data value and percentage is visible only when mouse is hovered over the chart, but i want that to be displayed always. Please help ??
please suggest a way to display full pie chart label values when pie chart size is smaller. currently ellipsis is coming in the middle , tried "charting.legend.labelStyle.overflowMode" ellipsisEnd option is not working.
Option mentioned by abiocaldas works. However, if you notice that it will display 2, 3, or more decimal places for percent. An alternate option (without editing the XML file)
... | top 5 location | eval percent=round(percent,0) | eval location=location."(".percent."%)"
This way you can also control how many decimal places (1, 2, none etc) you want to display. In the above, it displays % without any decimal places, which many people prefer.
This is 2020, your answer is still saving lives! 😛
And same in 2024. Thank you!
I used http://answers.splunk.com/answers/154860/how-to-aggregate-percentage-information-in-pie-chart-labels... that works like a charm
<option name="charting.chart.showPercent">true</option>
please suggest a way to display full pie chart label values when pie chart size is smaller. currently ellipsis is coming in the middle , tried "charting.legend.labelStyle.overflowMode" ellipsisEnd option is not working.
Have the showPercent to "true." The default is false. It will show the label and the percent next to it.
Example:
This doesn't display the data label in the pie chart. You still have to mouse over for the label to appear.
Just change param to option and this works! See: http://answers.splunk.com/answers/123691/display-percentage-on-pie-charts-in-splunk-6
i don't think you can... all the possible parameters for pie chart: Pie chart properties