Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit 22d6de8

Browse files
committed
fix(core): add timeScale options to the BaseAxisChart interface
1 parent 25ccfd0 commit 22d6de8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/core/src/configuration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ const baseBarChart: BarChartOptions = Tools.merge({}, axisChart, {
126126
bars: {
127127
maxWidth: 16
128128
},
129-
timeScale: Tools.merge(timeScale, {
130-
addSpaceOnEdges: true
131-
} as TimeScaleOptions),
132129
tooltip: barChartTooltip
133130
} as BarChartOptions);
134131

packages/core/src/interfaces/charts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { LegendOptions, TooltipOptions, GridOptions, AxesOptions } from "./index";
22
import { AxisTooltipOptions, BarTooltipOptions, BarOptions, StackedBarOptions } from "./components";
33
import { ChartTheme } from "./enums";
4+
import { TimeScaleOptions } from "./axis-scales";
45

56
/**
67
* Base chart options common to any chart
@@ -64,6 +65,7 @@ export interface AxisChartOptions extends BaseChartOptions {
6465
axes?: AxesOptions;
6566
grid?: GridOptions;
6667
tooltip?: AxisTooltipOptions;
68+
timeScale?: TimeScaleOptions;
6769
}
6870

6971
/**

0 commit comments

Comments
 (0)