Skip to content

Commit

Permalink
Add strokeDasharray property when optimizeLargeData is true (#32494)
Browse files Browse the repository at this point in the history
Co-authored-by: kaelens <kaelens@microsoft.com>
  • Loading branch information
kaelens and kaelens authored Sep 10, 2024
1 parent ee0406b commit b1c2ab6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "add strokeDasharray for line charts with large datasets",
"packageName": "@fluentui/react-charting",
"email": "kaelens@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
stroke={lineColor}
strokeWidth={strokeWidth}
strokeLinecap={this._points[i].lineOptions?.strokeLinecap ?? 'round'}
strokeDasharray={this._points[i].lineOptions?.strokeDasharray}
onMouseMove={this._onMouseOverLargeDataset.bind(this, i, verticaLineHeight)}
onMouseOver={this._onMouseOverLargeDataset.bind(this, i, verticaLineHeight)}
onMouseOut={this._handleMouseOut}
Expand All @@ -727,6 +728,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
stroke={lineColor}
strokeWidth={strokeWidth}
strokeLinecap={this._points[i].lineOptions?.strokeLinecap ?? 'round'}
strokeDasharray={this._points[i].lineOptions?.strokeDasharray}
opacity={0.1}
/>,
);
Expand Down

0 comments on commit b1c2ab6

Please sign in to comment.