change plot color
This commit is contained in:
parent
9a667443c2
commit
9f349627b3
@ -1,6 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { analystEstimateComponent, stockTicker } from "$lib/store";
|
import { analystEstimateComponent, stockTicker } from "$lib/store";
|
||||||
import InfoModal from "$lib/components/InfoModal.svelte";
|
|
||||||
|
|
||||||
import { Chart } from "svelte-echarts";
|
import { Chart } from "svelte-echarts";
|
||||||
import { init, use } from "echarts/core";
|
import { init, use } from "echarts/core";
|
||||||
@ -163,7 +162,9 @@
|
|||||||
},
|
},
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: "dashed", // Set the line type to dashed
|
type: "dashed", // Set the line type to dashed
|
||||||
|
color: "#FBCE3C",
|
||||||
},
|
},
|
||||||
|
|
||||||
showSymbol: false, // Show symbols for line plot points
|
showSymbol: false, // Show symbols for line plot points
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -175,6 +176,7 @@
|
|||||||
},
|
},
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: "dashed", // Set the line type to dashed
|
type: "dashed", // Set the line type to dashed
|
||||||
|
color: "#FBCE3C",
|
||||||
},
|
},
|
||||||
showSymbol: false, // Show symbols for line plot points
|
showSymbol: false, // Show symbols for line plot points
|
||||||
},
|
},
|
||||||
|
|||||||
@ -81,6 +81,9 @@
|
|||||||
data: dividendList,
|
data: dividendList,
|
||||||
type: "bar",
|
type: "bar",
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@ -219,6 +219,9 @@
|
|||||||
data: valueList,
|
data: valueList,
|
||||||
type: "bar",
|
type: "bar",
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|||||||
@ -299,6 +299,9 @@
|
|||||||
data: valueList,
|
data: valueList,
|
||||||
type: "bar",
|
type: "bar",
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|||||||
@ -243,6 +243,9 @@
|
|||||||
data: valueList,
|
data: valueList,
|
||||||
type: "bar",
|
type: "bar",
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|||||||
@ -207,6 +207,9 @@
|
|||||||
data: valueList,
|
data: valueList,
|
||||||
type: "bar",
|
type: "bar",
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|||||||
@ -94,6 +94,9 @@
|
|||||||
areaStyle: { opacity: 0.2 },
|
areaStyle: { opacity: 0.2 },
|
||||||
smooth: true,
|
smooth: true,
|
||||||
symbol: "none",
|
symbol: "none",
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|||||||
@ -311,7 +311,7 @@
|
|||||||
type: "line",
|
type: "line",
|
||||||
yAxisIndex: 0,
|
yAxisIndex: 0,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: "#fff", // Change bar color to white
|
color: "#FBCE3C",
|
||||||
},
|
},
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -93,8 +93,12 @@
|
|||||||
data: employeeList,
|
data: employeeList,
|
||||||
type: "bar",
|
type: "bar",
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -294,6 +294,9 @@
|
|||||||
areaStyle: { opacity: 0.2 },
|
areaStyle: { opacity: 0.2 },
|
||||||
smooth: true,
|
smooth: true,
|
||||||
symbol: "none",
|
symbol: "none",
|
||||||
|
itemStyle: {
|
||||||
|
color: "#FBCE3C",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user