Skip to content

Commit

Permalink
docs: 修改文档格式
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Feb 25, 2021
1 parent 931cd3d commit 97ceecb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions docs/en/graphic-mark-auxiliary-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
4 changes: 2 additions & 2 deletions docs/en/instance-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand All @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion docs/en/technical-indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-CN/instance-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
示例:
```javascript
chart.createTechnicalIndicator('MA', false, {
id: 'pane_1',
id: 'pane_1',
height: 100,
dragEnabled: true
})
Expand All @@ -146,7 +146,7 @@ chart.createTechnicalIndicator('MA', false, {
示例:
```javascript
chart.overrideTechnicalIndicator({
name: 'MA',
name: 'MA',
calcParams: [5, 10, 30, 60, 120],
precision: 4,
styles: {
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/technical-indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
确定其它属性
```javascript
{
name: 'MA',
name: 'MA',
calcParams: [5, 10],
plots: [
{ key: 'ma1', title: 'MA5', type: 'line' },
Expand Down

0 comments on commit 97ceecb

Please sign in to comment.