diff --git a/custom_cards/custom_card_apexcharts/README.md b/custom_cards/custom_card_apexcharts/README.md index ce171db24..5a9fe6440 100644 --- a/custom_cards/custom_card_apexcharts/README.md +++ b/custom_cards/custom_card_apexcharts/README.md @@ -112,6 +112,12 @@ Integration from HACS: "custom:apexcharts-card" from RomRider no Maximum value of the sensor. Default will be 100 + +transform +`return x * 100;` +no +A custom JS function to run on your data before render. See Apex docs for more details + ??? note "Template Code" diff --git a/custom_cards/custom_card_apexcharts/apexcharts.yaml b/custom_cards/custom_card_apexcharts/apexcharts.yaml index 1fc9f0b4d..bc8e9976a 100644 --- a/custom_cards/custom_card_apexcharts/apexcharts.yaml +++ b/custom_cards/custom_card_apexcharts/apexcharts.yaml @@ -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 ]]]"