/**
 * Consensus and exit probability pies
 */

// Minimal example for consensus pie chart
Graphnion.pie(
  '#graphnion-pie-consensus',
  {
    'type' : 'consensus',
    'onionoo' : {
      'contact' : 'adminsys@nos-oignons.net',
    },
  }
);

// Full example for exit probability pie chart
Graphnion.pie(
  '#graphnion-pie-exit',
  {
    'type' : 'exit',
    'onionoo' : {
      'family' : 'EFAE44728264982224445E96214C15F9075DEE1D'
    },
    'colors' : {
      'relays' : "#ffa430",
      'others' : "#57075f",
    },
    'size' : '250',
    'width' : '50',
  }
);


/**
 * Bandwidth graph
 */
new BwDrawer("#graphnion-bandwidth").draw();


