Skip to content

Commit

Permalink
feat: New charts
Browse files Browse the repository at this point in the history
  • Loading branch information
WorthyD committed Jul 20, 2021
1 parent f3472bf commit 054e754
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class BungieInfoComponent implements OnInit {
}
set bungieInfo(value) {
this._bungieInfo = value;
console.log('bInfor', value);
this.applyLinks();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { getDateArray } from 'projects/data/src/lib/utility/date-utils';
import { formatDate } from 'projects/data/src/lib/utility/format-date';

export function formatHeatmapData(data) {
console.log(data);
const cleanedData = data.map((x) => {
return {
formattedDate: x.date,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,27 @@ export class ActivityHeatmapComponent implements OnInit {
events: {
dataPointSelection: (event, chartContext, config) => {
/// ...
console.log('event', event);
console.log('chartContext', chartContext);
console.log('config', config);
//return this.toolTip({ series: null, seriesIndex: config.seriesIndex, dataPointIndex, w });
// return this.toolTip({ series: null, seriesIndex: config.seriesIndex, dataPointIndex, w });
const data = this.lookupData(config.seriesIndex, config.dataPointIndex, config.w.config.title.text);
console.log(data);
this.cellSelect.emit(data.date);
}
},
animations: {
speed: 50
}
},
plotOptions: {
heatmap: {
shadeIntensity: 0.5,
//useFillColorAsStroke: true,
// useFillColorAsStroke: true,
colorScale: {
ranges: [
{
from: 0,
to: 1,
name: ' ',
color: '#fafafa'
//color: this.colorTheme === 'light' ? '#fafafa' : '#303030'
// color: this.colorTheme === 'light' ? '#fafafa' : '#303030'
},
{
from: 2,
Expand Down Expand Up @@ -254,7 +254,7 @@ export class ActivityHeatmapComponent implements OnInit {
}
updateChart(events) {
this.dataSets = formatHeatmapData(events);
// console.log(this.dataSets);
// console.log(this.dataSets);
// console.log(this.dataSets);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export class ClanMemberActivityService extends BaseMemberActivityService {
return this.getMemberCharacterActivity(clanId, member, characterId).pipe(
map((activity) => {
if (activityMode > 0) {
console.log(activity);
activity = activity.filter((a) => a.activityDetails.modes.indexOf(activityMode) > -1);
}
return {
Expand Down
1 change: 0 additions & 1 deletion src/app/clan/member-details/player-activity.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class PlayerActivityService extends BasePlayerService {
this.selectedDuration$
]).pipe(
tap((x) => {
console.log('activities tappling');
this.playerActivitiesLoadingSource.next(true);
}),
filter(([activities, isLoaded, selectedDuration]) => {
Expand Down
1 change: 0 additions & 1 deletion src/app/clan/member-details/player.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export class PlayerService extends BasePlayerService {
*/
selectMemberTriumphs$ = this.preload$.pipe(
switchMap(([isMemberLoaded, clanId, member]) => {
console.log(member);
return this.clanRosterService.getMemberRosterStats(clanId, member);
}),
map((memberStats) => {
Expand Down

0 comments on commit 054e754

Please sign in to comment.