-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cbdfb7
commit c23729b
Showing
9 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ UserInterfaceState.xcuserstate | |
sonar-project.properties | ||
_readme.txt | ||
proustibat-d3jsionic.keystore | ||
psd |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<ion-header> | ||
<common-header>D3.js with Ionic</common-header> | ||
</ion-header> | ||
|
||
<ion-content> | ||
|
||
<h1 no-margin margin-bottom>Installation</h1> | ||
|
||
<h2 margin-bottom>Packages</h2> | ||
|
||
|
||
<div padding-horizontal padding-bottom> | ||
<p>You need to install D3 in your console as follows</p> | ||
|
||
<textarea ion-prism="javascript"> | ||
npm install --save d3 | ||
</textarea> | ||
|
||
<p>Install D3 TypeScript type definitions to take advantage of the autocompletion of D3</p> | ||
<textarea ion-prism="javascript"> | ||
npm install @types/d3 --save-dev | ||
</textarea> | ||
</div> | ||
|
||
|
||
<h2 margin-bottom>Use libraries in your code</h2> | ||
|
||
<div padding-horizontal padding-bottom> | ||
<p>Depending on which component of D3 you need, you'll import it in your typescript files as follows</p> | ||
<textarea ion-prism="javascript"> | ||
import * as d3 from 'd3-selection'; | ||
import * as d3Scale from 'd3-scale'; | ||
import * as d3Array from 'd3-array'; | ||
... | ||
</textarea> | ||
</div> | ||
|
||
<footer-links color="dark" no-margin></footer-links> | ||
|
||
</ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
page-installation { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { NavController, NavParams } from 'ionic-angular'; | ||
|
||
@Component({ | ||
selector: 'page-installation', | ||
templateUrl: 'installation.html', | ||
}) | ||
export class InstallationPage { | ||
constructor( public navCtrl: NavController, public navParams: NavParams ) {} | ||
ionViewDidLoad() {} | ||
} |