score:-1
I commented out the top line of the file 'node_modules/angular-highcharts/chart.d.ts':
<reference type="highcharts">
This prevented the error and the Module seems to be working fine.
score:0
You can try the Following to you app.module
import {ChartModule} from "angular2-highcharts";
import {HighchartsStatic} from "angular2-highcharts/dist/HighchartsService";
export function highchartsFactory() {
var hc = require('highcharts');
var hcm = require('highcharts/highcharts-more');
var exp = require('highcharts/modules/exporting');
var drill = require('highcharts/modules/drilldown');
hcm(hc);
exp(hc);
drill(hc)
return hc;
}
@NgModule({
..
providers: [
{
provide: HighchartsStatic,
useFactory: highchartsFactory
}
],
})
I had done this long back so if anything breaks please pardon me but it works with Angular pentagonal donut
score:0
You Need to add typings to make it highcharts available , you can add by below commend :
npm install --save @types/highcharts
score:19
npm install --save @types/highcharts
Source: stackoverflow.com
Related Query
- Cannot find type definition file for 'highcharts'
- Cannot find proper JSON array syntax for Highcharts
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Importing JSON file into Highcharts for Bar Chart Visualization
- highcharts change chart type using dropdown for multiple series
- Highcharts display label for pie chart using html table as data source
- Simple, Open source PHP wrapper for Highcharts library
- Highcharts - How to set a gradient theme for each type of graph globally?
- Where can I find the type definition of the Highcharts.AnnotationsOptions type?
- HTML table as data source for highstock charts using highcharts
- Including source for Alchemy js breaks Highcharts js
- Highcharts version 3 type definitions for typescript
- 2 column layout for Highcharts legend categorized by type - React highcharts
- Format used for date in Highcharts - Line with markers chart type
- Cannot set bar chart width for specific data, Highcharts
- Using a flask variable as data source for highcharts
- Highcharts Interactivity between plots - looking for code improvements
- Highcharts zones feature for imported text file
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
- Changing chart type give: Uncaught TypeError: Cannot read property 'length' of undefined Highcharts
- Angular 2 - HighCharts implementation: Cannot find name 'HighchartsOptions'
- javascript - Highcharts - Type Bar - How to set different starting for each bar
- Set file type dynamically when click on exporting menu in highcharts using chart.exportChart function
- Use Node.js as data source for highcharts
- Unable to load json File for highcharts
- Highcharts x-range chart datetime type for x and y axis
- Cannot add multi series to Highstock but same thing works for Highcharts
- Highcharts Column type visualization: multiple data points for the same Xaxis label
- export multiple highcharts with text area for their highcharts to multiple PDF file
- httphandler cannot find axd of Highcharts
More Query from same tag
- Feeding highchart with x and y values from ajax
- Format content of array (to match Highcharts requirements)
- Using Highcharts.js with odoo
- highchart set data to series in xrange chart
- Highcharts pannig and zooming out of limits
- Exporting of tooltip in highcharts
- highchart created using value from mysql, how to export it using phantomjs
- Highcharts -- yAxis on donut chart not being displayed
- how to show data json to 2 different highchart bar
- Making only certain bar close to each other in Highcharts
- Change Font Size Jquery Hightcharts
- Highcharts networkgraph datalabels on hover
- Highcharts - Display Stack Label
- marked point on spline chart bound to x and y axis
- High Charts Multiple Line Chart not displaying tooltip for multiple lines
- Highchart with external CSV (in external domain)
- testing React Highcharts config object with formatter callback
- How to get next point in Highcharts tooltip
- How to load data in highcharts from text
- Sliding the data of the line highchart
- How to add another same chart but with different data?
- Loading Highcharts in an iframe
- Highcharts - My nice thin cross hair changes to a thick green cross hair when adding categories
- Highcharts 12hr time format of x-axis labels
- Append onload or redraw event functions dynamically in Highcharts
- Adding intraday option to highcharts
- How to get series's id in Highcharts / Highstock
- Highcharts labels appears twice
- Calculate Linear Regression based off data within range as opposed to full data set
- Load JSON data to Highchart