The Simple XML of charts

As we can see from our example, it is relatively easy to create and configure our charts using Simple XML. When we completed the chart, we used five options to configure the look and feel of the chart, but there are many more that we can choose from.

Our chart element always needs to be between its two parent elements, which are row and panel. Within our chart element, we always start with a title for the chart and a search to power the chart. We can then make additional optional settings for earliest and latest, and then a list of options to configure the look and feel we have demonstrated as follows. If these options are not specified, default values are provided by Splunk:

 1 <chart> 2 <title></title> 3 <search> 4 <query></query> ...

Get Learning Splunk Web Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.