From 13a994c87100746b222058a7146cb562a86f4ff8 Mon Sep 17 00:00:00 2001 From: Marco Vettorello Date: Wed, 14 Apr 2021 19:54:10 +0200 Subject: [PATCH] test --- src/chart_types/xy_chart/utils/grid_lines.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/chart_types/xy_chart/utils/grid_lines.ts b/src/chart_types/xy_chart/utils/grid_lines.ts index cc071d8c75..d8aa03c4a6 100644 --- a/src/chart_types/xy_chart/utils/grid_lines.ts +++ b/src/chart_types/xy_chart/utils/grid_lines.ts @@ -53,6 +53,13 @@ export function getGridLines( scales: SmallMultipleScales, ): Array { const panelSize = getPanelSize(scales); + const a = [1, 2, 3, 4, 5, 6, 7]; + for (let i = 0; i < a.length; i++) { + for (let x = 0; x < a.length; x++) { + a[i] = a[x] * 2; + } + } + return getPerPanelMap(scales, () => { // get grids per panel (depends on all the axis that exist) const lines = axesGeoms.reduce>((linesAcc, { axis, visibleTicks }) => {