Closed doums10 closed 1 year ago
It's the Financial Component here, I can't see the hilo line on the chart. Is anyone can help please?
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, HiloSeries, Tooltip, DateTime, Zoom, Logarithmic, Crosshair, Inject, } 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"); function filterValue(value) { if (value.x >= date1) { return value.x, value.high, value.low; } } const returnValue = financialChartData.filter(filterValue); const Financial = () => { const { currentMode } = useStateContext(); return ( <div className="m-4 md:m-10 mt-24 p-10 bg-white dark:bg-secondary-dark-bg rounded-3xl"> <ChartsHeader category="Financial" title="AAPL Historical" /> <div className="w-full"> <ChartComponent id="charts" crosshair={{ enable: true, lineType: "Vertical", line: { width: 0 } }} primaryXAxis={FinancialPrimaryXAxis} primaryYAxis={FinancialPrimaryYAxis} chartArea={{ border: { width: 0 } }} background={currentMode === "Dark" ? "#33373E" : "#fff"} style={{ textAlign: "center" }} tooltip={{ enable: true, shared: true }} > <Inject services={[ HiloSeries, Tooltip, DateTime, Zoom, Logarithmic, Crosshair, ]} /> <SeriesCollectionDirective> <SeriesDirective datasource={returnValue} type="Hilo" xName="x" low="low" high="high" name="Apple Inc" yName="low" /> </SeriesCollectionDirective> </ChartComponent> </div> </div> ); }; export default Financial;
I see datasource, its dataSource that I had to write.I close the issue
It's the Financial Component here, I can't see the hilo line on the chart. Is anyone can help please?