Skip to content

Commit

Permalink
support dash line for line chart
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejinwei.1112 authored and jentfoo committed Jan 5, 2024
1 parent c2f709a commit fe15815
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions line_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ func (l *lineChart) render(result *defaultRenderResult, seriesList SeriesList) (
StrokeColor: seriesColor,
StrokeWidth: strokeWidth,
}
if len(series.Style.StrokeDashArray) > 0 {
drawingStyle.StrokeDashArray = series.Style.StrokeDashArray
}

yRange := result.axisRanges[series.AxisIndex]
points := make([]Point, 0)
Expand Down

0 comments on commit fe15815

Please sign in to comment.