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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...