Skip to content

Commit

Permalink
docs(api): Add notes for .axis' methods (#3349)
Browse files Browse the repository at this point in the history
Add notes for .axis() methods, where only applicable for
chart types which has x and y axes.

Ref #3343
  • Loading branch information
netil authored and netil committed Sep 5, 2023
1 parent 321510b commit cd001eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Chart/api/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function getMinMax($$, type: "min" | "max"): {x: number, y: number, y2: number}
const axis = {
/**
* Get and set axis labels.
* - **NOTE:** Only applicable for chart types which has x and y axes.
* @function axis․labels
* @instance
* @memberof Chart
Expand Down Expand Up @@ -126,6 +127,7 @@ const axis = {

/**
* Get and set axis min value.
* - **NOTE:** Only applicable for chart types which has x and y axes.
* @function axis․min
* @instance
* @memberof Chart
Expand Down Expand Up @@ -163,6 +165,7 @@ const axis = {

/**
* Get and set axis max value.
* - **NOTE:** Only applicable for chart types which has x and y axes.
* @function axis․max
* @instance
* @memberof Chart
Expand Down Expand Up @@ -200,6 +203,7 @@ const axis = {

/**
* Get and set axis min and max value.
* - **NOTE:** Only applicable for chart types which has x and y axes.
* @function axis․range
* @instance
* @memberof Chart
Expand Down

0 comments on commit cd001eb

Please sign in to comment.