提交 9c22961b 编写于 作者: Y Yoshiya Hinosawa 提交者: Ryan Dahl

feat(website/benchmark): enable zoom of charts (#2668)

上级 c98d9bf7
......@@ -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
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册