Skip to content

Commit 543c164

Browse files
committed
Merge pull request #1100 from mlzummo/C3_TIME_FIX_1.6.8
GH-1080 Fix C3 Time Axis
2 parents 31a4e5e + 08d9992 commit 543c164

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)