How to use chart with typescript that use requirejs??

Hi there, sorry by my english.
The samples available on site, use systemjs and webpack.
In my project i am using typescript and requirejs, how to use the chart control??
Where are my css and js??

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team February 6, 2018 10:56 AM UTC

Hi Julio, 

Thanks for using Syncfusion products. 

We have analyzed your query. We have prepared  sample with respect to your requirement. Kindly find the sample from below link. 

 
In the above sample, open the package.json and specify the required dependencies that are need to be installed during the npm installation. Here we installed all the Syncfusion packages.  

 

Then in the require.config.js file, specify the index files of the dependecies which are need to loaded for your application.  

 
And then refer the require.config.js script in the index.html file. 


<script src="../../require.config.js"></script> 



Now, open the command prompt, navigate to the chart folder and specify the npm install, the dependencies which are mentioned in the package.json will be installed.  

 


Now in the app.ts file specify the required chart properties and then run npm start in the command prompt. Now, if you run the index.html file, the chart will genreated as below, 

 

In the above attahced sample, we have already configured the package.json and require.config.js files, you can run the npm install in command prompt and then run the index.html file, so that chart will render as depicted above.  

For more informatiuon on chart, kindly find the help document from below. 

kindly revert us, if you have any concerns. 

Thanks, 
Dharani. 



Loader.
Up arrow icon