Browse Source

Merge pull request #1 from Timopheym/Timopheym-data.label-hidenshow-patch-1

Update data.js to show\hide data labels
pull/1004/head
Timophey 10 years ago
parent
commit
769a41f994
  1. 2
      src/data.js

2
src/data.js

@ -256,7 +256,7 @@ c3_chart_internal_fn.hasDataLabel = function () {
var config = this.config;
if (typeof config.data_labels === 'boolean' && config.data_labels) {
return true;
} else if (typeof config.data_labels === 'object' && notEmpty(config.data_labels)) {
} else if (typeof config.data_labels === 'object' && notEmpty(config.data_labels) && config.data_labels.show) {
return true;
}
return false;

Loading…
Cancel
Save