From 97ceecbfac3d7c872ba219cb16004e8575ad2dcc Mon Sep 17 00:00:00 2001 From: lihu Date: Thu, 25 Feb 2021 18:39:51 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/graphic-mark-auxiliary-api.md | 18 +++++++++--------- docs/en/instance-api.md | 4 ++-- docs/en/technical-indicator.md | 2 +- docs/zh-CN/instance-api.md | 4 ++-- docs/zh-CN/technical-indicator.md | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/en/graphic-mark-auxiliary-api.md b/docs/en/graphic-mark-auxiliary-api.md index a37ec321a..c204432ee 100644 --- a/docs/en/graphic-mark-auxiliary-api.md +++ b/docs/en/graphic-mark-auxiliary-api.md @@ -76,27 +76,27 @@ Determine whether a point is on an arc. ### checkPointInCircle(circleCenterPoint, radius, targetPoint) Determine whether a point is inside the circle. --`point1` the first point --`point2` the second point --`targetPoint` target point +- `point1` the first point +- `point2` the second point +- `targetPoint` target point ### checkPointOnCircle(circleCenterPoint, radius, targetPoint) Determine whether a point is on the circle. --`point1` the first point --`point2` the second point --`targetPoint` target point +- `point1` the first point +- `point2` the second point +- `targetPoint` target point ### getRayLine(point1, point2, xyMax) Obtain the ray from two points. --`point1` the first point --`point2` the second point --`xyMax` coordinates to the left of the extreme value +- `point1` the first point +- `point2` the second point +- `xyMax` coordinates to the left of the extreme value diff --git a/docs/en/instance-api.md b/docs/en/instance-api.md index deb0a6662..f88b93931 100644 --- a/docs/en/instance-api.md +++ b/docs/en/instance-api.md @@ -106,7 +106,7 @@ Create a technical indicator, the return value is a string that identifies the w Example: ```javascript chart.createTechnicalIndicator('MA', false, { -id:'pane_1', + id:'pane_1', height: 100, dragEnabled: true }) @@ -124,7 +124,7 @@ Cover technical indicator information. Example: ```javascript chart.overrideTechnicalIndicator({ -name:'MA', + name:'MA', calcParams: [5, 10, 30, 60, 120], precision: 4, styles: { diff --git a/docs/en/technical-indicator.md b/docs/en/technical-indicator.md index 3ac997297..46ba4632a 100644 --- a/docs/en/technical-indicator.md +++ b/docs/en/technical-indicator.md @@ -116,7 +116,7 @@ To complete a custom technical indicator, you only need to generate a technical The following will customize a technical indicator named 'MA' to introduce step by step how to make a custom technical indicator. #### step one First determine the calculation parameters (calcParams) and configuration items (plots). The 'MA' technical indicator needs to display the line connecting the average closing prices of the two periods, one is 'ma1' and the other is called 'ma2'. So the plots configuration is: -```json +```javascript { // There are two calculation parameters, one calculates the average value of 5 cycle times, namely'ma1', and the other calculates the average value of 10 cycle times, namely'ma10' calcParams: [5, 10], diff --git a/docs/zh-CN/instance-api.md b/docs/zh-CN/instance-api.md index 6443c5e0b..1bad6e8a6 100644 --- a/docs/zh-CN/instance-api.md +++ b/docs/zh-CN/instance-api.md @@ -127,7 +127,7 @@ 示例: ```javascript chart.createTechnicalIndicator('MA', false, { - id: 'pane_1', + id: 'pane_1', height: 100, dragEnabled: true }) @@ -146,7 +146,7 @@ chart.createTechnicalIndicator('MA', false, { 示例: ```javascript chart.overrideTechnicalIndicator({ - name: 'MA', + name: 'MA', calcParams: [5, 10, 30, 60, 120], precision: 4, styles: { diff --git a/docs/zh-CN/technical-indicator.md b/docs/zh-CN/technical-indicator.md index c201d2fc8..2cf6b7cff 100644 --- a/docs/zh-CN/technical-indicator.md +++ b/docs/zh-CN/technical-indicator.md @@ -132,7 +132,7 @@ 确定其它属性 ```javascript { - name: 'MA', + name: 'MA', calcParams: [5, 10], plots: [ { key: 'ma1', title: 'MA5', type: 'line' },