| Current Path : /home/emeraadmin/www/node_modules/c3/src/ |
| Current File : /home/emeraadmin/www/node_modules/c3/src/api.legend.js |
import { Chart } from './core';
Chart.prototype.legend = function () {};
Chart.prototype.legend.show = function (targetIds) {
var $$ = this.internal;
$$.showLegend($$.mapToTargetIds(targetIds));
$$.updateAndRedraw({withLegend: true});
};
Chart.prototype.legend.hide = function (targetIds) {
var $$ = this.internal;
$$.hideLegend($$.mapToTargetIds(targetIds));
$$.updateAndRedraw({withLegend: false});
};