0

I followed this link to implement a zoomline chart - https://www.fusioncharts.com/charts/line-area-charts/line-chart-with-zooming-and-panning?framework=react

I have the exact same code as they have

I have already looked into this link and tried to import but the zoomline chart seems to keep throwing the error

fusioncharts react error loading chunks failed

CodeSandbox: https://codesandbox.io/s/strange-engelbart-m26zq

Teja
  • 25
  • 1
  • 4

1 Answers1

2
import FusionCharts from "fusioncharts";
import charts from "fusioncharts/fusioncharts.charts";
import zoomline from "fusioncharts/fusioncharts.zoomline";
import ReactFusioncharts from "react-fusioncharts";

ReactFusioncharts.fcRoot(FusionCharts,charts,zoomline);
Zapdos13
  • 855
  • 1
  • 8
  • 14
  • I was trying with `ReactFC.fcRoot(FusionCharts, PowerCharts, FusionTheme)` but did not work. I have the same format for sparkline and quagechart but for powerchart it did not work, But te above answer worked for powercharts – Srushti Shah Jul 03 '23 at 06:41