Skip to content

Commit

Permalink
update docs for chart colours
Browse files Browse the repository at this point in the history
  • Loading branch information
time4tea committed Aug 13, 2022
1 parent f26fc08 commit beba1c9
Show file tree
Hide file tree
Showing 90 changed files with 44 additions and 6 deletions.
15 changes: 12 additions & 3 deletions build-scripts/examples/07-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ The default metric is `alt`, with a default window of `5` minutes (2.5 mins arou
The component used to be called 'gradient_chart', and type `gradient_chart` will still work, but is now deprecated and may be removed in
a future version.


{{ <component type="gradient_chart" name="chart" /> }}


## Positioning

use `x` and `y` to set the position of the chart
Expand All @@ -40,4 +38,15 @@ Use any standard metric, with any standard unit. See [04-metrics](../04-metrics)

## Colours / Sizing

These attributes are not currently configurable.
Set the height using `height`

{{ <component type="chart" height="100" /> }}

Set colours using `bg`, `fill`, `line` and `text`. These can be "r,g,b", or "r,g,b,a".

{{ <component type="chart" bg="255,255,0" fill="0,255,255" line="255,0,255" text="0,0,255" /> }}

Set alpha/transparency using `alpha`, between 0 and 255.

{{ <component type="chart" alpha="20" /> }}
{{ <component type="chart" alpha="200" /> }}
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/01-simple-text/01-simple-text-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/03-datetime/03-datetime-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xml/examples/04-metrics/04-metrics-3.png
Binary file modified docs/xml/examples/04-metrics/04-metrics-4.png
Binary file modified docs/xml/examples/04-metrics/04-metrics-5.png
Binary file modified docs/xml/examples/04-metrics/04-metrics-6.png
Binary file modified docs/xml/examples/04-metrics/04-metrics-7.png
Binary file modified docs/xml/examples/04-metrics/04-metrics-8.png
Binary file modified docs/xml/examples/04-metrics/04-metrics-9.png
Binary file modified docs/xml/examples/07-bar/07-bar-12.png
Binary file modified docs/xml/examples/07-chart/07-chart-0.png
Binary file modified docs/xml/examples/07-chart/07-chart-1.png
Binary file added docs/xml/examples/07-chart/07-chart-10.png
Binary file added docs/xml/examples/07-chart/07-chart-11.png
Binary file modified docs/xml/examples/07-chart/07-chart-2.png
Binary file modified docs/xml/examples/07-chart/07-chart-3.png
Binary file modified docs/xml/examples/07-chart/07-chart-4.png
Binary file modified docs/xml/examples/07-chart/07-chart-5.png
Binary file modified docs/xml/examples/07-chart/07-chart-6.png
Binary file modified docs/xml/examples/07-chart/07-chart-7.png
Binary file added docs/xml/examples/07-chart/07-chart-8.png
Binary file added docs/xml/examples/07-chart/07-chart-9.png
35 changes: 32 additions & 3 deletions docs/xml/examples/07-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ The component used to be called 'gradient_chart', and type `gradient_chart` will
a future version.



```xml
<component type="gradient_chart" name="chart" />
```
<kbd>![07-chart-1.png](07-chart-1.png)</kbd>



## Positioning

use `x` and `y` to set the position of the chart
Expand Down Expand Up @@ -85,4 +83,35 @@ Use any standard metric, with any standard unit. See [04-metrics](../04-metrics)

## Colours / Sizing

These attributes are not currently configurable.
Set the height using `height`


```xml
<component type="chart" height="100" />
```
<kbd>![07-chart-8.png](07-chart-8.png)</kbd>


Set colours using `bg`, `fill`, `line` and `text`. These can be "r,g,b", or "r,g,b,a".


```xml
<component type="chart" bg="255,255,0" fill="0,255,255" line="255,0,255" text="0,0,255" />
```
<kbd>![07-chart-9.png](07-chart-9.png)</kbd>


Set alpha/transparency using `alpha`, between 0 and 255.


```xml
<component type="chart" alpha="20" />
```
<kbd>![07-chart-10.png](07-chart-10.png)</kbd>


```xml
<component type="chart" alpha="200" />
```
<kbd>![07-chart-11.png](07-chart-11.png)</kbd>

Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-0.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-1.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-10.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-11.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-2.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-3.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-4.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-5.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-6.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-7.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-8.png
Binary file modified docs/xml/examples/07-compass-arrow/07-compass-arrow-9.png
Binary file modified docs/xml/examples/07-compass/07-compass-0.png
Binary file modified docs/xml/examples/07-compass/07-compass-2.png
Binary file modified docs/xml/examples/07-compass/07-compass-3.png
Binary file modified docs/xml/examples/07-compass/07-compass-4.png
Binary file modified docs/xml/examples/07-compass/07-compass-5.png
Binary file modified docs/xml/examples/07-compass/07-compass-6.png
Binary file modified docs/xml/examples/07-compass/07-compass-7.png
Binary file modified docs/xml/examples/07-compass/07-compass-8.png
Binary file modified docs/xml/examples/07-compass/07-compass-9.png
Binary file modified docs/xml/examples/08-translate/08-translate-0.png
Binary file modified docs/xml/examples/08-translate/08-translate-1.png
Binary file modified docs/xml/examples/08-translate/08-translate-2.png
Binary file modified docs/xml/examples/08-translate/08-translate-3.png
Binary file modified docs/xml/examples/08-translate/08-translate-4.png
Binary file modified docs/xml/examples/08-translate/08-translate-5.png
Binary file modified docs/xml/examples/09-frame/09-frame-0.png
Binary file modified docs/xml/examples/09-frame/09-frame-1.png
Binary file modified docs/xml/examples/09-frame/09-frame-2.png
Binary file modified docs/xml/examples/09-frame/09-frame-3.png
Binary file modified docs/xml/examples/09-frame/09-frame-4.png
Binary file modified docs/xml/examples/09-frame/09-frame-5.png
Binary file modified docs/xml/examples/09-frame/09-frame-6.png

0 comments on commit beba1c9

Please sign in to comment.