> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Displaying a Chart

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[old doc.lw link]: https//doc.lucidworks.com/app-studio/4.2/3151

[localhost link]: http://localhost:3000/docs/5/app-studio/reference/modules/visualisations/chart-display

[mintlify link]: https://doc.lucidworks.com/docs/5/app-studio/reference/modules/visualisations/chart-display

The Chart Display tag displays the facet provided in a chart.

The body of the Chart Display tag can contain a [Series Facet](/docs/5/fusion/dev-portal/appkit/reference/modules/visualisations/facet-data-series) tag for rendering multiple series using facets and also a [Series Result List](/docs/5/fusion/dev-portal/appkit/reference/modules/visualisations/data-series) tag for rendering multiple series using results.

Along with this, there are other tags to customize the chart. These include the [Chart Tooltip](/docs/5/fusion/dev-portal/appkit/reference/modules/visualisations/chart-tooltips) tag for modifying the tooltip, [Chart Legend](/docs/5/fusion/dev-portal/appkit/reference/modules/visualisations/legend) tag for modifying the legend, [Chart Credit](/docs/5/fusion/dev-portal/appkit/reference/modules/visualisations/adding-credits) tag for adding a credit to the chart, and the [Chart Export](/docs/5/fusion/dev-portal/appkit/reference/modules/visualisations/chart-export) tag for exporting the chart.

<LwTemplate />

## Usage

### Displaying a facet

To visualize information in facets using frequency to build the graph, use the facetName attribute:

```xml wrap  theme={"dark"}
<chart:display response="response" facet-name="current_products" title="Current Products" type="pie"></chart:display>
```

<img src="https://mintcdn.com/lucidworks/J_LymSfRoWq3UOvg/assets/images/appkit/4.2/highchart-facet-pie.png?fit=max&auto=format&n=J_LymSfRoWq3UOvg&q=85&s=5b0224760beb174ed4a7005b441d41a7" alt="Pie chart" width="516" height="295" data-path="assets/images/appkit/4.2/highchart-facet-pie.png" />

### Displaying a polar chart

```xml wrap  theme={"dark"}
<chart:display response="response" facet-name="current_products" title="Current Products" type="line" radar-or-polar="polar"></chart:display>
```

<img src="https://mintcdn.com/lucidworks/J_LymSfRoWq3UOvg/assets/images/appkit/4.2/highchart-polar.png?fit=max&auto=format&n=J_LymSfRoWq3UOvg&q=85&s=e278cfe53647d16f86fb3e37ea2db1cc" alt="Polar chart" width="451" height="317" data-path="assets/images/appkit/4.2/highchart-polar.png" />

### Displaying a radar chart

```xml wrap  theme={"dark"}
<chart:display response="response" facet-name="current_products" title="Current Products" type="line" radar-or-polar="radar"></chart:display>
```

<img src="https://mintcdn.com/lucidworks/J_LymSfRoWq3UOvg/assets/images/appkit/4.2/highchart-radar.png?fit=max&auto=format&n=J_LymSfRoWq3UOvg&q=85&s=14d6e037d0156daffbf06c0d9fd68933" alt="Radar chart" width="417" height="316" data-path="assets/images/appkit/4.2/highchart-radar.png" />

To see all related attributes, see the [chart:credit](/docs/5/fusion/dev-portal/appkit/reference/tags/lightning.directive.chartCredit) tag documentation.
