remove animation for mobile
This commit is contained in:
parent
c103b61dce
commit
43a694cf44
@ -66,6 +66,7 @@ function getPlotOptions() {
|
||||
|
||||
const option = {
|
||||
silent: true,
|
||||
animation: $screenWidth < 640 ? false: true,
|
||||
grid: {
|
||||
left: $screenWidth < 640 ? '0%' : '2%',
|
||||
right: $screenWidth < 640 ? '5%' : '2%',
|
||||
|
||||
@ -47,14 +47,15 @@
|
||||
|
||||
|
||||
function getPlotOptions() {
|
||||
const predictionDate = priceAnalysisDict?.predictionDate;
|
||||
const upperBand = priceAnalysisDict?.upperBand;
|
||||
const lowerBand = priceAnalysisDict?.lowerBand?.map(value => value < 0 ? 0 : value);
|
||||
const historicalPrice = priceAnalysisDict?.historicalPrice;
|
||||
//const meanPredictionPrice = priceAnalysisDict?.meanResult;
|
||||
const predictionDate = priceAnalysisDict?.predictionDate;
|
||||
const upperBand = priceAnalysisDict?.upperBand;
|
||||
const lowerBand = priceAnalysisDict?.lowerBand?.map(value => value < 0 ? 0 : value);
|
||||
const historicalPrice = priceAnalysisDict?.historicalPrice;
|
||||
//const meanPredictionPrice = priceAnalysisDict?.meanResult;
|
||||
|
||||
const option = {
|
||||
const option = {
|
||||
silent: true,
|
||||
animation: $screenWidth < 640 ? false: true,
|
||||
grid: {
|
||||
left: $screenWidth < 640 ? '0%' : '2%',
|
||||
right: $screenWidth < 640 ? '5%' : '2%',
|
||||
|
||||
@ -45,6 +45,7 @@ const plotPieChart = () => {
|
||||
|
||||
|
||||
const options = {
|
||||
animation: $screenWidth < 640 ? false: true,
|
||||
grid: {
|
||||
left: '0%',
|
||||
right: '0%',
|
||||
|
||||
@ -59,6 +59,7 @@ function getPlotOptions() {
|
||||
|
||||
const option = {
|
||||
silent: true,
|
||||
animation: $screenWidth < 640 ? false: true,
|
||||
grid: {
|
||||
left: $screenWidth < 640 ? '0%' : '2%',
|
||||
right: $screenWidth < 640 ? '5%' : '2%',
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
|
||||
export const load = ({ locals, cookies }) => {
|
||||
|
||||
const consent = cookies?.get('cookie-consent')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user