Display custom charts and quick tables on your dashboard

A key feature of Jira dashboards is displaying your data through statistics and charts for effective, at-a-glance reporting. This article demonstrates a related feature available in Rich Filters for Jira Dashboards, namely the Rich Filter Flexi Charts gadget. This lets you generate detailed charts on your dashboard and display quick tables on the fly.

Contents:

Prerequisites

Final result

When you've worked through all the steps in this tutorial, you should have a dashboard that contains two flexi chart gadgets:

  • One contains a donut chart showing the number of story points worth of issues reported by each reporter.

  • One contains a stacked bar chart showing resolved and unresolved issues for each priority.

The two flexi chart gadgets, which are the focus of this tutorial, can be seen on the right of the image below. The gadgets on the left (Rich Filter Controller and Rich Filter Results) have already been covered in previous tutorials.

Dashboard showing a rich filter controller with active filter, results gadget, and two flexi chart gadgets

Both flexi chart gadgets can also display quick tables that provide details of the data summarized in the charts: these are accessed by clicking the Show table button in the bottom-right corner of the flexi chart gadgets. The below image shows an example:

Flexi chart displaying story points by reporter, with quick table below it showing the same data in more detail

Rich filter and dashboard basic setup

In this section, you'll set up a basic rich filter and dashboard.

  1. If you've already worked through other tutorials in this series, you can base any gadgets you create while following this article on a previously created rich filter. Check that you have one available (find existing rich filters under Apps > Rich Filters). If not, follow the instructions in Get started with Rich Filters for Jira Dashboards to create a new rich filter before continuing.

  2. Create a new dashboard (Dashboards > Create dashboard).

  3. Make sure it uses the left sidebar layout. We'll put our charts in the right-hand column, as they benefit from having more display space than other gadget types. You can set this using the Change layout menu at the top of the dashboard.

If you want a more detailed explanation of creating a new dashboard, see Create a simple dashboard.

Your first Flexi Chart

Rich Filter Flexi Charts gadgets allow you to show one-dimensional charts (single statistic type) or two-dimensional charts (two statistic types), with data points of your choice displayed for each value.

