A sensor card with a sparkline graded/rank order showing the history of today. This visualization was developed for Awair Elements, but can be used for other sensors too, if you want grading.
The sensor #4 design is clean and fairly straightforward. It has a 1/1 aspectratio and is meant to be part of a grid with 2 columns in order to be readable on mobile devices.
Description
Aspect Ratio
Target Size
A card that shows actual and historical sensor data in different ways.
sak_layout_fce2_sensor4:template:type:layoutdefaults:# Chart types barcode, dots, line, area, bar or graded work nicely# The equalizer not!-sak_layout_sparkline_type:graded# Check documentation for chart variant per chart type-sak_layout_sparkline_variant:rank_order-sak_layout_background_icon_disabled:false-sak_layout_colorstop_v1:sak_colorstops_awair_temperature_v1-sak_layout_colorstop_v2:sak_colorstops_awair_temperature_v2-sak_layout_scale_max:100layout:aspectratio:1/1toolsets:# ==============================================================================-toolset:background-iconposition:cx:100cy:37.5tools:# -------------------------------------------------------------type:icon# When disabled, SAK will not use this tooldisabled:'[[sak_layout_background_icon_disabled]]'position:cx:50cy:50align:centericon_size:50entity_index:0styles:icon:fill:var(--theme-sys-elevation-surface-neutral3)# ==============================================================================-toolset:circle-with-iconposition:cx:20cy:20tools:# -------------------------------------------------------------type:'segarc'entity_index:0position:cx:50cy:50start_angle:0end_angle:360width:2radius:12.5scale:min:0max:'[[sak_layout_scale_max]]'show:scale:falsestyle:'colorstops'lastcolor:truesegments:colorstops:template:name:'[[sak_layout_colorstop_v1]]'styles:foreground:fill:var(--theme-gradient-color-02)background:fill:var(--primary-background-color)# -------------------------------------------------------------type:circleposition:cx:50cy:50radius:9entity_index:0colorstops:template:name:'[[sak_layout_colorstop_v1]]'show:style:colorstopsstyles:circle:transition:fill 2s easestroke-width:2em# -------------------------------------------------------------type:iconposition:cx:50cy:50align:centericon_size:15entity_index:0styles:icon:fill:var(--primary-background-color)# ==============================================================================-toolset:area-nameposition:cx:7.5cy:45tools:# -------------------------------------------------------------type:areaposition:cx:50cy:50entity_index:0show:ellipsis:12styles:area:text-anchor:startfont-size:12emfont-weight:700opacity:1# -------------------------------------------------------------type:nameposition:cx:50cy:62.5entity_index:0show:ellipsis:16styles:name:text-anchor:startfont-size:10emfont-weight:400opacity:0.6# ==============================================================================-toolset:score-stateposition:cx:92.8cy:15tools:# -------------------------------------------------------------type:stateposition:cx:50cy:50entity_index:0show:uom:endstyles:state:font-size:15emtext-anchor:endfont-weight:700uom:font-weight:600# ===============================================================-toolset:graph-sensorposition:cx:50cy:&sensor_cy78tools:# -------------------------------------------------------------type:sparklineposition:&graph_poscx:50cy:50width:85height:25entity_index:0entity_indexes:-entity_index:0period:calendar:period:dayoffset:0duration:hour:24bins:per_hour:1sparkline:animate:trueshow:chart_type:'[[sak_layout_sparkline_type]]'chart_variant:'[[sak_layout_sparkline_variant]]'fill:fadestate_values:aggregate_func:avgarea:line_width :1.5bar:line_width :0.1colum_spacing:1dots:line_width:2equalizer:value_buckets:5graded:square:trueline_width :1.5line:line_width :1.5x_lines:lines:-name:x_axiszpos:belowyshift:15-name:tickszpos:belowyshift:16colorstops_transition:hardcolorstops:template:name:'[[sak_layout_colorstop_v2]]'styles:&graded_rank_order_stylesbarcode_graph:rx:50%ry:5%graded_background:transition:fill 2s easerx:50%ry:50%graded_foreground:transition:fill 2s easerx:50%ry:50%x_axis:stroke:var(--theme-sys-elevation-surface-neutral6)stroke-width:0.2remticks:stroke:var(--theme-sys-elevation-surface-neutral6)stroke-dasharray:2, 117.5stroke-dashoffset:0stroke-width:0.75rem
Below some examples using this template. Each example shows a different sparkline chart and/or variant to show you which variables are used to control the template.