openwisp-monitoring icon indicating copy to clipboard operation
openwisp-monitoring copied to clipboard

[bug] Iperf bar charts time range on x-axis is inconsistent with other charts

Open Aryamanz29 opened this issue 1 year ago • 0 comments

Reported by @pandafy in https://github.com/openwisp/openwisp-monitoring/pull/394#issuecomment-1202118479

  • If we look below stackedbar+lines charts, time interval starts from August 1 12:00 hrs with 12 hrs time difference between each points on the x-axis.

Screenshot from 2022-08-04 15-33-56

  • While other iperf charts shows time interval starts from August 1 18:00 hrs with 6 hrs time difference.

Screenshot from 2022-08-04 15-34-24

Possible solution

  • I found that options.mode = 'lines+markers' for the stackedbar+lines charts which streches charts x-axis to some backward time we can use options.mode = 'lines' for iperf charts to avoid this.

Screenshot from 2022-08-04 15-42-15

Note : Iperf charts uses connect_points chart property which connects only non-null values by filtering out it's existing x-axis & y-axis, therefore their start time point on x-axis is different from normal monitoring charts but all iperf charts have consistent x-axis intervals.

Aryamanz29 avatar Aug 04 '22 10:08 Aryamanz29