Let's create a simple one-dimensional chart showing each reporter's story points.

  1. Add a Rich Filter Flexi Charts gadget to your dashboard (Learn more on how to create a simple dashboard).

  2. Move the gadget to the right-hand column of your dashboard by dragging and dropping it.

  3. There are several fields you should configure in the gadget config form (for the moment, we'll leave the Chart type as the default Donut type):

    1. Rich filter: Set this to your rich filter.

    2. Breakdown by > Statistic type: We'll get this chart to show a breakdown by reporters, so select Reporter in the Statistic type dropdown.

    3. Value: For each reporter, let's show the number of story points' worth of issues they have reported. Choose Story Points.

  4. Your gadget config form should look like the following image. Check it is correct, then click Submit.

  5. Your Rich Filter Flexi Charts gadget should look like the following image.

Suppose the selected Statistic type has options for which the matching issues are equal to zero for the selected Value. In that case, those options are still greyed out in the legend (and quick tables, as you'll see later) but are not included in the chart. For example, in the donut chart above, Chris and Will have no story points for their issues.

Manipulate your chart display

The Rich Filter Flexi Charts gadget config form offers several options for changing the default display.

  1. Return to your Rich Filter Flexi Charts gadget config form (see Easier configuration with the Rich filter menu).

  2. We haven't discussed the following options previously. Update them as described below:

    1. Filter out None: If this option is selected, issues with the statistic type empty won't be included in the chart (in the Reporter's case, this may have no effect, as empty values are unlikely). Check this box if you wish.

    2. Sort by: This dropdown offers different values depending on the chosen statistic type. Select the Total option. This will sort the chart data in descending order by the number of story points rather than ascending reporter names in alphabetical order. In the case of donut/pie charts, the data runs clockwise from the top.

    3. Reverse sort order: reverses the default sort order of the option chosen in Sort by. In this case, checking the box would sort the chart data by the number of story points in ascending order. We've kept the box unchecked.

  3. Your config form should look like the following image. Check they are correct, then click Submit.

  4. You should end up with a different display in your chart gadget. Feel free to play around with these settings until you get a display that you are happy with.

  5.  Go back into your gadget config form and look at the different chart types available in the Chart type dropdown. The Rich Filter Flexi Charts gadget provides a variety of one—and two-dimensional charts to cover all your needs.

One-dimensional chart types:

  • Donut

  • Pie

  • Gauge

  • Bar

  • Line

  • Treemap

  • Word cloud

Two-dimensional chart types:

  • Clustered bar

  • Stacked bar

  • Multi-line

6. Try out a few types of one-dimensional charts to see the variety.

You can find more information on the configuration options available for different gadgets in our Working with Rich Filter Gadgets reference articles, such as The Rich Filter Flexi Charts Gadget.

Chart interactive features

The different chart types all have interactive features. For example:

  • You can hover over the columns/slices to display exact values as tooltips. This can be especially useful in donut charts when the gadget display is too narrow to show the labels seen in previous screenshots.

  • You can click the values or their bars/slices to load lists of all the associated issues in a separate tab.

Create two-dimensional charts

Let's create a two-dimensional chart. In this case, we'll create a stacked bar graph showing the number of resolved and unresolved issues for each priority.

  1. Add another Rich Filter Flexi Charts gadget to your dashboard (Click here to learn more on how to add gadgets).

  2. Drag and drop the gadget to the right column of your dashboard. Later, we'll add other features to the left column.

  3. Set the following field values in the gadget config form:

    1. Rich filter: Set this to the same rich filter your other Flexi chart gadget uses.

    2. Chart type: Choose a Stacked bar.

    3. Primary breakdown > Statistic type: Choose Priority in this dropdown.

    4. Secondary breakdown > Statistic type: choose Resolved / Unresolved in this dropdown.

    5. Value: We'll show the number of issues for each priority and resolved / unresolved combination. Choose Issue Count in this dropdown.

  4. Your Rich Filter Flexi Charts gadget config form should look like the following image. Check it is correct, then click Submit.

  5. Your gadget should look like this.

Filter charts using your controller

You'll notice how connected everything is as you use Rich Filters for Jira Dashboards more. With this in mind, let's look at filtering your chart display using a Rich Filter Controller gadget.

  1. Add a Rich Filter Controller gadget to your dashboard using the Add a Gadget side panel.

  2. Drag and drop it to the left-hand column of the dashboard if it hasn't already been placed there.

  3. In the controller config form, set the Rich filter to the same Rich filter your other gadgets are based on, and click Submit.

If you use a rich filter from a previous tutorial, you may already have some filters on your controller. If you created a fresh new rich filter for this tutorial:

Try applying some filters in the controller. Note how they filter issues in both flexi chart gadgets. 

Display quick tables

Flexi charts have quick tables available to provide details of the data summarized in the chart. Quick tables are displayed by clicking the Show table button in the bottom-right corner of the gadget.

  1. Click the Show Table button to display a tabular representation of your data.

As with any other table in rich filters, you can sort the data in a quick table by different columns by clicking the column headings. Click a heading multiple times to toggle between ascending and descending order.

Tables generated from two-dimensional charts can be sorted by ascending and descending column values, row values, and totals by clicking the arrow controls in the relevant column and row headings.

Further exercises

To add further power to the dashboard, in our final example, we added a Rich Filter Results gadget in the left-hand column, below the Rich Filter Controller gadget, based on the same Rich filter (Create a simple dashboard that explains how to do this). You can complete this step on your dashboard to complete the tutorial.

Your dashboard should look like this:

As a further exercise, we encourage you to explore using smart filters in flexi charts. Smart filters allow you to filter and group your issues using configurable smart clauses based on JQL and also have the advantage that, when defined, they become available for use in other places. This includes statistic types in statistics and charts and columns in views. Use our Smart filters in statistics and charts exercise as a starting point, and try adding a smart filter as a statistic type in a new flexi chart gadget.

Next steps

This is the last topic in the Fundamentals article series. Each one works as a standalone topic, so you can jump to specific topics of interest if you missed any or want to revisit ones you've already covered.

You can use the rich filter you created in this article as a starting point for other tutorials.