<link rel="import" href="../../bower_components/polymer/polymer.html">

<script>
  Polymer.ColorByCategoryBehaviorImpl = {

    properties: {
      categoriesmap: {
        type: Object,
        value: function() {
          return {};
        },
      },
    },

    _colors_by_category: function(category, categoriesmap) {
      let colors = categoriesmap[category];
      // set the unknown category in black
      if (!colors) {
        colors = categoriesmap['unknown'];
      }
      return colors;
    },
