Made multi line start at different points
This commit is contained in:
parent
08990e61dc
commit
f8067dba8f
1 changed files with 7 additions and 1 deletions
|
|
@ -174,6 +174,12 @@ async function create_multi_line_chart(statistic_data, name=''){
|
||||||
let all_dates = []
|
let all_dates = []
|
||||||
|
|
||||||
for (key in statistic_data){
|
for (key in statistic_data){
|
||||||
|
|
||||||
|
for (date in statistic_data[key].result){
|
||||||
|
if (statistic_data[key].result[date] == 0){
|
||||||
|
statistic_data[key].result[date] = null
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!Object.keys(important_player_name_colors).includes(key)){
|
if (!Object.keys(important_player_name_colors).includes(key)){
|
||||||
dataset = {
|
dataset = {
|
||||||
label: key,
|
label: key,
|
||||||
|
|
@ -491,6 +497,6 @@ async function loadStatistics(){
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(winrate_over_time_statistic_data)
|
console.log(winrate_over_time_statistic_data)
|
||||||
create_multi_line_chart(winrate_over_time_statistic_data)
|
create_multi_line_chart(winrate_over_time_statistic_data, 'Winrate van spelers over tijd')
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue