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
app-bar-chart { | |
#chart { | |
height: inherit; | |
width: inherit; | |
.bar { | |
fill: steelblue; | |
} | |
.bar:hover { |
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
app-bar-chart { | |
.bar { | |
fill: steelblue; | |
} | |
.bar:hover { | |
fill: brown; | |
} | |
.axis--x path { |
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
import { Component, ElementRef, Input, OnChanges, ViewChild, ViewEncapsulation } from '@angular/core'; | |
import * as d3 from 'd3'; | |
import { DataModel } from 'src/app/data/data.model'; | |
@Component({ | |
selector: 'app-bar-chart', | |
encapsulation: ViewEncapsulation.None, | |
templateUrl: './bar-chart.component.html', | |
styleUrls: ['./bar-chart.component.scss'] | |
}) |
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
import { HttpClient } from '@angular/common/http'; | |
import { Component } from '@angular/core'; | |
import { Observable } from 'rxjs'; | |
import { DataModel } from 'src/data/data.model'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) |
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
[ | |
{ | |
"letter": "A", | |
"frequency": 0.08167 | |
}, | |
{ | |
"letter": "B", | |
"frequency": 0.01492 | |
}, | |
{ |
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
import { ActionReducerMap, createFeatureSelector, createSelector } from '@ngrx/store'; | |
import * as fromRoot from '../../reducers'; | |
import * as fromDates from './dates'; | |
import * as fromProjects from './projects'; | |
export interface ProjectsState { | |
dates: fromDates.State; | |
projects: fromProjects.State; | |
} |
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
import { ProjectsDetails } from '../../../shared/model/user-projects-details'; | |
import * as actions from './../actions/projects'; | |
export interface State extends ProjectsDetails { | |
error: any; | |
} | |
export const initialState: State = { | |
projects: [], | |
projectsUsers: [], |
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.store.dispatch(new LoadProjectsDetails(this.userId)); |
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
import { Injectable } from '@angular/core'; | |
import { Actions, Effect } from '@ngrx/effects'; | |
import { Action } from '@ngrx/store'; | |
import { Observable, of } from 'rxjs'; | |
import * as project from './../actions/projects'; | |
import { ProjectsService } from './../services/projects.service'; | |
@Injectable() | |
export class ProjectEffects { |
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
import { Injectable } from '@angular/core'; | |
import { Actions } from '@ngrx/effects'; | |
import { ProjectsService } from './../services/projects.service'; | |
@Injectable() | |
export class ProjectEffects { | |
constructor(private actions$: Actions, | |
private projectsService: ProjectsService) { } | |
} |
NewerOlder