Splunk Search

Increase chart image size

bsteelz93
Path Finder

I have the following pie chart. It's working fine but the chart is really small and the writing gets bunched together. I tried to increase the image by using the height and width option but that did not work. Is there an option that would increase the size of the chart?

<?xml version='1.0' encoding='utf-8'?>
<dashboard>
  <label>my dashboard</label>
  <row>
    <chart>
      <searchName>test_search</searchName>
       <option name="charting.chart">pie</option>
       <option name="height">500px</option>
       <option name="width">500px</option>
       <title>my chart</title>
    </chart>
  </row>
</dashboard>
1 Solution

fox
Path Finder

here's some advanced xml that works well for sizing, you could also try specifying 100% rather than pxs

      <param name="savedSearch">20.2 Farm errors by asset</param>

      <module name="TimeRangePicker">

          <param name="searchWhenChanged">True</param>

          <param name="default">Last 24 hours</param>

          <module name="HiddenChartFormatter">

              <param name="charting.chart">pie</param>
              <module name="EnablePreview">

                  <param name="enable">True</param>

                  <param name="display">False</param>

                  <module name="JobStatus" />

                      <module name="FlashChart">

                          <param name="width">100%</param>

                          <param name="height">400px</param>

                      </module>
                      <module name="ViewRedirectorLink">

                          <param name="viewTarget">flashtimeline</param>

                          <param name="popup">True</param>      

                      </module> 
              </module>

          </module>

      </module>

  </module>

View solution in original post

fox
Path Finder

here's some advanced xml that works well for sizing, you could also try specifying 100% rather than pxs

      <param name="savedSearch">20.2 Farm errors by asset</param>

      <module name="TimeRangePicker">

          <param name="searchWhenChanged">True</param>

          <param name="default">Last 24 hours</param>

          <module name="HiddenChartFormatter">

              <param name="charting.chart">pie</param>
              <module name="EnablePreview">

                  <param name="enable">True</param>

                  <param name="display">False</param>

                  <module name="JobStatus" />

                      <module name="FlashChart">

                          <param name="width">100%</param>

                          <param name="height">400px</param>

                      </module>
                      <module name="ViewRedirectorLink">

                          <param name="viewTarget">flashtimeline</param>

                          <param name="popup">True</param>      

                      </module> 
              </module>

          </module>

      </module>

  </module>
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...