Comments (3)
Could you provide more details ?
from angular2-highcharts.
- git clone https://github.com/angular/angular2-seed.git
- cd angular2-seed/
- npm install
- npm install angular2-highcharts --save
- modify files as below
- npm start
about.ts:
import {Component} from '@angular/core';
import {Http} from '@angular/http';
import { CHART_DIRECTIVES } from 'angular2-highcharts';
@Component({
selector: 'about',
templateUrl: 'app/components/about/about.html',
styleUrls: ['app/components/about/about.css'],
providers: [],
directives: [CHART_DIRECTIVES],
pipes: []
})
export class About {
private options: Object;
constructor(http: Http) {
this.options = {
title: { text: 'simple chart' },
series: [{
data: [29.9, 71.5, 106.4, 129.2],
}]
};
}
ngOnInit() {
}
}
about.html
<h3>About Component</h3>
<p>This is the about component!</p>
<chart [options]="options"></chart>
warnings:
WARNING in ./~/angular2-highcharts/dist/index.js
Cannot find source file '../src/index.ts': Error: Cannot resolve 'file' or 'directory' ../src/index.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/ChartComponent.js
Cannot find source file '../src/ChartComponent.ts': Error: Cannot resolve 'file' or 'directory' ../src/ChartComponent.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/ChartSeriesComponent.js
Cannot find source file '../src/ChartSeriesComponent.ts': Error: Cannot resolve 'file' or 'directory' ../src/ChartSeriesComponent.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/ChartPointComponent.js
Cannot find source file '../src/ChartPointComponent.ts': Error: Cannot resolve 'file' or 'directory' ../src/ChartPointComponent.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/Highcharts.js
Cannot find source file '../src/Highcharts.ts': Error: Cannot resolve 'file' or 'directory' ../src/Highcharts.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/HighchartsService.js
Cannot find source file '../src/HighchartsService.ts': Error: Cannot resolve 'file' or 'directory' ../src/HighchartsService.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/initChart.js
Cannot find source file '../src/initChart.ts': Error: Cannot resolve 'file' or 'directory' ../src/initChart.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/createBaseOpts.js
Cannot find source file '../src/createBaseOpts.ts': Error: Cannot resolve 'file' or 'directory' ../src/createBaseOpts.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/deepAssign.js
Cannot find source file '../src/deepAssign.ts': Error: Cannot resolve 'file' or 'directory' ../src/deepAssign.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
WARNING in ./~/angular2-highcharts/dist/ChartEvent.js
Cannot find source file '../src/ChartEvent.ts': Error: Cannot resolve 'file' or 'directory' ../src/ChartEvent.ts in /private/tmp/angular2-seed/node_modules/angular2-highcharts/dist
from angular2-highcharts.
have solved? I have an old project, webpack 1.2.1 ,still have the problem
from angular2-highcharts.
Related Issues (20)
- How to draw a candlestick chart? HOT 2
- How to show multiple chart in same graph? do you have any example?
- ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'ChartModule' was called. HOT 5
- ar
- How to import "indicators" inside AppModule
- multi language support HOT 1
- use gauge chart in pure typeScript projects HOT 3
- Support for bullet type chart missing HOT 5
- Chart not responsive - width stuck at 600px no matter what I do HOT 7
- sunburst module missing ? HOT 2
- How to make Gauge chart dynamic as speedometer in angular 4 HOT 1
- Can't use responsive attribute in options
- The live demos do not work
- type=line did not show data in graph
- Use classic mode instead of Styled mode
- serie type of columnrange HOT 2
- Event properties target.category and clickevent.point are not available in angular 6 typescript
- How to use this plugin for commerical use HOT 1
- Angular 8 support?
- How to implement Gantt in angular2-highcharts? is it supported or not?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-highcharts.