diff --git a/types/c3/c3-tests.ts b/types/c3/c3-tests.ts index 6d7ea67287..5c554320f9 100644 --- a/types/c3/c3-tests.ts +++ b/types/c3/c3-tests.ts @@ -334,6 +334,7 @@ function zoom_examples() { data: {}, zoom: { enabled: false, + type: 'scroll', rescale: true, extent: [1, 100], // enable more zooming onzoom: (domain) => { /* code */ }, diff --git a/types/c3/index.d.ts b/types/c3/index.d.ts index 0d94347ca3..e047b22c7e 100644 --- a/types/c3/index.d.ts +++ b/types/c3/index.d.ts @@ -806,6 +806,10 @@ export interface ZoomOptions { * Enable zooming. */ enabled?: boolean; + /** + * Set interaction type for zooming + */ + type?: 'scroll' | 'drag'; /** * Enable to rescale after zooming. If true set, y domain will be updated according to the zoomed region. */