Dashboards & Visualizations

Can somone share a simple XML tag to change the Pie Chart label font size?

kallisrayar1986
Path Finder

Please share if you have simple xml tag for Pie chart label font size. I tried this below, but it did not work:

charting.chart.labelStyle.defaultTextFormat.size: 20

bmacias84
Champion

Yes you should be able to too using the following. It resembles they way you apply CSS win jquery.


<option name="charting.legend.labelStyle.defaultTextFormat">{italic:true,size:14}</option>

CustomChartingConfig-chartlegend

Cheers,

0 Karma

antonyhan
Path Finder

but what if we want to change the font size for the pie label?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/ChartConfigurationReference doesn't list this option.
http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/CustomChartingConfig-ChartLegend#Pie_c... lists it as not supported by JSChart, which would explain why the SimpleXML docs don't mention it at all.

kallisrayar1986
Path Finder

thanks for sharing this, for some reasons the above options does not work for me. Could there be anything that i need to add?

      <query></query>
      <earliest>0</earliest>
      <latest>now</latest>
    </search>        
    <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
    <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
    <option name="charting.axisTitleX.visibility">visible</option>
    <option name="charting.axisTitleY.visibility">visible</option>
    <option name="charting.axisTitleY2.visibility">visible</option>
    <option name="charting.legend.labelStyle.defaultTextFormat">{italic:true,size:20}</option>
    <option name="charting.axisX.scale">linear</option>
    <option name="charting.axisY.scale">linear</option>
    <option name="charting.axisY2.enabled">false</option>
    <option name="charting.axisY2.scale">inherit</option>
    <option name="charting.chart">pie</option>        
    <option name="height">700px</option>
    <option name="width">100%</option>       
    <option name="charting.drilldown">all</option>
0 Karma

bmacias84
Champion

I dont see anything wrong, but I also does know what else you apply. You may want try attaching your own css to the page for those elements.

0 Karma

kallisrayar1986
Path Finder

Is it not possible without that css?

0 Karma

bmacias84
Champion

The setting I gave should work. If its not working it could be a bug in 6.2.1, but applying your own css always works.

0 Karma

kallisrayar1986
Path Finder

Thank you very much for your time, i will add my own css and make this work for now.

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...