angular2-highcharts icon indicating copy to clipboard operation
angular2-highcharts copied to clipboard

use gauge chart in pure typeScript projects

Open raha1923 opened this issue 6 years ago • 3 comments

My project is created with pure typeScript and i need to use gauge in my project. When i try to use, i fall in problem and get error #17. I found out it will be solved if i use highcharts-more and try to solve with the following instructions:


import * as ChartModuleMore from 'highcharts/highcharts-more';
import * as Highcharts from "highcharts";

ChartModuleMore(Highcharts);

But when i try it, i get the following error:

"/node_modules/@types/highcharts/highcharts-more"' resolves to a non-module entity and cannot be imported using this construct.

package version
highcharts 4.2.6
types/highcharts 5.0.19

raha1923 avatar Mar 08 '18 11:03 raha1923

when i try the column chart or any other one that aren't depended to the highcharts-more, every thing is ok and it run right like what i want.

raha1923 avatar Mar 08 '18 12:03 raha1923

in case anyone is still using this dead library, add this under the import of Highcharts

require('highcharts/highcharts-more')(Highcharts);

kuvelas avatar Nov 06 '18 23:11 kuvelas

Hi were you able to fix this issue

elninotorres avatar Dec 29 '18 09:12 elninotorres