WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2eca901

Browse files
authored
Merge pull request #5772 from ag-grid/dg/zoom-on-update-docs
zoom on update docs and defaults
2 parents 509b7db + 3fc7ea1 commit 2eca901

File tree

26 files changed

+695
-3
lines changed

26 files changed

+695
-3
lines changed

packages/ag-charts-enterprise/src/preset/priceVolumePreset.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ export function priceVolume(
157157
autoScaling: {
158158
enabled: true,
159159
},
160+
onDataChange: {
161+
stickToEnd: true,
162+
},
160163
// @ts-expect-error undocumented option
161164
enableIndependentAxes: true,
162165
} satisfies AgZoomOptions,

packages/ag-charts-types/src/chart/zoomOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ export interface AgZoomOnDataChange {
6969
strategy?: AgZoomOnDataChangeStrategy;
7070
/**
7171
* When `true`, the zoom will be adjusted to ensure that newly appended data is in the viewport. This behavior only
72-
* happens if the chart's X-zoom is pan all the way to the very end of data range; otherwise the current `strategy`
72+
* happens if the chart's horizontal viewport is panned all the way to the very end of data range; otherwise the current `strategy`
7373
* is used instead.
7474
*
75-
* Default: `true`
75+
* Default: `false`
7676
*/
7777
stickToEnd?: boolean;
7878
}

0 commit comments

Comments
 (0)