Skip to content

Commit

Permalink
doc: Add an example to change the line thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 30, 2021
1 parent a0e4f85 commit fd4a495
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Expand Up @@ -46,6 +46,7 @@ However, some things might be broken :grin:
- [Multiple Types of Graphs](#multiple-types-of-graphs)
- [Aggregating data](#aggregating-data)
- [Compare data from today with yesterday](#compare-data-from-today-with-yesterday)
- [Change the line thickness](#change-the-line-thickness)

## Installation

Expand Down Expand Up @@ -467,4 +468,36 @@ series:
# data from yesterday offsetted to be displayed today
- entity: sensor.temperature
offset: -1d
```
```

### Change the line thickness

* Change all lines thickness

```yaml
type: custom:apexcharts-card
graph_span: 1d
apex_config:
stroke:
# Will affect all the series
width: 2
series:
- entity: sensor.temperature
- entity: sensor.humidity
```

* Selective line thickness modification

```yaml
type: custom:apexcharts-card
graph_span: 1d
apex_config:
stroke:
# 2 will affect sensor.temperature
# 4 will affect sensor.humidity
# You need as much values here as the number of series
width: [2, 4]
series:
- entity: sensor.temperature
- entity: sensor.humidity
```

0 comments on commit fd4a495

Please sign in to comment.