Skip to content

Commit d947214

Browse files
committed
default for markers to match line color
1 parent e0433ac commit d947214

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/lib/components/data-vis/line-chart/Line.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
{markerShape}
142142
{markerStroke}
143143
{markerStrokeWidth}
144+
{pathStrokeColor}
144145
{x}
145146
{y}
146147
{series}

src/lib/components/data-vis/line-chart/LineChart.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
markerRect = rect;
6464
},
6565
onMouseEnterMarker = (event, marker, markerId, rect) => {
66-
{
67-
console.log("hovering");
68-
}
6966
activeMarkerId = marker;
7067
if (container) {
7168
const bounds = container.getBoundingClientRect();
@@ -240,8 +237,6 @@
240237
]),
241238
);
242239
243-
console.log(colorLineParams(tier, line));
244-
245240
return {
246241
...merged,
247242
...line,

src/lib/components/data-vis/line-chart/Marker.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
yFunction,
1111
x,
1212
y,
13+
pathStrokeColor = null,
1314
markerShape = "circle",
1415
markerRadius = 5,
15-
markerFill = "grey",
16+
markerFill = pathStrokeColor,
1617
markerStroke = "white",
1718
markerStrokeWidth = 1,
1819
interactiveMarkers,

src/wrappers/components/data-vis/line-chart/line-chart/Examples.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@
149149
x="x"
150150
y="y"
151151
series="areaCode"
152-
basicLineParams={{ interactiveMarkers: true, markers: true }}
152+
basicLineParams={{
153+
interactiveMarkers: true,
154+
markers: true,
155+
}}
153156
{tooltipSnippet}
154157
></LineChart>
155158
</div>

0 commit comments

Comments
 (0)