 end %}
];

var wire_fee_data = [
  {% for exchange_name, wire_fees in args['wire_fees_by_exchange'].items() %}
    {
      label: '{{ exchange_name }}',
      data: {{ wire_fees.to('USD').amount }},
      color: exchange_colours['{{ exchange_name.lower() }}'],
    },
  {% end %}
];

pie_options = {
  series: {
    pie: {
      show: true,
    }
  },
}

$(document).ready(function() {
  $.plot($('#trading-fee-chart'), trading_fee_data, pie_options)
  $.plot($('#wire-fee-chart'), wire_fee_data, pie_options)
}