Describe the bug
I updated to 4.1.0. The data alignment feature is causing Cannot read property '1' of null error in some graphs
Expected behavior
I expected graphs to work fine.
Screenshots
Without data alignment feature:

With the data alignment feature:

Software versions
| Grafana | Zabbix | Grafana-Zabbix Plugin |
| ------- | ------ | --------------------- |
| 7.3.6 | 5.0.7 | 4.1.0 |
I see the same problem.
Grafana: 7.3.4
Zabbix: 4.2.8
Grafana-Zabbix Plugin: 4.1.0
The information below may perhaps help to identify the source of the problem.
I removed "Trends" parameters from the configuration, as I found in another issue that incorrect values could cause this. That did not solve it.
I found that when using "/.*/" in application the error does not appear, but neither does the data. One of my DASH had the value of "application" filled with the value used in Zabbix and presented data in 3 of the 9 panels. All panels have "application" defined.
I returned to Grafana-Zabbix Plugin: 4.0.2 and the problem is fixed
Same here
We are having the same issue.
Grafana: 7.3.6
Zabbix: 5.0.3
Grafana-Zabbix Plugin: 4.1.0
We returned to Grafana-Zabbix Plugin: 4.0.2 and the dashboards are working as expected.
We had the same problem.
Grafana: 7.3.6
Zabbix: 5.2.3
Grafana-Zabbix Plugin: 4.1.0
As soon as we downgraded to version 4.0.2, everything was back to normal.
I have a question for people who downgraded it. I simply disabled it in data source settings by enabling "Disable data alignment" knob. Didn't this fix your problem?
I have a question for people who downgraded it. I simply disabled it in data source settings by enabling "Disable data alignment" knob. Didn't this fix your problem?
Yes it does, but I cannot find a central place to change this for all the items on our dashboards.
@WillemWever isn't the Configuration -> Data Sources -> Zabbix the central place?


Anyway, perhaps not that important detail, I was just wondering why people were downgrading the plugin because it seemed like that knob turned off the problem globally for me.
Duplicates #1123
Workaround described in the issue.
As @yurtesen mentioned, you can disable data alignment for all queries in the data source config. However, this option required for proper stacked graphs in the next Grafana release. So make sure you enable it back after updating plugin (fix is on the way).
Fixed in the latest release (4.1.1). So you can upgrade plugin to fix this issue.
Fixed in the latest release (4.1.1). So you can upgrade plugin to fix this issue.
Upgraded succesfull to 4.1.1. No problems at all.
Thanks!
4.1.1 - solved
The graphs are working with 4.1.1 when data alignment is enabled, but I am not sure if the feature is working. I am not able to achieve graphs like the author mentioned at:
https://github.com/alexanderzobnin/grafana-zabbix/issues/1109#issuecomment-749543471
Mine look like :(

Most helpful comment
I see the same problem.
Grafana: 7.3.4
Zabbix: 4.2.8
Grafana-Zabbix Plugin: 4.1.0
The information below may perhaps help to identify the source of the problem.
I removed "Trends" parameters from the configuration, as I found in another issue that incorrect values could cause this. That did not solve it.
I found that when using "/.*/" in application the error does not appear, but neither does the data. One of my DASH had the value of "application" filled with the value used in Zabbix and presented data in 3 of the 9 panels. All panels have "application" defined.
I returned to Grafana-Zabbix Plugin: 4.0.2 and the problem is fixed