cats-charts 0.0.66 → 0.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1645,8 +1645,13 @@ class LinesChart {
1645
1645
  ]
1646
1646
  : []),
1647
1647
  ],
1648
- series: (this.config?.series || [])?.map((s) => {
1649
- const lineColor = s.areaColor || '#3b82f6';
1648
+ series: (this.config?.series || [])?.map((s, i) => {
1649
+ const lineColor = s['color'] ||
1650
+ s['itemStyle']?.color ||
1651
+ s['lineStyle']?.color ||
1652
+ s.areaColor ||
1653
+ this.config.colors?.[i % (this.config.colors || []).length] ||
1654
+ '#3b82f6';
1650
1655
  return {
1651
1656
  type: 'line',
1652
1657
  smooth: s.smooth ?? true,