@@ -1304,7 +1304,7 @@ function createTimelineGraph(queryStr) {
13041304 borderColor : "rgb(141, 147, 200)" ,
13051305 backgroundColor : "rgb(141, 147, 200)" ,
13061306 pointHoverBorderColor : "rgb(255, 0, 0)" ,
1307- lineTension : 0 ,
1307+ tension : 0 ,
13081308 fill : false ,
13091309 data : users [ i ] [ 1 ] . split ( "," ) ,
13101310 pointRadius : 5 ,
@@ -1315,7 +1315,7 @@ function createTimelineGraph(queryStr) {
13151315 borderColor : "rgb(89, 195, 225)" ,
13161316 backgroundColor : "rgb(89, 195, 225)" ,
13171317 pointHoverBorderColor : "rgb(255, 0, 0)" ,
1318- lineTension : 0 ,
1318+ tension : 0 ,
13191319 fill : false ,
13201320 data : users [ i ] [ 2 ] . split ( "," ) ,
13211321 pointRadius : 5 ,
@@ -1326,7 +1326,7 @@ function createTimelineGraph(queryStr) {
13261326 borderColor : "rgb(30, 44, 92)" ,
13271327 backgroundColor : "rgb(30, 44, 92)" ,
13281328 pointHoverBorderColor : "rgb(255, 0, 0)" ,
1329- lineTension : 0 ,
1329+ tension : 0 ,
13301330 fill : false ,
13311331 data : users [ i ] [ 3 ] . split ( "," ) ,
13321332 pointRadius : 5 ,
@@ -1337,7 +1337,7 @@ function createTimelineGraph(queryStr) {
13371337 borderColor : "rgb(1, 96, 140)" ,
13381338 backgroundColor : "rgb(1, 96, 140)" ,
13391339 pointHoverBorderColor : "rgb(255, 0, 0)" ,
1340- lineTension : 0 ,
1340+ tension : 0 ,
13411341 fill : false ,
13421342 data : users [ i ] [ 4 ] . split ( "," ) ,
13431343 pointRadius : 5 ,
@@ -1348,7 +1348,7 @@ function createTimelineGraph(queryStr) {
13481348 borderColor : "rgb(0, 158, 150)" ,
13491349 backgroundColor : "rgb(0, 158, 150)" ,
13501350 pointHoverBorderColor : "rgb(255, 0, 0)" ,
1351- lineTension : 0 ,
1351+ tension : 0 ,
13521352 fill : false ,
13531353 data : users [ i ] [ 5 ] . split ( "," ) ,
13541354 pointRadius : 5 ,
@@ -1359,7 +1359,7 @@ function createTimelineGraph(queryStr) {
13591359 borderColor : "rgb(230, 0, 57)" ,
13601360 backgroundColor : "rgb(230, 0, 57)" ,
13611361 pointHoverBorderColor : "rgb(255, 0, 0)" ,
1362- lineTension : 0 ,
1362+ tension : 0 ,
13631363 fill : false ,
13641364 data : users [ i ] [ 6 ] . split ( "," ) ,
13651365 pointRadius : 5 ,
@@ -1370,50 +1370,64 @@ function createTimelineGraph(queryStr) {
13701370 } ,
13711371 options : {
13721372 responsive : true ,
1373- legend : {
1374- position : "bottom" ,
1375- fontSize : 15 ,
1373+ plugins : {
1374+ legend : {
1375+ position : "bottom" ,
1376+ labels : {
1377+ font : {
1378+ size : 15
1379+ }
1380+ }
1381+ } ,
1382+ title : {
1383+ display : true ,
1384+ font : {
1385+ size : 18
1386+ } ,
1387+ text : users [ i ] [ 0 ]
1388+ }
13761389 } ,
13771390 scales : {
1378- xAxes : [ {
1391+ x : {
13791392 display : true ,
1380- scaleLabel : {
1393+ title : {
13811394 display : true ,
1382- fontSize : 15 ,
1383- labelString : "Date"
1395+ font : {
1396+ size : 15
1397+ } ,
1398+ text : "Date"
13841399 }
1385- } ] ,
1386- yAxes : [ {
1387- display : true ,
1388- scaleLabel : {
1389- display : true ,
1390- fontSize : 15 ,
1391- labelString : "Count"
1392- }
1393- } ,
1394- {
1400+ } ,
1401+ y : {
1402+ display : true ,
1403+ title : {
13951404 display : true ,
1396- id : "y-right" ,
1397- position : "right" ,
1398- scaleLabel : {
1399- display : true ,
1400- fontSize : 15 ,
1401- labelString : "Score"
1405+ font : {
1406+ size : 15
14021407 } ,
1403- ticks : {
1404- max : 20
1405- }
1408+ text : "Count"
14061409 }
1407- ]
1408- } ,
1409- title : {
1410- display : true ,
1411- fontSize : 18 ,
1412- text : users [ i ] [ 0 ]
1410+ } ,
1411+ "y-right" : {
1412+ display : true ,
1413+ type : "linear" ,
1414+ position : "right" ,
1415+ title : {
1416+ display : true ,
1417+ font : {
1418+ size : 15
1419+ } ,
1420+ text : "Score"
1421+ } ,
1422+ max : 20
1423+ }
14131424 } ,
14141425 elements : {
14151426 point : {
14161427 pointStyle : "crossRot"
1428+ } ,
1429+ line : {
1430+ tension : 0
14171431 }
14181432 }
14191433 }
0 commit comments