Skip to content

Commit 2cba26b

Browse files
authored
Merge pull request MicrosoftDocs#3483 from MicrosoftDocs/portals-2039264
Portals chart update - supportability - 2039264
2 parents 0244514 + 9e50274 commit 2cba26b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

powerapps-docs/maker/portals/configure/add-chart.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: sandhangitmsft
55
ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom:
8-
ms.date: 09/22/2020
8+
ms.date: 09/30/2020
99
ms.author: sandhan
1010
ms.reviewer: tapanm
1111
---
@@ -16,18 +16,19 @@ You add a chart to a webpage by using a Liquid tag named [Chart](../liquid/porta
1616

1717
- The **Copy** field on a webpage.
1818
- In the **Source** field on a [Web template](../liquid/store-content-web-templates.md).
19-
20-
For example, `{% chart id:EE3C733D-5693-DE11-97D4-00155DA3B01E %}`
2119

2220
![Chart example](../media/dynamics365-chart-example.png "Chart example")
2321

24-
You can also specify the ID of a view (saved query) to filter the query. For example:
22+
For example, to show leads by source and filtered for only open leads view:
2523

2624
```
2725
<!—Leads by Source – Open Leads -->
2826
{% chart id:"EE3C733D-5693-DE11-97D4-00155DA3B01E" viewid:"00000000-0000-0000-00AA-000010001006" %}
2927
```
3028

29+
> [!IMPORTANT]
30+
> You must specify the values for both the [`chart id`](#get-the-id-of-a-chart) and the [`viewid`](#get-the-id-of-a-view) parameters to render a chart on a portals webpage.
31+
3132
## Get the ID of a chart
3233

3334
1. Go to the target entity, for example, **Sales** > **Leads**.
@@ -44,7 +45,12 @@ You can also specify the ID of a view (saved query) to filter the query. For exa
4445

4546
7. Paste the `visualizationid` value into your Liquid chart tag declaration for the chart ID parameter, for example:
4647

47-
`{% chart id:EE3C733D-5693-DE11-97D4-00155DA3B01E %}`
48+
```
49+
<!—Leads by Source – Open Leads -->
50+
{% chart id:"EE3C733D-5693-DE11-97D4-00155DA3B01E" viewid:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" %}
51+
```
52+
53+
Now that the Liquid chart tag declaration has the chart ID, follow the next steps to get the view ID.
4854
4955
## Get the ID of a view
5056

0 commit comments

Comments
 (0)