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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...