mirror of
https://github.com/spbleadersofdigtal/frontend.git
synced 2024-11-21 18:06:33 +03:00
Пофиксил графики
This commit is contained in:
parent
e69d9aff48
commit
dee5ca6f50
|
@ -20,7 +20,10 @@ export const generateFinancialChart = (rootId: string, [cac, ltv]: [number, numb
|
|||
aspectRatio: 2,
|
||||
animation: {
|
||||
onComplete: function () {
|
||||
callback(chart.toBase64Image());
|
||||
setTimeout(() => {
|
||||
const image = chart?.toBase64Image() || 'data:image/png;base64,i';
|
||||
callback(image);
|
||||
}, 1000);
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,7 +24,10 @@ export const generateGrowChart = (rootId: string, [company_value, future_value,
|
|||
aspectRatio: 2,
|
||||
animation: {
|
||||
onComplete: function () {
|
||||
callback(chart.toBase64Image());
|
||||
setTimeout(() => {
|
||||
const image = chart?.toBase64Image() || 'data:image/png;base64,i';
|
||||
callback(image);
|
||||
}, 1000);
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -20,7 +20,10 @@ export const generateMarketChart = (rootId: string, [tam, sam, som]: [number, nu
|
|||
aspectRatio: 2,
|
||||
animation: {
|
||||
onComplete: function () {
|
||||
callback(chart.toBase64Image());
|
||||
setTimeout(() => {
|
||||
const image = chart?.toBase64Image() || 'data:image/png;base64,i';
|
||||
callback(image);
|
||||
}, 1000);
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user