-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Description
Description
billboard.js/src/config/Options.js
Line 141 in 862156f
* @property {Function} [zoom.onzoom=undefined] Set callback that is called when the chart is zooming.<br> |
The onzoom API had returned domain object, but now it doesn't.
- "billboard.js": "1.7.1" (working)
- "billboard.js": "1.8.1" (not working)
- "billboard.js": "1.10.2" (not working)
It expects to receive a domain object, but there is no domain object (undefined
)
onzoom: (domain) => {
console.log('onzoom', domain)
},
Steps to check or reproduce
bb.generate({
bindto: "#chart",
zoom: {
enabled: {
type: 'drag',
},
rescale: false,
onzoom: (domain) => {
console.log('onzoom', domain)
},
resetButton: true,
},
data: {
columns: [
["data1", 30, 200, 100, 170, 150, 250],
["data2", 130, 100, 140, 35, 110, 50]
],
types: {
data1: "line",
data2: "area-spline"
},
colors: {
data1: "red",
data2: "green"
}
}
});