Last active
April 22, 2017 11:42
-
-
Save ygaller/a20fbb2d556f3abad9379f0882707091 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<div class="widget"> | |
<h2>Service & component with CSV data source</h2> | |
<d3-circle-packing-renderer [root]="csvRoot"></d3-circle-packing-renderer> | |
</div> |
This file contains hidden or 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
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'], | |
providers: [ | |
flareCsvServiceProvider(FLARE_CSV) | |
], | |
}) | |
export class AppComponent { | |
public csvRoot; | |
constructor(private flareCsvService: FlareCsvService, | |
private flareJsonService: FlareJsonService) { | |
this.csvRoot = flareCsvService.getRoot(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment