File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -1072,24 +1072,31 @@ Below is an example YAML configuration that is split into several corresponding
1072
1072
<table>
1073
1073
<tr>
1074
1074
<th>YAML configuration</th>
1075
- <th>Preset configurations</th>
1076
1075
</tr>
1077
- <tr style="vertical-align:top" >
1076
+ <tr>
1078
1077
<td>
1079
1078
1080
1079
` ` ` yaml
1081
1080
hours_to_show: current_day
1082
1081
time_offset: -24h
1083
1082
defaults:
1084
1083
entity:
1085
- hovertemplate: "$fn ({ get }) => ` %{y:,.1f} ${get('.unit_of_measurement')}<extra>${get('.name')}</extra>`"
1084
+ hovertemplate: |
1085
+ $fn ({ get }) => (
1086
+ ` %{y:,.1f} ${get('.unit_of_measurement')}<extra>${get('.name')}</extra>`
1087
+ )
1086
1088
xaxes :
1087
1089
showspikes : true
1088
1090
spikemode : across
1089
1091
spikethickness : -2
1090
1092
` ` `
1091
1093
1092
1094
</td>
1095
+ </tr>
1096
+ <tr>
1097
+ <th>Preset configurations</th>
1098
+ </tr>
1099
+ <tr>
1093
1100
<td>
1094
1101
1095
1102
` ` ` js
@@ -1101,7 +1108,9 @@ window.PlotlyGraphCardPresets = {
1101
1108
simpleHover : { // Start of preset with name 'simpleHover'
1102
1109
defaults : {
1103
1110
entity : {
1104
- hovertemplate : ({get}) => `%{y:,.1f} ${get(".unit_of_measurement")}<extra>${get(".name")}</extra>`,
1111
+ hovertemplate : ({get}) => (
1112
+ ` %{y:,.1f} ${get('.unit_of_measurement')}<extra>${get('.name')}</extra>`
1113
+ ),
1105
1114
},
1106
1115
},
1107
1116
},
You can’t perform that action at this time.
0 commit comments