From fd4a49542ea2fc7ebee10969c73bcbe26c73b68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Sat, 30 Jan 2021 20:14:02 +0000 Subject: [PATCH] doc: Add an example to change the line thickness --- README.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f5440a..ab137a2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -467,4 +468,36 @@ series: # data from yesterday offsetted to be displayed today - entity: sensor.temperature offset: -1d -``` \ No newline at end of file +``` + +### 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 + ``` \ No newline at end of file