Skip to content

Commit

Permalink
Fix #50 Analysis graph issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Nov 3, 2019
1 parent 7e0496b commit ecdc28e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export function analysisChart (ctrl) {
name: turn + dots + ' ' + step.san,
y: povChances(step.turnColor, score)
};
if (ply === 0) point.name = 'Initial position';
return point;
} else return 0;
} else return 0;
} else return null;
} else return null;
})
ctrl.analysisChart = Highcharts.chart('chart', {
chart: { type: 'area',
Expand Down
8 changes: 5 additions & 3 deletions static/pychess-variants.js

Large diffs are not rendered by default.

0 comments on commit ecdc28e

Please sign in to comment.