text: define(["./chart-styles.js", "../../@polymer/polymer/polymer-element.js", "../../@polymer/iron-resizable-behavior/iron-resizable-behavior.js", "../../@polymer/polymer/lib/legacy/class.js", "./resize-behavior.js", "./context-behavior.js", "./chart-property-behavior.js"], function (_chartStyles, _polymerElement, _ironResizableBehavior, _class, _resizeBehavior, _contextBehavior, _chartPropertyBehavior) {
    "use strict";
  
    /**
    Pie and doughnut charts are probably the most commonly used chart there are. They are divided into segments, the arc of each segment shows a the proportional value of each piece of data.
    
    They are excellent at showing the relational proportions between data.
    
    Pie and doughnut charts in are effectively the same class in Chart.js, but have one different default value - their percentageInnerCutout. This equates what percentage of the inner should be cut out. This defaults to 0 for pie charts, and 50 for doughnuts.
    
    They are also registered under two aliases in the Chart core. Other than their different default value, and different alias, they are exactly the same.
    
    ##### Example
    
        <chart-pie data="[[data]]"></chart-pie>
    
        ...
    
        this.data = {
          labels: [
            "Red",
            "Green",
            "Yellow"
          ],
          datasets: [
            {
              data: [300, 50, 100],
              backgroundColor: [
                "#FF6384",
                "#36A2EB",
                "#FFCE56"
              ],
              hoverBackgroundColor: [
                "#FF6384",
                "#36A2EB",
                "#FFCE56"
              ]
            }]
        };
    
    @group Chart Elements
    @element chart-pie
    @demo demo/chart-pie.html
    */
  
    /*
    Chart JS needs to be imported somewhere. Importing here creates errors for IE11 and Chrome 41.
    //import 'chart.js/dist/Chart.js';
    */
    class ChartPie extends (0, _resizeBehavior.ChartResizeBehavior)((0, _contextBehavior.ChartContextBehavior)((0, _chartPropertyBehavior.ChartPropertyBehavior)((0, _class.mixinBehaviors)([_ironResizableBehavior.IronResizableBehavior], _polymerElement.PolymerElement)))) {
      static get template() {
        return (0, _polymerElement.html)`
      <style include="chart-styles"></style>
  
      <div>
        <canvas id="canvas"></canvas>
      </div>
  `;
      }
  
      static get is() {
        return 'chart-pie';
      }
  
      ready() {
        super.ready();
  
        this._setType('pie');
      }
  
    }
  
    window.customElements.define(ChartPie.is, ChartPie);
  });