Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions custom_cards/custom_card_apexcharts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ Integration from HACS: "custom:apexcharts-card" from RomRider
<td>no</td>
<td>Maximum value of the sensor. Default will be 100</td>
</tr>
<tr>
<td>transform</td>
<td>`return x * 100;`</td>
<td>no</td>
<td>A custom JS function to run on your data before render. See Apex docs for more details</td>
</tr>
</table>

??? note "Template Code"
Expand Down
3 changes: 3 additions & 0 deletions custom_cards/custom_card_apexcharts/apexcharts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,14 @@ custom_card_apexcharts:
name: "[[[ return variables.entity_1_name ]]]"
color: "[[[ return `var(--google-${variables.entity_1.color})`;]]]"
max: "[[[ return variables.entity_1.max_value ]]]"
transform: "[[[ return variables.entity_1.transform ]]]"
- entity: "[[[ return variables.entity_2.entity_id ]]]"
name: "[[[ return variables.entity_2_name ]]]"
color: "[[[ return `var(--google-${variables.entity_2.color})`;]]]"
max: "[[[ return variables.entity_2.max_value ]]]"
transform: "[[[ return variables.entity_2.transform ]]]"
- entity: "[[[ return variables.entity_3.entity_id ]]]"
name: "[[[ return variables.entity_3_name ]]]"
color: "[[[ return `var(--google-${variables.entity_3.color})`;]]]"
max: "[[[ return variables.entity_3.max_value ]]]"
transform: "[[[ return variables.entity_3.transform ]]]"
Loading