# DHIS2 API Visualizations/id/data Error

**URL:** <https://community.dhis2.org/t/dhis2-api-visualizations-id-data-error/62066>\
**Category:** Development - Développement\
**Created:** [4 November 2024 11:57 UTC](https://community.dhis2.org/t/dhis2-api-visualizations-id-data-error/62066 "2024-11-04T11:57:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [4 November 2024 12:57 UTC](https://community.dhis2.org/t/dhis2-api-visualizations-id-data-error/62066/5 "2024-11-04T12:57:11Z")

</div>

a few questions :

- which version of dhis2 are you using ?
- does the visualiation works “in the browser” `/dhis-web-data-visualizer/#/{id}` (without extra params)
- which kind of visualisation are you trying to get as an image (not sure every graph type is supported)

From the [documentation](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-240/visualizations.html) you might need to pass extra params depending how the period are calculated or you want them to be overridden.

Note that previously the images rendered where really different, sometime not good compared to visualization library in the browser. So not I sure I would rely on the current api for a good looking graph. I think in newer dhis2, they will use a browser less chrome to render the image (not sure when).

see [New Push Analytics in 41.1 (Automatically email dashboards)](https://community.dhis2.org/t/new-push-analytics-in-41-1-automatically-email-dashboards/61831)

[https://play.im.dhis2.org/stable-2-41-1/api/visualizations/DeRrc1gTMjn/data](https://play.im.dhis2.org/stable-2-41-1/api/visualizations/DeRrc1gTMjn/data)

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/8/3/8370e7b1da228c25a258c65be567eec5b2b027f9.png)

---

_[View the full topic](https://community.dhis2.org/t/dhis2-api-visualizations-id-data-error/62066)._
