Support tickFormat callback

master
Vitaliy Filippov 2016-05-08 19:40:08 +03:00
parent dbf65501fb
commit 1a32f3e8d6
3 changed files with 9 additions and 0 deletions

View File

@ -181,6 +181,9 @@
chunks,
suffix,
dp;
if (typeof this.tickFormat == 'function') {
return this.tickFormat;
}
if (this.tickFormat !== null && this.tickFormat !== undefined) {
if (this._hasTimeField()) {
returnFormat = d3.time.format(this.tickFormat);

View File

@ -181,6 +181,9 @@
chunks,
suffix,
dp;
if (typeof this.tickFormat == 'function') {
return this.tickFormat;
}
if (this.tickFormat !== null && this.tickFormat !== undefined) {
if (this._hasTimeField()) {
returnFormat = d3.time.format(this.tickFormat);

View File

@ -9,6 +9,9 @@
chunks,
suffix,
dp;
if (typeof this.tickFormat == 'function') {
return this.tickFormat;
}
if (this.tickFormat !== null && this.tickFormat !== undefined) {
if (this._hasTimeField()) {
returnFormat = d3.time.format(this.tickFormat);