Skip to content

Commit

Permalink
Properly style line graph legend entries when both lineStyle and area…
Browse files Browse the repository at this point in the history
…Style is used
  • Loading branch information
mstijak committed Apr 25, 2024
1 parent f0e314c commit 5aa15c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cx/src/charts/LineGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ export class LineGraph extends Widget {
active: data.active,
colorIndex: data.colorIndex,
disabled: data.disabled,
//selected: this.selection.isInstanceSelected(instance),
style: parseStyle(data.style || data.lineStyle),
style: {
...parseStyle(data.style),
...parseStyle(data.areaStyle),
...parseStyle(data.lineStyle),
},
shape: this.legendShape,
onClick: (e) => {
this.onLegendClick(e, instance);
Expand Down

0 comments on commit 5aa15c3

Please sign in to comment.