From 28fa9421adc2e83d496f9e957ebae028f644e354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Santib=C3=A1=C3=B1ez?= Date: Sun, 25 Oct 2020 00:55:08 -0500 Subject: [PATCH] Added axis configuration to Line Chart --- resources/views/livewire-line-chart.blade.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire-line-chart.blade.php b/resources/views/livewire-line-chart.blade.php index d408c94..aceb3fe 100644 --- a/resources/views/livewire-line-chart.blade.php +++ b/resources/views/livewire-line-chart.blade.php @@ -50,9 +50,7 @@ enabled: false }, - stroke: { - curve: component.get('lineChartModel.stroke.curve') || 'straight', - }, + stroke: component.get('lineChartModel.stroke') || {}, title: { text: component.get('lineChartModel.title'), @@ -60,9 +58,12 @@ }, xaxis: { + ...component.get('lineChartModel.xAxis') || {}, categories: component.get('lineChartModel.data').map(item => item.title), }, + yaxis: component.get('lineChartModel.yAxis') || {}, + annotations: { points: component.get('lineChartModel.markers').map(item => { return {