diff --git a/src/routes/hedge-funds/[slug]/+page.svelte b/src/routes/hedge-funds/[slug]/+page.svelte index 67351f37..8811dda7 100644 --- a/src/routes/hedge-funds/[slug]/+page.svelte +++ b/src/routes/hedge-funds/[slug]/+page.svelte @@ -261,7 +261,7 @@ async function handleMode(i) { }, grid: { left: $screenWidth < 640 ? '0.5%' : '0%', - right: $screenWidth < 640 ? '1%' : '5%', + right: $screenWidth < 640 ? '1%' : '10%', bottom: '0%', containLabel: true }, @@ -335,7 +335,7 @@ async function handleMode(i) { }, grid: { left: $screenWidth < 640 ? '0.5%' : '0%', - right: $screenWidth < 640 ? '1%' : '5%', + right: $screenWidth < 640 ? '1%' : '10%', bottom: '0%', containLabel: true }, @@ -689,7 +689,7 @@ onMount(async () => {
{#if isLoaded && Object?.keys(optionsData)?.length !== 0} -
+
{#if activePlotIdx === 0} diff --git a/src/routes/stocks/[tickerID]/stats/balance-sheet/+page.svelte b/src/routes/stocks/[tickerID]/stats/balance-sheet/+page.svelte index 47ef177e..8bf61d9c 100644 --- a/src/routes/stocks/[tickerID]/stats/balance-sheet/+page.svelte +++ b/src/routes/stocks/[tickerID]/stats/balance-sheet/+page.svelte @@ -297,7 +297,6 @@ function normalizer(value) { axisLabel: { color: '#fff', // Change label color to white formatter: function (value) { - value = Math.max(value, 0); return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions }, }, @@ -435,7 +434,6 @@ $: { - @@ -443,7 +441,6 @@ $: { - @@ -452,7 +449,7 @@ $: {
-
+

diff --git a/src/routes/stocks/[tickerID]/stats/cash-flow/+page.svelte b/src/routes/stocks/[tickerID]/stats/cash-flow/+page.svelte index cefc48f4..5f7e9255 100644 --- a/src/routes/stocks/[tickerID]/stats/cash-flow/+page.svelte +++ b/src/routes/stocks/[tickerID]/stats/cash-flow/+page.svelte @@ -264,7 +264,6 @@ function plotData() axisLabel: { color: '#fff', // Change label color to white formatter: function (value) { - value = Math.max(value, 0); return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions }, }, @@ -401,7 +400,6 @@ $: { - @@ -409,7 +407,6 @@ $: { - @@ -418,7 +415,7 @@ $: {
-
+

@@ -537,7 +534,7 @@ $: {

- +
diff --git a/src/routes/stocks/[tickerID]/stats/income/+page.svelte b/src/routes/stocks/[tickerID]/stats/income/+page.svelte index f1dc4aa5..d1e20197 100644 --- a/src/routes/stocks/[tickerID]/stats/income/+page.svelte +++ b/src/routes/stocks/[tickerID]/stats/income/+page.svelte @@ -140,17 +140,16 @@ import { init, use } from 'echarts/core' - function toggleMode() - { +function toggleMode() +{ mode = !mode; - } +} - - - function changeStatement(event) - { + +function changeStatement(event) +{ displayStatement = event.target.value; - } +} function normalizer(value) { @@ -239,7 +238,6 @@ function plotData() axisLabel: { color: '#fff', // Change label color to white formatter: function (value) { - value = Math.max(value, 0); return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions }, }, @@ -330,12 +328,13 @@ const filterStatement = (fullStatement, timeFrame) => { } }; - fullStatement = data?.getIncomeStatement; - timeFrame = '10Y'; - displayStatement = 'revenue'; - - $: { +fullStatement = data?.getIncomeStatement; +timeFrame = '10Y'; +displayStatement = 'revenue'; + + +$: { if (timeFrame || displayStatement || filterRule) { if (filterRule === 'annual') { @@ -349,10 +348,8 @@ const filterStatement = (fullStatement, timeFrame) => { if (mode === true) { optionsData= plotData() - } - + } } - } @@ -368,21 +365,12 @@ const filterStatement = (fullStatement, timeFrame) => { {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} {$displayCompanyName} ({$stockTicker}) Financials - Income Statement · stocknear - - - - - - - - - @@ -391,7 +379,7 @@ const filterStatement = (fullStatement, timeFrame) => {
{#if isLoaded} -
+

@@ -484,7 +472,7 @@ const filterStatement = (fullStatement, timeFrame) => { {#if mode} -
+