Part 5 Add a column chart
Let's say that you want to show how the number of purchases at Buttercup Games changes over a particular time. Similarly, you want to show this same metric, but broken down into game categories, such as arcade, shooter, and sports. In this part of the tutorial, create a column chart using a chain search.
- Select the add chart icon () in the editing toolbar, and then select Column.
- In the New Data Source panel, name the source Purchase Trends.
- Add your search. For this tutorial, copy and paste the following search into the Search with SPL box:
index=main sourcetype=access_* status=200 action=purchase categoryId!=NULL | fields _time categoryId clientip | timechart count by categoryId
- Expand the Code section and change the Data Source ID to ds_purchase_trends.
- Select Apply & Close
- Title your chart Purchase Trends and leave the description box empty.
- In the General section of the Configuration panel, follow these steps:
- In the Legend section, change the Position option to Bottom.
- Expand the Code section and change the Visualization ID to viz_purchase_trends.
- Move and resize your column chart to the center of the bottom right gray rectangle.
You've completed Part 5 of the Splunk Dashboard Studio tutorial.
Now your dashboard has a column chart. Next, add a single value visualization with a chain search. Continue to Part 6: Add a single value visualization using a chain search.
Part 4 Add a pie chart visualization
Part 6 Add a single value visualization using a chain search
This documentation applies to the following versions of Splunk Cloud Platform™: 8.2.2203, 9.0.2205, 9.0.2208, 9.0.2209 (latest FedRAMP release)