Fix graphs displaying 'Chart title'

This commit is contained in:
Rsl1122 2017-08-30 13:34:42 +03:00
parent d9a35e587e
commit f27313dad3
8 changed files with 7 additions and 25 deletions

View File

@ -6,7 +6,7 @@ function activityPie(id, activitySeries, activityTotal, activityColors) {
plotShadow: false, plotShadow: false,
type: 'pie' type: 'pie'
}, },
subtitle: {text: 'Total Players:' + activityTotal}, title: {text: ''},
tooltip: { tooltip: {
pointFormat: '{series.name}: <b>{point.y}</b>' pointFormat: '{series.name}: <b>{point.y}</b>'
}, },

View File

@ -1,24 +0,0 @@
function gmPie(id, gmSeries, gmtotal, gmColors) {
Highcharts.chart(id, {
chart: {
plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false,
type: 'pie'
},
subtitle: {text: gmtotal},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.2f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false
},
colors: gmColors,
showInLegend: true
}
},
series: [gmSeries]
});
}

View File

@ -23,6 +23,7 @@ function playersChart(id, playersOnlineSeries, sel) {
text: 'All' text: 'All'
}] }]
}, },
title: {text: ''},
plotOptions: { plotOptions: {
areaspline: { areaspline: {
fillOpacity: 0.4 fillOpacity: 0.4

View File

@ -3,6 +3,7 @@ function punchCard(id, punchcardSeries) {
chart: { chart: {
defaultSeriesType: 'scatter' defaultSeriesType: 'scatter'
}, },
title: {text: ''},
xAxis: { xAxis: {
type: 'datetime', type: 'datetime',
dateTimeLabelFormats: { dateTimeLabelFormats: {

View File

@ -49,6 +49,7 @@ function resourceChart(id, cpuSeries, ramSeries) {
tooltip: { tooltip: {
split: true split: true
}, },
title: {text: ''},
plotOptions: { plotOptions: {
areaspline: { areaspline: {
fillOpacity: 0.4 fillOpacity: 0.4

View File

@ -48,6 +48,7 @@ function tpsChart(id, tpsSeries, playersOnlineSeries) {
tooltip: { tooltip: {
split: true split: true
}, },
title: {text: ''},
plotOptions: { plotOptions: {
areaspline: { areaspline: {
fillOpacity: 0.4 fillOpacity: 0.4

View File

@ -49,6 +49,7 @@ function worldChart(id, entitySeries, chunkSeries) {
tooltip: { tooltip: {
split: true split: true
}, },
title: {text: ''},
plotOptions: { plotOptions: {
areaspline: { areaspline: {
fillOpacity: 0.4 fillOpacity: 0.4

View File

@ -3,6 +3,7 @@ function worldMap(id, colorMin, colorMax, mapSeries) {
chart: { chart: {
animation: true animation: true
}, },
title: {text: ''},
colorAxis: { colorAxis: {
min: 1, min: 1,
type: 'logarithmic', type: 'logarithmic',