Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 18f4b41976e1c819edee736a13225a74472b4c10
https://github.com/tribe29/checkmk/commit/18f4b41976e1c819edee736a13225a744…
Author: Óscar Nájera <oscar.najera(a)tribe29.com>
Date: 2021-03-10 (Wed, 10 Mar 2021)
Changed paths:
M cmk/gui/plugins/metrics/artwork.py
Log Message:
-----------
Force perfomance graphs t-axis always with labels
The way ticks & labels are calculated in our performance graphs does not
enforce the option of actually labeling the edges(start & end ticks). Yet
setting a number of labels of 2 promotes that half of the range could be at
least be covered by a label, somewhere in the timeline. Problem of division
by zero on graph is solved, yet on very narrow graphs in dashlets it can
still happen that no label is drawn.
Performance graphs will be replaced by D3js graphs, which have also solved
the problem of rendering human time. From seconds to months and years which
have different length. This fix is only to fix the case where no labels are
expected and thus the graph changes height.
Change-Id: I9089be020e25872d7bf1700d0c85b283b53f4de4
(cherry picked from commit a792f0020219c2faa6a1dbfa819fc111b8157b2b)