Skip to content

Commit

Permalink
docs: v9.7.0 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Dec 11, 2023
1 parent 535dd1d commit 54144d7
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 6 deletions.
8 changes: 8 additions & 0 deletions docs/en-US/guide/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 📠 Change Log

## 9.7.0
`2023-12-12`
+ 🆕 Add instance apis`setMaxOffsetLeftDistance` and `setMaxOffsetRightDistance`.
+ 🆕 Add indicator attribute `zLevel`.
+ 💄 Optimize the rendering of the ohlc candle bar.
+ 🐞 Fix the blurry issue with the candle bar.
+ 🐞 Fix the rendering rules for the `zLevel` overlay.

## 9.6.0
`2023-11-14`
+ 🖋️ Refactor the separator module.
Expand Down
2 changes: 2 additions & 0 deletions docs/en-US/guide/indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ To create a custom technical indicator, you only need to generate a technical in
shouldFormatBigNumber?: boolean
// Do you need visible
visible?: boolean
// z level
zLevel?: number
// extended data
extendData?: any
// series, default is 'normal'
Expand Down
26 changes: 22 additions & 4 deletions docs/en-US/guide/instance-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Whether dragging and scrolling is possible.
```typescript
(distance: number) => void
```
Sets the gap that can be left to the right of the chart.
Set the gap that can be left to the right of the chart.

## getOffsetRightDistance()
```typescript
Expand All @@ -105,25 +105,39 @@ Sets the gap that can be left to the right of the chart.
Get the gap that can be left to the right of the chart.


## setMaxOffsetLeftDistance()
```typescript
(distance: number) => void
```
Set the maximum available gap on the left side of the chart.


## setMaxOffsetRightDistance()
```typescript
(distance: number) => void
```
Set the maximum available gap on the right side of the chart.


## setLeftMinVisibleBarCount(barCount)
```typescript
(barCount: number) => void
```
Sets the minimum number of visible candles to the left.
Set the minimum number of visible candles to the left.


## setRightMinVisibleBarCount(barCount)
```typescript
(barCount: number) => void
```
Sets the minimum number of visible candles to the right.
Set the minimum number of visible candles to the right.


## setBarSpace(space)
```typescript
(space: number) => void
```
Sets the width of a single candlestick of the chart.
Set the width of a single candlestick of the chart.


## getBarSpace()
Expand Down Expand Up @@ -248,6 +262,7 @@ Set load more callback function.
shouldOhlc?: boolean
shouldFormatBigNumber?: boolean
visible?: boolean
zLevel?: number
extendData?: any
series?: 'normal' | 'price' | 'volume'
figures?: Array<{
Expand Down Expand Up @@ -358,6 +373,7 @@ chart.createIndicator('MA', false, {
shouldOhlc?: boolean
shouldFormatBigNumber?: boolean
visible?: boolean
zLevel?: number
extendData?: any
series?: 'normal' | 'price' | 'volume'
figures?: Array<{
Expand Down Expand Up @@ -415,6 +431,7 @@ Overlay technical indicator information.
- `shouldOhlc` needs ohlc auxiliary graphics
- `shouldFormatBigNumber` should format large numbers. For example, 1000 is converted to 1k, 1000000 is converted to 1M, etc.
- `visible` visible or not
- `zLevel` z level
- `extendData` extended data
- `series` indicator series, optional options are 'normal', 'price' and 'volume'
- `figures` graphics configuration
Expand All @@ -441,6 +458,7 @@ chart.overrideIndicator({
shouldOhlc: true,
shouldFormatBigNumber: false,
visible: true,
zLevel: 1,
extendData: 2432435,
series: 'price',
figures: [],
Expand Down
8 changes: 8 additions & 0 deletions docs/guide/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 📠 更新日志

## 9.7.0
`2023-12-12`
+ 🆕 实例方法新增`setMaxOffsetLeftDistance``setMaxOffsetRightDistance`
+ 🆕 指标新增`zLevel`属性。
+ 💄 优化`ohlc`蜡烛柱渲染。
+ 🐞 修复蜡烛柱模糊问题。
+ 🐞 修复覆盖物`zLevel`渲染规则。

## 9.6.0
`2023-11-14`
+ 🖋️ 重构窗口之间的分割线模块。
Expand Down
4 changes: 3 additions & 1 deletion docs/guide/indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
// 是否需要格式化大数据值,从1000开始格式化,比如100000是否需要格式化100K
shouldFormatBigNumber?: boolean
// 是否可见
visible?: boolean
visible?: boolean
// 层级
zLevel?: number
// 扩展数据
extendData?: any
// 系列,默认为'normal'
Expand Down
18 changes: 18 additions & 0 deletions docs/guide/instance-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@
获取图表右边可以空出来的间隙。


## setMaxOffsetLeftDistance()
```typescript
(distance: number) => void
```
设置图表左边最大可空出来的间隙。


## setMaxOffsetRightDistance()
```typescript
(distance: number) => void
```
设置图表右边最大可空出来的间隙。


## setLeftMinVisibleBarCount(barCount)
```typescript
(barCount: number) => void
Expand Down Expand Up @@ -250,6 +264,7 @@
shouldOhlc?: boolean
shouldFormatBigNumber?: boolean
visible?: boolean
zLevel?: number
extendData?: any
series?: 'normal' | 'price' | 'volume'
figures?: Array<{
Expand Down Expand Up @@ -362,6 +377,7 @@ chart.createIndicator('MA', false, {
shouldOhlc?: boolean
shouldFormatBigNumber?: boolean
visible?: boolean
zLevel?: number
extendData?: any
series?: 'normal' | 'price' | 'volume'
figures?: Array<{
Expand Down Expand Up @@ -425,6 +441,7 @@ chart.createIndicator('MA', false, {
- `shouldOhlc` 是否需要ohlc辅助图形
- `shouldFormatBigNumber` 是否需要格式化大的数字。如1000转换成1k,1000000转换为1M等
- `visible` 是否可见
- `zLevel` 层级
- `extendData` 扩展数据
- `series` 指标系列,可选项有'normal','price'和'volume'
- `figures` 图形配置
Expand All @@ -451,6 +468,7 @@ chart.overrideIndicator({
shouldOhlc: true,
shouldFormatBigNumber: false,
visible: true,
zLevel: 1,
extendData: 2432435,
series: 'price',
figures: [],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "klinecharts",
"version": "9.6.0",
"version": "9.7.0",
"description": "Lightweight k-line chart built with html5 canvas",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
Expand Down

0 comments on commit 54144d7

Please sign in to comment.