ui fix
This commit is contained in:
parent
1411c376e3
commit
571e958073
@ -110,6 +110,9 @@ function findLowestAndHighestFee(data, lastDateStr) {
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -118,7 +121,7 @@ function findLowestAndHighestFee(data, lastDateStr) {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
@ -137,6 +140,7 @@ function findLowestAndHighestFee(data, lastDateStr) {
|
|||||||
},
|
},
|
||||||
position: 'right',
|
position: 'right',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
return value?.toFixed(1)+'%'
|
return value?.toFixed(1)+'%'
|
||||||
|
|||||||
@ -123,6 +123,9 @@ function getPlotOptions() {
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
data: dates,
|
data: dates,
|
||||||
type: 'category',
|
type: 'category',
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -131,7 +134,7 @@ function getPlotOptions() {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value) {
|
formatter: function (value) {
|
||||||
return '#'+(value / denominator)?.toFixed(0) + unit; // Format value in millions
|
return '#'+(value / denominator)?.toFixed(0) + unit; // Format value in millions
|
||||||
},
|
},
|
||||||
|
|||||||
@ -116,7 +116,9 @@ function getPlotOptions() {
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -125,7 +127,7 @@ function getPlotOptions() {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
|
|||||||
@ -71,6 +71,9 @@ function getPlotOptions() {
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
data: dates,
|
data: dates,
|
||||||
type: 'category',
|
type: 'category',
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -79,7 +82,7 @@ function getPlotOptions() {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value) {
|
formatter: function (value) {
|
||||||
//value = Math.max(value, 0);
|
//value = Math.max(value, 0);
|
||||||
return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions
|
return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions
|
||||||
|
|||||||
@ -105,6 +105,9 @@ function findLowestAndHighestPrice(data, lastDateStr) {
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -112,7 +115,9 @@ function findLowestAndHighestPrice(data, lastDateStr) {
|
|||||||
splitLine: {
|
splitLine: {
|
||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
|
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
return '$'+value?.toFixed(1)
|
return '$'+value?.toFixed(1)
|
||||||
@ -129,7 +134,7 @@ function findLowestAndHighestPrice(data, lastDateStr) {
|
|||||||
},
|
},
|
||||||
position: 'right',
|
position: 'right',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
|
|||||||
@ -90,7 +90,11 @@ use([BarChart, GridComponent, CanvasRenderer])
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
data: dates,
|
data: dates,
|
||||||
type: 'category',
|
type: 'category',
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
type: 'value',
|
type: 'value',
|
||||||
@ -98,7 +102,7 @@ use([BarChart, GridComponent, CanvasRenderer])
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
if(index % 2) {
|
if(index % 2) {
|
||||||
return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions
|
return '$'+(value / denominator)?.toFixed(1) + unit; // Format value in millions
|
||||||
|
|||||||
@ -88,6 +88,9 @@ function getPlotOptions() {
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -96,7 +99,7 @@ function getPlotOptions() {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
@ -115,6 +118,7 @@ function getPlotOptions() {
|
|||||||
},
|
},
|
||||||
position: 'right',
|
position: 'right',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
return (value / shareDenominator)?.toFixed(1) + shareUnit; // Format value in millions
|
return (value / shareDenominator)?.toFixed(1) + shareUnit; // Format value in millions
|
||||||
|
|||||||
@ -77,6 +77,9 @@
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -85,7 +88,7 @@
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
@ -103,7 +106,9 @@
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
position: 'right',
|
position: 'right',
|
||||||
|
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
return '$'+value?.toFixed(1)
|
return '$'+value?.toFixed(1)
|
||||||
|
|||||||
@ -64,6 +64,7 @@ function getPlotOptions() {
|
|||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: predictionDate,
|
data: predictionDate,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value) {
|
formatter: function (value) {
|
||||||
// Assuming dates are in the format 'yyyy-mm-dd'
|
// Assuming dates are in the format 'yyyy-mm-dd'
|
||||||
// Extract the month and day from the date string and convert the month to its abbreviated name
|
// Extract the month and day from the date string and convert the month to its abbreviated name
|
||||||
@ -78,6 +79,9 @@ function getPlotOptions() {
|
|||||||
type: 'value',
|
type: 'value',
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: false,
|
show: false,
|
||||||
|
},
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
@ -123,7 +127,7 @@ function getPlotOptions() {
|
|||||||
smooth: true,
|
smooth: true,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: "#C40377"
|
color: "#fff"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -113,6 +113,7 @@ function getPlotOptions() {
|
|||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value) {
|
formatter: function (value) {
|
||||||
// Assuming dates are in the format 'yyyy-mm-dd'
|
// Assuming dates are in the format 'yyyy-mm-dd'
|
||||||
// Extract the month and day from the date string and convert the month to its abbreviated name
|
// Extract the month and day from the date string and convert the month to its abbreviated name
|
||||||
@ -132,7 +133,7 @@ function getPlotOptions() {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
@ -152,9 +153,10 @@ function getPlotOptions() {
|
|||||||
name: 'Sentiment',
|
name: 'Sentiment',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
return value.toFixed(2); // Format the sentiment value
|
return value?.toFixed(2); // Format the sentiment value
|
||||||
} else {
|
} else {
|
||||||
return ''; // Hide this tick
|
return ''; // Hide this tick
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,6 +68,9 @@ function getPlotOptions() {
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
data: dates,
|
data: dates,
|
||||||
type: 'category',
|
type: 'category',
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -76,7 +79,7 @@ function getPlotOptions() {
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value) {
|
formatter: function (value) {
|
||||||
value = Math.max(value, 0);
|
value = Math.max(value, 0);
|
||||||
return (value / denominator)?.toFixed(1) + unit; // Format value in millions
|
return (value / denominator)?.toFixed(1) + unit; // Format value in millions
|
||||||
|
|||||||
@ -108,6 +108,9 @@
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: dates,
|
data: dates,
|
||||||
|
axisLabel: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -116,7 +119,7 @@
|
|||||||
show: false, // Disable x-axis grid lines
|
show: false, // Disable x-axis grid lines
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
@ -136,7 +139,7 @@
|
|||||||
},
|
},
|
||||||
position: 'right',
|
position: 'right',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#6E7079', // Change label color to white
|
color: '#fff', // Change label color to white
|
||||||
formatter: function (value, index) {
|
formatter: function (value, index) {
|
||||||
// Display every second tick
|
// Display every second tick
|
||||||
if (index % 2 === 0) {
|
if (index % 2 === 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user