Skip to content

Commit 9d4c9cc

Browse files
committed
Merge branch 'master' of github.com:ClimateWatch-Vizzuality/climate-watch-components into build
2 parents 1300f79 + 70144d8 commit 9d4c9cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/charts/line/line.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ class ChartLine extends PureComponent {
165165
}
166166
{
167167
config.columns && config.columns.y.map(column => {
168-
const color = config.theme[column.value].stroke || '';
168+
const {
169+
strokeDashArray,
170+
stroke: color
171+
} = config.theme[column.value] || {};
172+
169173
return (
170174
<Line
171175
key={column.value}
@@ -180,6 +184,7 @@ class ChartLine extends PureComponent {
180184
dataKey={column.value}
181185
stroke={column.hideData ? 'transparent' : color}
182186
strokeWidth={column.hideData ? 0 : 2}
187+
{...strokeDashArray && { strokeDashArray }}
183188
type={lineType}
184189
/>
185190
);

0 commit comments

Comments
 (0)