@@ -34,15 +34,15 @@ export default {
3434 const oneThirdWPM = this .stats .oneThirdCharsCount / oneThirdTime * 60 / 5 ;
3535
3636 const halfCharsCount = this .stats .codeInfo .length - this .stats .oneThirdCharsCount - this .stats .lastThirdCharsCount ;
37- const halfTime = this .format (this .stats .lastThirdStartTime - this .stats .oneThirdTime , 2 , 1 );
37+ const halfTime = this .format (this .stats .lastThirdStartTime - this .stats .oneThirdTime );
3838 const halfWPM = halfCharsCount / halfTime * 60 / 5 ;
3939
4040 const lastThirdTime = this .format (this .stats .timeFromFirstInput - this .stats .lastThirdStartTime );
4141 const lastThirdWPM = this .stats .lastThirdCharsCount / lastThirdTime * 60 / 5 ;
4242
4343 return [
4444 { x: 0 , y: this .format (oneThirdWPM, 1 , 1 ) },
45- { x: this .format (this .stats .timeFromFirstInput / 2 , 0 , 1 ), y: this .format (halfWPM) },
45+ { x: this .format (this .stats .timeFromFirstInput / 2 , 0 , 1 ), y: this .format (halfWPM, 1 , 1 ) },
4646 { x: this .stats .timeFromFirstInput , y: this .format (lastThirdWPM, 1 , 1 ) },
4747 ];
4848 },
@@ -74,7 +74,7 @@ export default {
7474 callbacks: {
7575 title : ([item ]) => {
7676 if (item .datasetIndex !== 0 ) {
77- const event = this .history [item .index ];
77+ const event = this .history [item .index + 1 ];
7878
7979
8080 const buffer = [` ${ event .type === ' mistake' ? ' Wrong' : ' Correct' } : ${ event .text .replace (' ' , ' Space' )} ` ];
0 commit comments