update dividend and insider
This commit is contained in:
parent
8eb591fe18
commit
1052f52512
@ -65,15 +65,10 @@
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: 'value',
|
|
||||||
splitLine: {
|
|
||||||
show: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
show: false,
|
||||||
formatter: '{value} %',
|
formatter: '{value} %',
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
@ -96,7 +91,6 @@
|
|||||||
data: growthList,
|
data: growthList,
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
barWidth: '80%',
|
barWidth: '80%',
|
||||||
smooth: true,
|
|
||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
@ -390,7 +384,7 @@
|
|||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.app {
|
.app {
|
||||||
height: 300px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,15 +65,10 @@ async function plotDividend(dividendList, growthList, dateList) {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: 'value',
|
|
||||||
splitLine: {
|
|
||||||
show: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
show: false,
|
||||||
formatter: '{value} %',
|
formatter: '{value} %',
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
@ -96,7 +91,6 @@ async function plotDividend(dividendList, growthList, dateList) {
|
|||||||
data: growthList,
|
data: growthList,
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
barWidth: '80%',
|
barWidth: '80%',
|
||||||
smooth: true,
|
|
||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
@ -390,7 +384,7 @@ onMount(async() => {
|
|||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.app {
|
.app {
|
||||||
height: 300px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -125,7 +125,7 @@ const handleMessage = async (event) => {
|
|||||||
silent: true,
|
silent: true,
|
||||||
grid: {
|
grid: {
|
||||||
left: '0%',
|
left: '0%',
|
||||||
right: '0%',
|
right: '2%',
|
||||||
top: '10%',
|
top: '10%',
|
||||||
bottom: '10%',
|
bottom: '10%',
|
||||||
containLabel: true,
|
containLabel: true,
|
||||||
@ -150,7 +150,14 @@ const handleMessage = async (event) => {
|
|||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
formatter: '${value}',
|
formatter: function (value, index) {
|
||||||
|
// Display every second tick
|
||||||
|
if (index % 2 === 0) {
|
||||||
|
return '$'+`${value}` // Format value in millions
|
||||||
|
} else {
|
||||||
|
return ''; // Hide this tick
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
@ -159,9 +166,15 @@ const handleMessage = async (event) => {
|
|||||||
{
|
{
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: function (value) {
|
formatter: function (value, index) {
|
||||||
return (value / denominator)?.toFixed(0) + unit; // Format value in millions
|
// Display every second tick
|
||||||
},
|
if (index % 2 === 0) {
|
||||||
|
value = Math.max(value, 0);
|
||||||
|
return (value / denominator)?.toFixed(0) + unit; // Format value in millions
|
||||||
|
} else {
|
||||||
|
return ''; // Hide this tick
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
@ -606,14 +619,14 @@ onMount(async() => {
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.app {
|
.app {
|
||||||
height: 500px;
|
height: 300px;
|
||||||
max-width: 1500px;
|
max-width: 1500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 560px) {
|
@media (max-width: 560px) {
|
||||||
.app {
|
.app {
|
||||||
max-width: 520px;
|
max-width: 520px;
|
||||||
height: 500px;
|
height: 250px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user