Skip to content

Commit 08d9992

Browse files
committed
GH-1080 Fix C3 Time Axis
Fixes GH-1080 Signed-off-by: Mathew Zummo <[email protected]>
1 parent 31a4e5e commit 08d9992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/c3chart/CommonND.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149

150150
this.c3Chart.internal.config.axis_y_tick_format = this.yAxisTickFormat() ? d3.format(this.yAxisTickFormat()) : undefined;
151151
if (this.xAxisType() === "time") {
152-
this.c3Chart.internal.config.axis_x_tick_format = this.xAxisTickFormat() ? d3.time.format(this.xAxisTickFormat()) : undefined;
152+
this.c3Chart.internal.config.axis_x_tick_format = this.xAxisTickFormat() ? d3.time.format(this.xAxisTickFormat()) : "%Y-%m-%d %I:%M:%S %p";
153153
} else {
154154
this.c3Chart.internal.config.axis_x_tick_format = this.xAxisTickFormat() ? d3.format(this.xAxisTickFormat()) : undefined;
155155
}

0 commit comments

Comments
 (0)