@nethru/kit 1.0.1 → 1.0.2
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.
- package/dist/index.esm.js +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -94,7 +94,7 @@ function toOptions(props, legendLimitEnabled, handleLegendItemClick) {
|
|
|
94
94
|
xAxisType,
|
|
95
95
|
xAxisLabel = true,
|
|
96
96
|
xAxisLabelFormat,
|
|
97
|
-
xAxisTickInterval
|
|
97
|
+
xAxisTickInterval,
|
|
98
98
|
yAxisLabelEnabled = true,
|
|
99
99
|
yAxisLabelFormat,
|
|
100
100
|
yAxisTickInterval = null,
|
|
@@ -281,7 +281,7 @@ function toOptions(props, legendLimitEnabled, handleLegendItemClick) {
|
|
|
281
281
|
},
|
|
282
282
|
categories: categorize ? categories : undefined,
|
|
283
283
|
tickWidth: 1,
|
|
284
|
-
tickInterval: xAxisType === 'datetime' ? records.length / 20 :
|
|
284
|
+
tickInterval: xAxisTickInterval ?? (xAxisType === 'datetime' ? records.length / 20 : 1),
|
|
285
285
|
lineColor: grey[900],
|
|
286
286
|
tickColor: grey[900],
|
|
287
287
|
crosshair: true,
|
|
@@ -465,6 +465,7 @@ function StackedAreaTrendChart({
|
|
|
465
465
|
records,
|
|
466
466
|
isDaily = false,
|
|
467
467
|
xPlotIndex,
|
|
468
|
+
xAxisTickInterval,
|
|
468
469
|
yAxisLabelEnabled = false,
|
|
469
470
|
legendLimit = 3,
|
|
470
471
|
colors = defaultColors,
|
|
@@ -500,6 +501,7 @@ function StackedAreaTrendChart({
|
|
|
500
501
|
isRealtime: xPlotIndex !== undefined,
|
|
501
502
|
isDaily: isDaily,
|
|
502
503
|
xPlotIndex: xPlotIndex,
|
|
504
|
+
xAxisTickInterval: xAxisTickInterval,
|
|
503
505
|
yAxisLabelEnabled: yAxisLabelEnabled,
|
|
504
506
|
legendLimit: legendLimit,
|
|
505
507
|
colors: colors
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ function toOptions(props, legendLimitEnabled, handleLegendItemClick) {
|
|
|
96
96
|
xAxisType,
|
|
97
97
|
xAxisLabel = true,
|
|
98
98
|
xAxisLabelFormat,
|
|
99
|
-
xAxisTickInterval
|
|
99
|
+
xAxisTickInterval,
|
|
100
100
|
yAxisLabelEnabled = true,
|
|
101
101
|
yAxisLabelFormat,
|
|
102
102
|
yAxisTickInterval = null,
|
|
@@ -283,7 +283,7 @@ function toOptions(props, legendLimitEnabled, handleLegendItemClick) {
|
|
|
283
283
|
},
|
|
284
284
|
categories: categorize ? categories : undefined,
|
|
285
285
|
tickWidth: 1,
|
|
286
|
-
tickInterval: xAxisType === 'datetime' ? records.length / 20 :
|
|
286
|
+
tickInterval: xAxisTickInterval ?? (xAxisType === 'datetime' ? records.length / 20 : 1),
|
|
287
287
|
lineColor: colors.grey[900],
|
|
288
288
|
tickColor: colors.grey[900],
|
|
289
289
|
crosshair: true,
|
|
@@ -467,6 +467,7 @@ function StackedAreaTrendChart({
|
|
|
467
467
|
records,
|
|
468
468
|
isDaily = false,
|
|
469
469
|
xPlotIndex,
|
|
470
|
+
xAxisTickInterval,
|
|
470
471
|
yAxisLabelEnabled = false,
|
|
471
472
|
legendLimit = 3,
|
|
472
473
|
colors = defaultColors,
|
|
@@ -502,6 +503,7 @@ function StackedAreaTrendChart({
|
|
|
502
503
|
isRealtime: xPlotIndex !== undefined,
|
|
503
504
|
isDaily: isDaily,
|
|
504
505
|
xPlotIndex: xPlotIndex,
|
|
506
|
+
xAxisTickInterval: xAxisTickInterval,
|
|
505
507
|
yAxisLabelEnabled: yAxisLabelEnabled,
|
|
506
508
|
legendLimit: legendLimit,
|
|
507
509
|
colors: colors
|