diff --git a/lazy-timer-fe/src/pages/Charts/Financial.jsx b/lazy-timer-fe/src/pages/Charts/Financial.jsx new file mode 100644 index 0000000..acccdf2 --- /dev/null +++ b/lazy-timer-fe/src/pages/Charts/Financial.jsx @@ -0,0 +1,53 @@ +import React from 'react'; +import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, HiloSeries, Tooltip, DateTime, Zoom, Logarithmic, Crosshair } from '@syncfusion/ej2-react-charts'; + +import { financialChartData, FinancialPrimaryXAxis, FinancialPrimaryYAxis } from '../../data/dummy'; +import { useStateContext } from '../../contexts/ContextProvider'; +import { ChartsHeader } from '../../components'; + +const date1 = new Date('2017, 1, 1'); + +// eslint-disable-next-line consistent-return +function filterValue(value) { + if (value.x >= date1) { + // eslint-disable-next-line no-sequences + return value.x, value.high, value.low; + } +} +const returnValue = financialChartData.filter(filterValue); + +const Financial = () => { + const { currentMode } = useStateContext(); + + return ( +
+ +
+ + + + + + +
+
+ ); +}; + +export default Financial;