♻️ Update image size, 48 data points

This commit is contained in:
Anand Chowdhary
2020-08-09 15:13:31 +05:30
parent 36df18e673
commit c3dbb5ea9f
+2 -2
View File
@@ -5,7 +5,7 @@ import { safeLoad } from "js-yaml";
import { join } from "path";
import { CanvasRenderService } from "chartjs-node-canvas";
const canvasRenderService = new CanvasRenderService(400, 400);
const canvasRenderService = new CanvasRenderService(600, 400);
export const generateGraphs = async () => {
const config = safeLoad(
@@ -32,7 +32,7 @@ export const generateGraphs = async () => {
owner,
repo,
path: `history/${slug}.yml`,
per_page: 100,
per_page: 48,
});
if (!history.data.length) continue;
const data: [number, string][] = history.data