'use strict';

var dataSelectAction = require('../../legacy/dataSelectAction.js');
var pieLayout = require('./pieLayout.js');
var dataFilter = require('../../processor/dataFilter.js');
var util = require('../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.js');
var PieView = require('./PieView.js');
var PieSeries = require('./PieSeries.js');
var negativeDataFilter = require('../../processor/negativeDataFilter.js');

function install(registers) {
  registers.registerChartView(PieView.default);
  registers.registerSeriesModel(PieSeries.default);
  dataSelectAction.createLegacyDataSelectAction('pie', registers.registerAction);
  registers.registerLayout(util.curry(pieLayout.default, 'pie'));
  registers.registerProcessor(dataFilter.default('pie'));
  registers.registerProcessor(negativeDataFilter.default('pie'));
}

exports.install = install;
