Vishal Chhabria

Members
  • Content count

    2
  • Joined

  • Last visited

Posts posted by Vishal Chhabria


  1. On 11/24/2017 at 8:32 PM, Gagan Sikri said:

    Hey @chilly

    FusionCharts is not completely ES6 compatible as of now so you have to use webpack bundler to render the charts. We have created a sample for you reference. Please follow the below steps to run the same:
    - Extract zip file and navigate to fc-demo folder via terminal/command line.
    - use below command to install all the dependencies.

    
    npm install

    - use command to bundle the package (webpack is used for bundling - you can check bundle config in package.json)

    
    npm run bundle

    - Run index.html file.

    We have reported this issue internally and team is working on ES6 compatibility.

    fc-demo.zip

    Till when should we expect FusionCharts to be compatible with ES6 ?


  2. On 11/11/2017 at 3:02 AM, chilly said:

    Im getting an error of

    
    TypeError: B.register is not a function
    at /Test/node_modules/fusioncharts/fusioncharts.charts.js:6:125
    

    I am using fusioncharts installed via npm and have reverted to your guide on rendering charts via npm. Following step by step the error comes when trying to include

    
    require("fusioncharts/fusioncharts.charts")(FusionCharts);
    

    Performing a search in the fusioncharts.charts.js file shows me there is a B.register function inside. Is the guide wrong and missing a step, or is this a bug. I can display the chart using HTML fine, the js implementation is having hiccups

    Have you been able to fix this ? I am facing this issue as well.