mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-21 23:42:03 +00:00
fix: calculate cardWidth over max datapoints for target
- correct render of inconsistent timestamps between targets
This commit is contained in:
@@ -254,6 +254,7 @@ export default function link(scope, elem, attrs, ctrl) {
|
||||
yAxisWidth = getYAxisWidth(heatmap) + Y_AXIS_TICK_PADDING;
|
||||
chartWidth = width - yAxisWidth - margin.right;
|
||||
|
||||
// TODO allow per-y cardWidth!
|
||||
// we need to fill chartWidth with xBucketSize cards.
|
||||
xGridSize = chartWidth / (cardsData.xBucketSize+1);
|
||||
cardWidth = xGridSize - cardHSpacing;
|
||||
|
||||
Reference in New Issue
Block a user