change colors
This commit is contained in:
parent
d5a212c76f
commit
7904c446bf
@ -184,7 +184,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ function getPlotOptions() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: (params) => {
|
color: (params) => {
|
||||||
// Set color based on positive or negative value
|
// Set color based on positive or negative value
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -172,7 +172,7 @@ function selectSortingMethod(state:string) {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
// Define colors based on positive/negative values
|
// Define colors based on positive/negative values
|
||||||
color: function(params) {
|
color: function(params) {
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -252,7 +252,7 @@ function plotGrowth() {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
// Define colors based on positive/negative values
|
// Define colors based on positive/negative values
|
||||||
color: function(params) {
|
color: function(params) {
|
||||||
return params.data >= 0 ? '#10DB06' : '#FF2F1F';
|
return params.data >= 0 ? '#22C55E' : '#F71F4F';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user