Improve graph size

This commit is contained in:
Wilson Lin 2021-08-08 13:59:21 +10:00
parent 85eea9b7d4
commit bcfc5713fc
1 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,6 @@ const combinedChartOptions = () => ({
ticks: {
fontColor: '#555',
fontSize: 24,
fontStyle: 'bold',
},
},
],
@ -137,8 +136,8 @@ const renderChart = (cfg) => new Promise((resolve, reject) => {
req.end(JSON.stringify({
backgroundColor: 'white',
chart: JSON.stringify(cfg).replaceAll('"$$$_____REPLACE_WITH_TICK_CALLBACK_____$$$"', "function(value) {return Math.round(value * 10000) / 100 + '%';}"),
width: 1200,
height: 800,
width: 1333,
height: 768,
format: 'png',
}));
});