mirror of https://github.com/vitalif/dimple
Support tickFormat callback
parent
dbf65501fb
commit
1a32f3e8d6
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue