mirror of https://github.com/grafana/grafana.git
				
				
				
			TimeSeries: Rename axisShow -> axisBorderShow (#75127)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
		
							parent
							
								
									780b60dc81
								
							
						
					
					
						commit
						9dc0c8be11
					
				|  | @ -56,7 +56,7 @@ | |||
|             "axisColorMode": "text", | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "axisShow": false, | ||||
|             "axisBorderShow": false, | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "fillOpacity": 0, | ||||
|  | @ -174,7 +174,7 @@ | |||
|             "axisColorMode": "text", | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "axisShow": false, | ||||
|             "axisBorderShow": false, | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "fillOpacity": 25, | ||||
|  |  | |||
|  | @ -83,7 +83,7 @@ | |||
|             "axisColorMode": "text", | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "axisShow": false, | ||||
|             "axisBorderShow": false, | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "fillOpacity": 0, | ||||
|  |  | |||
|  | @ -29,12 +29,12 @@ It extends [AxisConfig](#axisconfig) and [HideableFieldConfig](#hideablefieldcon | |||
| 
 | ||||
| | Property            | Type                                                      | Required | Default | Description                                                                                                                                                                                                      | | ||||
| |---------------------|-----------------------------------------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisCenteredZero`  | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisColorMode`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                                                                                            | | ||||
| | `axisGridShow`      | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisLabel`         | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisPlacement`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`.                                                                          | | ||||
| | `axisShow`          | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisSoftMax`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisSoftMin`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisWidth`         | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
|  | @ -51,12 +51,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  |  | |||
|  | @ -54,12 +54,12 @@ It extends [LineConfig](#lineconfig) and [FillConfig](#fillconfig) and [PointsCo | |||
| 
 | ||||
| | Property            | Type                                                      | Required | Default | Description                                                                                                                                                                                                                                                                   | | ||||
| |---------------------|-----------------------------------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisCenteredZero`  | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisColorMode`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                                                                                                                                                         | | ||||
| | `axisGridShow`      | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisLabel`         | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisPlacement`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`.                                                                                                                                       | | ||||
| | `axisShow`          | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisSoftMax`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisSoftMin`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisWidth`         | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
|  | @ -92,12 +92,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  |  | |||
|  | @ -179,12 +179,12 @@ It extends [AxisConfig](#axisconfig). | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                                                                             | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisColorMode`     | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisLabel`         | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisPlacement`     | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisSoftMax`       | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisSoftMin`       | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisWidth`         | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
|  | @ -201,12 +201,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  |  | |||
|  | @ -29,12 +29,12 @@ It extends [AxisConfig](#axisconfig) and [HideableFieldConfig](#hideablefieldcon | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                                                                                                                                                      | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisColorMode`     | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                                                                                            | | ||||
| | `axisGridShow`      | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisLabel`         | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisPlacement`     | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`.                                                                          | | ||||
| | `axisShow`          | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisSoftMax`       | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisSoftMin`       | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
| | `axisWidth`         | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                     | | ||||
|  | @ -50,12 +50,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  |  | |||
|  | @ -31,12 +31,12 @@ It extends [LineConfig](#lineconfig) and [FillConfig](#fillconfig) and [PointsCo | |||
| 
 | ||||
| | Property            | Type                                                      | Required | Default | Description                                                                                                                                                                                                                                                                   | | ||||
| |---------------------|-----------------------------------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisCenteredZero`  | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisColorMode`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                                                                                                                                                         | | ||||
| | `axisGridShow`      | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisLabel`         | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisPlacement`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`.                                                                                                                                       | | ||||
| | `axisShow`          | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisSoftMax`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisSoftMin`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisWidth`         | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
|  | @ -69,12 +69,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  |  | |||
|  | @ -31,12 +31,12 @@ It extends [LineConfig](#lineconfig) and [FillConfig](#fillconfig) and [PointsCo | |||
| 
 | ||||
| | Property            | Type                                                      | Required | Default | Description                                                                                                                                                                                                                                                                   | | ||||
| |---------------------|-----------------------------------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisCenteredZero`  | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisColorMode`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                                                                                                                                                         | | ||||
| | `axisGridShow`      | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisLabel`         | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisPlacement`     | string                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`.                                                                                                                                       | | ||||
| | `axisShow`          | boolean                                                   | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisSoftMax`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisSoftMin`       | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
| | `axisWidth`         | number                                                    | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                                                                                                                                                                  | | ||||
|  | @ -69,12 +69,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  |  | |||
|  | @ -33,12 +33,12 @@ It extends [HideableFieldConfig](#hideablefieldconfig) and [AxisConfig](#axiscon | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                                                                             | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisColorMode`     | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisLabel`         | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisPlacement`     | string                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisSoftMax`       | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisSoftMin`       | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
| | `axisWidth`         | number                                              | No       |         | *(Inherited from [AxisConfig](#axisconfig))*                                                                                            | | ||||
|  | @ -59,12 +59,12 @@ TODO docs | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                            | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisColorMode`     | string                                              | No       |         | TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisLabel`         | string                                              | No       |         |                                                                                        | | ||||
| | `axisPlacement`     | string                                              | No       |         | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         |                                                                                        | | ||||
| | `axisSoftMax`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisSoftMin`       | number                                              | No       |         |                                                                                        | | ||||
| | `axisWidth`         | number                                              | No       |         |                                                                                        | | ||||
|  | @ -203,12 +203,12 @@ It extends [FieldConfig](#fieldconfig). | |||
| 
 | ||||
| | Property            | Type                                                | Required | Default | Description                                                                                                                               | | ||||
| |---------------------|-----------------------------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `axisBorderShow`    | boolean                                             | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisCenteredZero`  | boolean                                             | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisColorMode`     | string                                              | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`.                                   | | ||||
| | `axisGridShow`      | boolean                                             | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisLabel`         | string                                              | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisPlacement`     | string                                              | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. | | ||||
| | `axisShow`          | boolean                                             | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisSoftMax`       | number                                              | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisSoftMin`       | number                                              | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
| | `axisWidth`         | number                                              | No       |         | *(Inherited from [FieldConfig](#fieldconfig))*                                                                                            | | ||||
|  |  | |||
|  | @ -353,12 +353,12 @@ export interface ScaleDistributionConfig { | |||
|  * TODO docs | ||||
|  */ | ||||
| export interface AxisConfig { | ||||
|   axisBorderShow?: boolean; | ||||
|   axisCenteredZero?: boolean; | ||||
|   axisColorMode?: AxisColorMode; | ||||
|   axisGridShow?: boolean; | ||||
|   axisLabel?: string; | ||||
|   axisPlacement?: AxisPlacement; | ||||
|   axisShow?: boolean; | ||||
|   axisSoftMax?: number; | ||||
|   axisSoftMin?: number; | ||||
|   axisWidth?: number; | ||||
|  |  | |||
|  | @ -95,7 +95,7 @@ AxisConfig: { | |||
| 	axisGridShow?:      bool | ||||
| 	scaleDistribution?: ScaleDistributionConfig | ||||
| 	axisCenteredZero?:  bool | ||||
| 	axisShow?:          bool | ||||
| 	axisBorderShow?:    bool | ||||
| } @cuetsy(kind="interface") | ||||
| 
 | ||||
| // TODO docs | ||||
|  |  | |||
|  | @ -296,12 +296,12 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<{ | |||
| 
 | ||||
|       const axisDisplayOptions = { | ||||
|         border: { | ||||
|           show: customConfig.axisShow || false, | ||||
|           show: customConfig.axisBorderShow || false, | ||||
|           width: 1, | ||||
|           stroke: axisColor || theme.colors.text.primary, | ||||
|         }, | ||||
|         ticks: { | ||||
|           show: customConfig.axisShow || false, | ||||
|           show: customConfig.axisBorderShow || false, | ||||
|           stroke: axisColor || theme.colors.text.primary, | ||||
|         }, | ||||
|         color: axisColor || theme.colors.text.primary, | ||||
|  |  | |||
|  | @ -81,7 +81,7 @@ export function addAxisConfig( | |||
|       showIf: (c) => c.axisPlacement !== AxisPlacement.Hidden, | ||||
|     }) | ||||
|     .addBooleanSwitch({ | ||||
|       path: 'axisShow', // TODO: rename to axisBorderShow
 | ||||
|       path: 'axisBorderShow', | ||||
|       name: 'Show border', | ||||
|       category, | ||||
|       defaultValue: false, | ||||
|  |  | |||
|  | @ -83,7 +83,7 @@ | |||
|             "axisColorMode": "text", | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "axisShow": false, | ||||
|             "axisBorderShow": false, | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "fillOpacity": 0, | ||||
|  |  | |||
|  | @ -38,7 +38,7 @@ export const defaultGraphConfig: GraphFieldConfig = { | |||
|   }, | ||||
|   axisGridShow: true, | ||||
|   axisCenteredZero: false, | ||||
|   axisShow: false, | ||||
|   axisBorderShow: false, | ||||
| }; | ||||
| 
 | ||||
| const categoryStyles = ['Graph styles']; | ||||
|  |  | |||
|  | @ -623,7 +623,7 @@ const prepConfig = ( | |||
|     placement: customConfig?.axisPlacement !== AxisPlacement.Hidden ? AxisPlacement.Bottom : AxisPlacement.Hidden, | ||||
|     show: customConfig?.axisPlacement !== AxisPlacement.Hidden, | ||||
|     grid: { show: customConfig?.axisGridShow }, | ||||
|     border: { show: customConfig?.axisShow }, | ||||
|     border: { show: customConfig?.axisBorderShow }, | ||||
|     theme, | ||||
|     label: | ||||
|       xAxisLabel == null || xAxisLabel === '' | ||||
|  | @ -670,7 +670,7 @@ const prepConfig = ( | |||
|       placement: customConfig?.axisPlacement === AxisPlacement.Auto ? AxisPlacement.Left : customConfig?.axisPlacement, | ||||
|       show: customConfig?.axisPlacement !== AxisPlacement.Hidden, | ||||
|       grid: { show: customConfig?.axisGridShow }, | ||||
|       border: { show: customConfig?.axisShow }, | ||||
|       border: { show: customConfig?.axisBorderShow }, | ||||
|       size: customConfig?.axisWidth, | ||||
|       label: | ||||
|         yAxisLabel == null || yAxisLabel === '' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue