Skip to content

Commit 58dfabc

Browse files
committed
docs: update
1 parent ed58f1d commit 58dfabc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/@views/api/references/chart/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
threshold?: number
6262
format?: (value: number | string) => string
6363
}
64-
zoomAnchor?: { main?: 'cursor_point' | 'last_bar', xAxis?: 'cursor_point' | 'last_bar' }
64+
zoomAnchor?: 'cursor' | 'last_bar' | { main?: 'cursor' | 'last_bar', xAxis?: 'cursor' | 'last_bar' }
6565
}
6666
) => Chart
6767
```

docs/@views/api/samples/getZoomAnchor/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ chart.setDataLoader({
1616
}
1717
})
1818

19-
const anchor = chart.zoomAnchor()
19+
const anchor = chart.getZoomAnchor()
20+
console.log(anchor)

docs/en-US/api/chart/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import Tip from '../../../@components/Tip.vue'
6565
- `decimalFold` Decimal 0 folds the configuration.
6666
- `threshold` Fold threshold.
6767
- `format` Custom formatting method.
68-
- `zoomAnchor` Set the anchor position when zooming the chart to `last_bar` or `cursor_point`
68+
- `zoomAnchor` Set the anchor position when zooming the chart to `last_bar` or `cursor`
6969

7070
### Returns {#returns}
7171
`init` returns an object `Chart`

0 commit comments

Comments
 (0)