cats-charts 0.0.65 → 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,
@@ -3300,6 +3305,7 @@ class CustomChartComponent {
3300
3305
  // formatter: (val: number) => `${val}:00`,
3301
3306
  // },
3302
3307
  axisLabel: {
3308
+ hideOverlap: true,
3303
3309
  formatter: (val) => this.formatHourLabel(val, is12Hour),
3304
3310
  },
3305
3311
  },