We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1edd4b9 + a7d5e76 commit 7d55d79Copy full SHA for 7d55d79
WooCommerce/Classes/ViewRelated/Dashboard/Stats v4/StoreStatsV4PeriodViewController.swift
@@ -485,7 +485,12 @@ extension StoreStatsV4PeriodViewController: IAxisValueFormatter {
485
}
486
487
if axis is XAxis {
488
- return createOrderStatsIntervalLabels()[Int(value)]
+ let intervalLabels = createOrderStatsIntervalLabels()
489
+ let index = Int(value)
490
+ if index >= intervalLabels.count {
491
+ DDLogInfo("🔴 orderStatsIntervals count: \(orderStatsIntervals.count); value: \(value); index: \(index); interval labels: \(intervalLabels)")
492
+ }
493
+ return intervalLabels[index]
494
} else {
495
if value == 0.0 {
496
// Do not show the "0" label on the Y axis
0 commit comments