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