From 9c22961b6a06a75dad68bad87328857a9f7a55dc Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 22 Jul 2019 07:19:37 +0900 Subject: [PATCH] feat(website/benchmark): enable zoom of charts (#2668) --- website/app.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/app.ts b/website/app.ts index d347d547..c93ed098 100644 --- a/website/app.ts +++ b/website/app.ts @@ -127,6 +127,7 @@ export function formatReqSec(reqPerSec) { * @param {function} onclick action on clicking nodes of chart * @param {string} yLabel label of y axis * @param {function} yTickFormat formatter of y axis ticks + * @param {boolean} zoomEnabled enables the zoom feature */ function generate( id, @@ -134,7 +135,8 @@ function generate( columns, onclick, yLabel = "", - yTickFormat = null + yTickFormat = null, + zoomEnabled = true ) { const yAxis = { padding: { bottom: 0 }, @@ -173,6 +175,9 @@ function generate( categories }, y: yAxis + }, + zoom: { + enabled: zoomEnabled } }); } -- GitLab