Code Duplication    Length = 10-10 lines in 2 locations

src/View/Helper/DrawChartHelper.php 2 locations

@@ 168-177 (lines=10) @@
165
     * @param string|null $id HTML identifier of div where chart will be drawed
166
     * @return string The generated chart
167
     */
168
    public function groupedBarChart(
169
        array $series,
170
        array $layout = [],
171
        array $configuration = [],
172
        string $id = null
173
    ) {
174
        $layout['barmode'] = 'grouped';
175
176
        return $this->makeMultiTraceChart($series, 'bar', $layout, $configuration, $id);
177
    }
178
179
    /**
180
     * Function used to generate a stacked bar chart
@@ 198-207 (lines=10) @@
195
     * @param string|null $id HTML identifier of div where chart will be drawed
196
     * @return string The generated chart
197
     */
198
    public function stackedBarChart(
199
        array $series,
200
        array $layout = [],
201
        array $configuration = [],
202
        string $id = null
203
    ): string {
204
        $layout['barmode'] = 'stack';
205
206
        return $this->makeMultiTraceChart($series, 'bar', $layout, $configuration, $id);
207
    }
208
209
    /**
210
     * PIE CHART FUNCTION