diff --git a/src/routes/stocks/[tickerID]/dividends/+page.svelte b/src/routes/stocks/[tickerID]/dividends/+page.svelte index 3b7fc497..acc917e7 100644 --- a/src/routes/stocks/[tickerID]/dividends/+page.svelte +++ b/src/routes/stocks/[tickerID]/dividends/+page.svelte @@ -38,13 +38,13 @@ async function plotDividend(dividendList, growthList, dateList) { hideDelay: 100, // Set the delay in milliseconds }, animation: false, - grid: { + grid: { left: '2%', - right: '2%', - bottom: '2%', - top: '5%', + right: '0%', + bottom: '10%', + top: '10%', containLabel: true - }, + }, xAxis: { data: dateList, type: 'category', @@ -80,24 +80,8 @@ async function plotDividend(dividendList, growthList, dateList) { { name: 'Dividend per Share', data: dividendList, - type: 'line', - itemStyle: { - color: '#fff' // Change bar color to white - }, - showSymbol: false - }, - { - name: 'Growth Rate (%)', - data: growthList, type: 'bar', - barWidth: '80%', - yAxisIndex: 1, - itemStyle: { - color: (params) => { - // Set color based on positive or negative value - return params.data >= 0 ? '#22C55E' : '#E11D48'; - }, - }, + smooth: true, }, ], }; @@ -181,7 +165,7 @@ onMount(async() => { -