Skip to content

Commit

Permalink
Merge pull request #1220 from FlowFuse/1210-issue-with-chart-node
Browse files Browse the repository at this point in the history
Enhance chart background color handling for unlimited series support
  • Loading branch information
joepavitt authored Aug 21, 2024
2 parents b2d5742 + 2940067 commit 561b644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/widgets/ui-chart/UIChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export default {
}
// add the new dataset to the chart
const d = {
backgroundColor: colorByIndex ? this.props.colors : this.props.colors[sLabels.length],
backgroundColor: colorByIndex ? this.props.colors : this.props.colors[sLabels.length % this.props.colors.length],
pointStyle: this.props.pointShape === 'false' ? false : this.props.pointShape || 'circle',
pointRadius: radius,
pointHoverRadius: radius * 1.25,
Expand Down

0 comments on commit 561b644

Please sign in to comment.