remove animation for mobile

This commit is contained in:
MuslemRahimi 2024-06-13 19:36:54 +02:00
parent c103b61dce
commit 43a694cf44
5 changed files with 11 additions and 6 deletions

View File

@ -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%',

View File

@ -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%',

View File

@ -45,6 +45,7 @@ const plotPieChart = () => {
const options = {
animation: $screenWidth < 640 ? false: true,
grid: {
left: '0%',
right: '0%',

View File

@ -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%',

View File

@ -1,3 +1,4 @@
export const load = ({ locals, cookies }) => {
const consent = cookies?.get('cookie-consent')