diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-07-22 07:19:37 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-21 18:19:37 -0400 |
commit | 9c22961b6a06a75dad68bad87328857a9f7a55dc (patch) | |
tree | 127bf50f3d84e935ff70e0f92b59a1e29ee97f4b /website/app.ts | |
parent | c98d9bf7097575ec9832864f0e0d076a4763717c (diff) |
feat(website/benchmark): enable zoom of charts (#2668)
Diffstat (limited to 'website/app.ts')
-rw-r--r-- | website/app.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/website/app.ts b/website/app.ts index d347d5474..c93ed0986 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 } }); } |