Skip to content
Snippets Groups Projects
Commit 631a0020 authored by Aggarwal Himanshu's avatar Aggarwal Himanshu
Browse files

Add a way to disable animations

parent f1a420ba
No related branches found
No related tags found
3 merge requests!7Merge develop to main,!6Add a Table View for Cryptocurrencies,!4Improve Table UI and make it more modular
export const cryptoChartOptions = (colors = [], dark = false) => { export const cryptoChartOptions = (
colors = [],
dark = false,
animationsEnabled = false
) => {
return { return {
chart: { chart: {
toolbar: { toolbar: {
...@@ -7,6 +11,9 @@ export const cryptoChartOptions = (colors = [], dark = false) => { ...@@ -7,6 +11,9 @@ export const cryptoChartOptions = (colors = [], dark = false) => {
sparkline: { sparkline: {
enabled: true, enabled: true,
}, },
animations: {
enabled: animationsEnabled,
},
}, },
dataLabels: { dataLabels: {
enabled: false, enabled: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment