Skip to content

Commit b736509

Browse files
cell-punchcard (#826)
* cell-punchcard - fixed color of cells in HTML - fixed Week and Week # appearing different lines on HTML using non-btreaking space * cell-punchcard - fixed color of cells in HTML - fixed Week and Week # appearing different lines on HTML using non-bteaking space
1 parent 4a83def commit b736509

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

docs/src/examples/components/Cell/punchcard.svelte

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,16 @@
2424
height={300}
2525
>
2626
<Layer>
27-
<Axis placement="bottom" format={(d) => 'Week ' + d} rule />
27+
<Axis placement="bottom" format={(d) => 'Week\u00A0' + d} rule />
28+
<!-- \u00A0 is a non-breaking space, only necessary for HTML -->
2829
<Axis placement="left" format={(d) => daysOfWeek[d]} rule />
2930
<Grid x={false} y bandAlign="between" />
30-
<Cell x={(d) => timeWeek.count(timeYear(d.date), d.date)} y={(d) => d.date.getDay()} shape="circle" r="value" class="fill-primary" />
31+
<Cell
32+
x={(d) => timeWeek.count(timeYear(d.date), d.date)}
33+
y={(d) => d.date.getDay()}
34+
shape="circle"
35+
r="value"
36+
fill="var(--color-primary)"
37+
/>
3138
</Layer>
3239
</Chart>

0 commit comments

Comments
 (0)