You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/16 02:04:49 UTC

[GitHub] [incubator-echarts] Ovilia commented on issue #11848: Where can I get echarts installation and demo with typescript?

Ovilia commented on issue #11848: Where can I get echarts installation and demo with typescript?
URL: https://github.com/apache/incubator-echarts/issues/11848#issuecomment-565876138
 
 
   If you use ECharts in TypeScript project, try this:
   ```js
   npm install typings echarts --global
   npm install @types/echarts --save
   ```
   Then import in the files you wish to use ECharts:
   ```js
   import * as echarts from 'echarts';
   ```
   Here's a Chinese blog post about it: http://zhangwenli.com/blog/2017/08/29/echarts-with-ionic/#%E5%9C%A8-typescript-%E4%B8%AD%E5%BC%95%E5%85%A5-echarts
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org