mirror of https://github.com/vitalif/dimple
Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
1a32f3e8d6 |
src/objects/axis/methods
|
@ -181,6 +181,9 @@
|
||||||
chunks,
|
chunks,
|
||||||
suffix,
|
suffix,
|
||||||
dp;
|
dp;
|
||||||
|
if (typeof this.tickFormat == 'function') {
|
||||||
|
return this.tickFormat;
|
||||||
|
}
|
||||||
if (this.tickFormat !== null && this.tickFormat !== undefined) {
|
if (this.tickFormat !== null && this.tickFormat !== undefined) {
|
||||||
if (this._hasTimeField()) {
|
if (this._hasTimeField()) {
|
||||||
returnFormat = d3.time.format(this.tickFormat);
|
returnFormat = d3.time.format(this.tickFormat);
|
||||||
|
|
|
@ -181,6 +181,9 @@
|
||||||
chunks,
|
chunks,
|
||||||
suffix,
|
suffix,
|
||||||
dp;
|
dp;
|
||||||
|
if (typeof this.tickFormat == 'function') {
|
||||||
|
return this.tickFormat;
|
||||||
|
}
|
||||||
if (this.tickFormat !== null && this.tickFormat !== undefined) {
|
if (this.tickFormat !== null && this.tickFormat !== undefined) {
|
||||||
if (this._hasTimeField()) {
|
if (this._hasTimeField()) {
|
||||||
returnFormat = d3.time.format(this.tickFormat);
|
returnFormat = d3.time.format(this.tickFormat);
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
chunks,
|
chunks,
|
||||||
suffix,
|
suffix,
|
||||||
dp;
|
dp;
|
||||||
|
if (typeof this.tickFormat == 'function') {
|
||||||
|
return this.tickFormat;
|
||||||
|
}
|
||||||
if (this.tickFormat !== null && this.tickFormat !== undefined) {
|
if (this.tickFormat !== null && this.tickFormat !== undefined) {
|
||||||
if (this._hasTimeField()) {
|
if (this._hasTimeField()) {
|
||||||
returnFormat = d3.time.format(this.tickFormat);
|
returnFormat = d3.time.format(this.tickFormat);
|
||||||
|
|
Loading…
Reference in New Issue