Browse Source

Fix format

pull/529/head
Masayuki Tanaka 11 years ago
parent
commit
0c72d1a50b
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/format.js

2
c3.js

@ -4957,7 +4957,7 @@
var $$ = this, data_labels = $$.config.data_labels,
format = function (v) { return isValue(v) ? +v : ""; };
// find format according to axis id
if (data_labels.format) {
if (typeof data_labels.format === 'function') {
format = data_labels.format;
} else if (typeof data_labels.format === 'object') {
if (data_labels.format[axisId]) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/format.js

@ -27,7 +27,7 @@ c3_chart_internal_fn.formatByAxisId = function (axisId) {
var $$ = this, data_labels = $$.config.data_labels,
format = function (v) { return isValue(v) ? +v : ""; };
// find format according to axis id
if (data_labels.format) {
if (typeof data_labels.format === 'function') {
format = data_labels.format;
} else if (typeof data_labels.format === 'object') {
if (data_labels.format[axisId]) {

Loading…
Cancel
Save