how to put license key in SSR project

Recommended Posts

My project is using server side rendering with next.js and I imported chart component this way.

import dynamic from 'next/dynamic.js';

const FC = dynamic(() => import('../Employee/EmployeeFusionChart'), {
  ssr: false,

we already purchased license so I tried to remove watermark from chart. when I put options in chart components and it was successful. 

function NextFC({ data }) {
  ReactFC.fcRoot(FusionCharts, Chart, FusionTheme);
  FusionCharts.options.creditLabel = false;
    key: 'OUR license key'
    creditLabel: false,

  return <ReactFC {...chartConfigs} />;

when I see this description from fusion chart website. They said I don't need to provide a license every time.
then if I want to put the license option in app.js, what should i do?
Or is there any other way to provide the license option just one time in my project? 


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now