Refactor state timeline/status history to cue model and refactor TimelineChart component (#61631)

* Adapt state timeline to scuemata

* Refactor status history to cue model

* Refactor

* Refactor TimelineChart as a core component

* wip

* Change as per CR

Co-authored-by: sam boyer <sdboyer@grafana.com>
This commit is contained in:
Victor Marin
2023-01-26 09:03:59 +02:00
committed by GitHub
parent 6c9174a766
commit 6a93c77082
28 changed files with 376 additions and 216 deletions

View File

@ -0,0 +1,41 @@
---
keywords:
- grafana
- schema
title: StateTimelinePanelCfg kind
---
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
# StateTimelinePanelCfg kind
## Maturity: experimental
## Version: 0.0
## Properties
| Property | Type | Required | Description |
|--------------------|-----------------------------|----------|-------------|
| `PanelFieldConfig` | [object](#panelfieldconfig) | **Yes** | |
| `PanelOptions` | [object](#paneloptions) | **Yes** | |
## PanelFieldConfig
### Properties
| Property | Type | Required | Description |
|---------------|---------|----------|----------------|
| `fillOpacity` | integer | No | Default: `70`. |
| `lineWidth` | integer | No | Default: `0`. |
## PanelOptions
### Properties
| Property | Type | Required | Description |
|---------------|---------|----------|-------------------------------------------------------------------------------------------------------------|
| `alignValue` | string | No | Controls the value alignment in the TimelineChart component Possible values are: `center`, `left`, `right`. |
| `mergeValues` | boolean | No | Merge equal consecutive values Default: `true`. |
| `rowHeight` | number | No | Controls the row height Default: `0.9`. |
| `showValue` | string | No | TODO docs Possible values are: `auto`, `never`, `always`. |

View File

@ -0,0 +1,39 @@
---
keywords:
- grafana
- schema
title: StatusHistoryPanelCfg kind
---
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
# StatusHistoryPanelCfg kind
## Maturity: experimental
## Version: 0.0
## Properties
| Property | Type | Required | Description |
|--------------------|-----------------------------|----------|-------------|
| `PanelFieldConfig` | [object](#panelfieldconfig) | **Yes** | |
| `PanelOptions` | [object](#paneloptions) | **Yes** | |
## PanelFieldConfig
### Properties
| Property | Type | Required | Description |
|---------------|---------|----------|----------------|
| `fillOpacity` | integer | No | Default: `70`. |
| `lineWidth` | integer | No | Default: `1`. |
## PanelOptions
### Properties
| Property | Type | Required | Description |
|-------------|--------|----------|-----------------------------------------------------------|
| `colWidth` | number | No | Controls the column width Default: `0.9`. |
| `showValue` | string | No | TODO docs Possible values are: `auto`, `never`, `always`. |