Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import ReactDOM from 'react-dom';
import react_fc from 'react-fusioncharts';
import FusionCharts from 'fusioncharts';
import charts from 'fusioncharts/fusioncharts.charts';
import maps from 'fusioncharts/fusioncharts.maps';
import worldMap from 'fusionmaps/maps/fusioncharts.worldwithcountries';
import TM from 'fusioncharts/themes/fusioncharts.theme.zune';
import $ from 'jquery';
// Load the charts, maps, worldwithcountries module pass FusionCharts as dependency
charts(FusionCharts);
maps(FusionCharts);
worldMap(FusionCharts);
var GTDDashboard = function (options) {
var _reduce;
var _countBy;
/***
** Function to convert data in CSV to JSON
***/
var csvToJson = function (csvData) {
var rows=csvData.split("\n"),
jsonData=[],
headers=rows[0].split(","),
rowsLength = rows.length;
import React from 'react';
import ReactDOM from 'react-dom';
import ReactFC from 'react-fusioncharts';
import FusionCharts from 'fusioncharts';
import charts from 'fusioncharts/fusioncharts.charts';
import maps from 'fusioncharts/fusioncharts.maps';
import worldMap from 'fusionmaps/maps/fusioncharts.worldwithcountries';
import TM from 'fusioncharts/themes/fusioncharts.theme.zune';
import $ from 'jquery';
// Load the charts, maps, worldwithcountries module pass FusionCharts as dependency
charts(FusionCharts);
maps(FusionCharts);
worldMap(FusionCharts);
var GTDDashboard = function (options) {
var _reduce;
var _countBy;
/***
** Function to convert data in CSV to JSON
***/
var csvToJson = function (csvData) {
var rows=csvData.split("\n"),
jsonData=[],
headers=rows[0].split(","),
rowsLength = rows.length;