← Back to team overview

dhis2-devs team mailing list archive

Questions regarding Embedding charts with the Visualizer chart plug-in

 

Hi All,

Have been trying to embed charts in HTML report using Visualiser chart
Plug-in. I am facing below issues, could you please help: I am using 2.18
version.


1. When I set *hideLegend *attribute value to *false* then I am getting the
below error at browser console: *Uncaught TypeError: Cannot read property
'labelMarkerSize' of undefined*

2. In my chart I am passing periods 2007 to 2015 where I have data for 2
years only, in my chart I am getting chart for those 2 years only, where as
I would like chart for all years. Can you please help if I can set any
parameter to get this. If I am generating the chart in Visualiser there I
have the option *Hide empty categories, *do we have similar option in
plug-in.

3. I created a chart and saved as a favourite. I am able to embed this
chart using plug-in

 DHIS.getChart({ url: base, el: "chart1", id: "R0DVGvXDUNP" });

I need to pass Period as parameter to this chart, can you please suggest
how can I do that.

Thanks



-- 

Regards,
Bharath Kumar. Ch

Follow ups