Skip to content

Commit f272693

Browse files
committed
Update README.md
1 parent d05dbbb commit f272693

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

README.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ import { NgModule } from '@angular/core';
2525
import { AppComponent } from './app.component';
2626

2727
// Import your library
28-
import { FusionChartsModule } from 'angular2-fusioncharts';
28+
import { FusionChartsComponent } from 'angular2-fusioncharts';
2929

3030
@NgModule({
3131
declarations: [
32-
AppComponent
32+
AppComponent,
33+
FusionChartsComponent
3334
],
3435
imports: [
3536
BrowserModule,
@@ -50,7 +51,41 @@ Once your library is imported, you can use its components, directives and pipes
5051
<h1>
5152
{{title}}
5253
</h1>
53-
<fusioncharts></fusioncharts>
54+
<fusioncharts
55+
width="600"
56+
height="350"
57+
type="Column2D"
58+
dataFormat="JSON"
59+
dataSource=`{
60+
"chart": {
61+
"caption": "Harry's SuperMart",
62+
"subCaption": "Top 5 stores in last month by revenue"
63+
},
64+
"data": [
65+
{
66+
"label": "Bakersfield Central",
67+
"value": "880000"
68+
},
69+
{
70+
"label": "Garden Groove harbour",
71+
"value": "730000"
72+
},
73+
{
74+
"label": "Los Angeles Topanga",
75+
"value": "590000"
76+
},
77+
{
78+
"label": "Compton-Rancho Dom",
79+
"value": "520000"
80+
},
81+
{
82+
"label": "Daly City Serramonte",
83+
"value": "330000"
84+
}
85+
]
86+
}
87+
`
88+
></fusioncharts>
5489
```
5590

5691
## Development
@@ -66,3 +101,4 @@ To lint all `*.ts` files:
66101
```bash
67102
$ npm run lint
68103
```
104+
### [Demos and Documentation](http://fusioncharts.github.io/angular2-fusioncharts/)

0 commit comments

Comments
 (0)