summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--website/app.ts7
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
}
});
}