You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
429 B
13 lines
429 B
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}); |
|
};
|
|
|