Skip to content

Commit

Permalink
Merge pull request #1854 from ag-grid/AG-11955-annotation-toolbar-def…
Browse files Browse the repository at this point in the history
…ault

AG-11955 Change annotations toolbars enabled by default
  • Loading branch information
alantreadway committed Jun 25, 2024
2 parents adcc30c + ee7e541 commit 6c1ba42
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 90 deletions.
1 change: 0 additions & 1 deletion packages/ag-charts-community/src/chart/toolbar/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ export class Toolbar extends BaseModuleInstance implements ModuleInstance {

for (const group of TOOLBAR_GROUPS) {
if (this[group] == null) continue;

const groupVisible = isGroupVisible(group);
for (const button of this.groupButtons[group]) {
const buttonVisible = groupVisible && this[group].buttons?.some(isButtonVisible(button));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MONTH = DAY * 30;
const YEAR = DAY * 365;

const annotations: AgToolbarOptions['annotations'] = {
enabled: false,
enabled: true,
position: 'left',
align: 'start',
buttons: [
Expand Down Expand Up @@ -52,7 +52,7 @@ const annotations: AgToolbarOptions['annotations'] = {
};

const annotationOptions: AgToolbarOptions['annotationOptions'] = {
enabled: false,
enabled: true,
position: 'floating',
align: 'start',
buttons: [
Expand Down Expand Up @@ -118,7 +118,7 @@ const ranges: AgToolbarOptions['ranges'] = {
};

const zoom: AgToolbarOptions['zoom'] = {
enabled: false,
enabled: true,
position: 'top',
align: 'end',
buttons: [
Expand Down
Loading

0 comments on commit 6c1ba42

Please sign in to comment.