---
title: "Chart Reports"
canonical: "https://support.appfire.com/space/PSJ/15482442/Chart%20Reports"
format: markdown
---
> Macro (aura-html)


Power Dashboard Reports and Gadgets allow users to write SIL code and use the predefined [chart structures](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15482020/Predefined+Structure+Types+for+Power+Dashboard#Chart-Structures) in order to generate line, bar, pie or doughnut charts.** **

# Configuring SIL Reporting Gadget

First you need to add the SIL Reporting Gadget to your dashboard. To do that, click **Add new gadget. **In the **Add new gadget** dialog, click **Load all gadgets**. Search for the SIL Reporting Gadget and add it to your dashboard.

To see more instructions about adding a gadget to your dashboard see [Atlassian documentation](https://confluence.atlassian.com/display/GADGETS/Adding+a+Gadget+to+your+Dashboard).

The **configuration screen** is only available to Jira Administrators and System Administrators.

To configure the gadget you have to select the script file and add the default values for the parameters used in the selected script.

![image](media://668b8c4a-9191-42a6-8762-3821de36ec6d)

The parameters will be passed into the program using the **argv** variable. The values will be available using a construct like **argv["parameter_name"]** or **argv[position].** For the above example, the project can be retrieved using **argv["project"]** or **argv[0]**. 

First the gadget will run with the default values for the parameters, if the values for those parameters were specified in the gadget configuration. 

Once you save the gadget configuration, the report will be displayed. 

> ⚠️ <span style="color: #333333">The script that you are using to generate the report needs to return the chart structure that you are building otherwise the report will throw an error.</span>

  


If you want to return information about another project without having to configure the gadget, all you have to do is add a field for the project using one of the functions for creating fields from [gadget functions](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15481783). After that you will be able to set parameter in the parameter section and run the report with the new value.

![image](media://c64ecaf5-58c3-4f3f-a1e7-835601066616)

# > Macro (anchor)

Examples

## Opened vs Resolved Issues Report

> Macro (include)

## Issues in status report

> Macro (include)

## <span style="color: #ff0066">Chart from JSON</span>

> Macro (include)