Page 1 of 1

Hide charts if missing data source

Posted: Tue Sep 01, 2020 9:16 am
by todea.df@gmail.com
Hello,

I attached a .mrt file that contains 2 csv data-sources used for 2 charts.
The question is: how to hide a chart if the corresponding data source is missing? Also, the empty space of the hidden chart to be filled in by the charts below (shift up).

I managed to hide a chart if the csv did not contain data by using a condition, but this is not the desired case.

I attached 2 images to showcase the desired behaviour.
Please note that I am using the Angular version of the Stimulsoft Dashboards.JS Designer.

Thanks,
Darius

Re: Hide charts if missing data source

Posted: Thu Sep 03, 2020 9:28 am
by Lech Kulikowski
Hello,

Please place Chart components on the DataBand and set the CanShrink=true property.
To hide, you can add Condition in which check count datasource.Count and use "Component Is Enabled" option.

Thank you.

Re: Hide charts if missing data source

Posted: Fri Sep 04, 2020 5:26 pm
by todea.df@gmail.com
Hello,

Could you please show me one .mrt example starting from the hide-charts.mrt attached above?

I don't manage to create a correct Condition.
Who is "datasource"? The data-source name or the resource name from the data-source? The expression "{bar.Count > 0}" should be ok?

Thanks a lot!

Re: Hide charts if missing data source

Posted: Sun Sep 06, 2020 6:51 pm
by Lech Kulikowski
Hello,

The screenshot in the attahcment.

Thank you.