@communitiesuk/svelte-component-library 0.1.19-beta.16 → 0.1.19-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -543,16 +543,24 @@
|
|
|
543
543
|
></path></g
|
|
544
544
|
> -->
|
|
545
545
|
<g
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
><text
|
|
549
|
-
|
|
550
|
-
|
|
546
|
+
transform="translate({xScale()(average) + 2},{chartHeight *
|
|
547
|
+
1.7})"
|
|
548
|
+
><text
|
|
549
|
+
fill="#333333"
|
|
550
|
+
font-size={15}
|
|
551
|
+
text-anchor="middle"
|
|
552
|
+
font-weight="bold"
|
|
553
|
+
>
|
|
554
|
+
<tspan x="0" dy="15">▲</tspan>
|
|
555
|
+
<tspan x="0" dy="1">|</tspan>
|
|
556
|
+
<tspan font-family="GDS Transport" x="0" dy="13"
|
|
557
|
+
>Average</tspan
|
|
558
|
+
>
|
|
551
559
|
</text></g
|
|
552
560
|
>
|
|
553
561
|
{/if}
|
|
554
562
|
{#if showAxis}
|
|
555
|
-
<g
|
|
563
|
+
<g>
|
|
556
564
|
<Axis
|
|
557
565
|
bind:ticksArray={xTicks}
|
|
558
566
|
{chartHeight}
|
|
@@ -561,7 +569,7 @@
|
|
|
561
569
|
range={[0, chartWidth]}
|
|
562
570
|
domain={[xTickMin, xTickMax]}
|
|
563
571
|
values={dist}
|
|
564
|
-
fontSize={
|
|
572
|
+
fontSize={13}
|
|
565
573
|
{numberOfTicks}
|
|
566
574
|
{floor}
|
|
567
575
|
{ceiling}
|
|
@@ -657,7 +665,7 @@
|
|
|
657
665
|
pointer-events={rowValue.pointerEvents}
|
|
658
666
|
></rect>
|
|
659
667
|
<rect
|
|
660
|
-
x={
|
|
668
|
+
x={0}
|
|
661
669
|
y={-rowValue.markerRadius}
|
|
662
670
|
width={rowValue.markerRadius * 2}
|
|
663
671
|
height={rowValue.markerRadius * 2}
|
|
@@ -676,13 +684,12 @@
|
|
|
676
684
|
pointer-events={rowValue.pointerEvents}
|
|
677
685
|
></rect>
|
|
678
686
|
{:else if rowValue.shape === "line"}
|
|
679
|
-
<
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
fill={rowValue.color === "inherit"
|
|
687
|
+
<line
|
|
688
|
+
x1={0}
|
|
689
|
+
x2={0}
|
|
690
|
+
y1={chartHeight / 2.4}
|
|
691
|
+
y2={-chartHeight / 2.4}
|
|
692
|
+
stroke={rowValue.color === "inherit"
|
|
686
693
|
? segmentColor(
|
|
687
694
|
rowValue.value,
|
|
688
695
|
newMin,
|
|
@@ -690,11 +697,10 @@
|
|
|
690
697
|
activeColors,
|
|
691
698
|
)
|
|
692
699
|
: rowValue.color}
|
|
693
|
-
stroke=
|
|
694
|
-
stroke-width="3"
|
|
700
|
+
stroke-width={rowValue.markerRadius}
|
|
695
701
|
opacity={rowValue.opacity}
|
|
696
702
|
pointer-events={rowValue.pointerEvents}
|
|
697
|
-
></
|
|
703
|
+
></line>
|
|
698
704
|
{:else}
|
|
699
705
|
<circle
|
|
700
706
|
r={rowValue.markerRadius * 1.1}
|
|
@@ -781,7 +787,7 @@
|
|
|
781
787
|
{/if}
|
|
782
788
|
{/each}
|
|
783
789
|
{#if showArrows}
|
|
784
|
-
<div class="data-row" aria-hidden="true">
|
|
790
|
+
<div class="data-row arrow" aria-hidden="true">
|
|
785
791
|
{#if showLabel}
|
|
786
792
|
<div
|
|
787
793
|
class="label-container"
|
|
@@ -1141,6 +1147,10 @@
|
|
|
1141
1147
|
padding: 0px 10px 0px 10px;
|
|
1142
1148
|
}
|
|
1143
1149
|
|
|
1150
|
+
.data-row.arrow {
|
|
1151
|
+
padding: 0px;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1144
1154
|
.icon-container {
|
|
1145
1155
|
flex: 0 0 20px;
|
|
1146
1156
|
}
|