import Loader from './loader.js'
import colors from './colors.js'

const SOURCES = [
  {
    name: 'Escherichia coli vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins  in percent',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    euData: 12,
    data: require('dsv!./csv/1_e-coli.csv')
  },
  {
    name: 'Escherichia coli vs fluoroquinolones ',
    title: 'Resistance to fluoroquinolones in percent',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    euData: 22.4,
    data: require('dsv!./csv/0_e-coli.csv')
  },
  {
    name: 'Klebsiella pneumoniae vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins in percent',
    euData: 28,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    data: require('dsv!./csv/2_k-p.csv')
  },
  {
    name: 'Klebsiella pneumoniae vs carbapenems',
    title: 'Resistance to carbapenems in percent',
    euData: 7.3,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    data: require('dsv!./csv/3_k-p.csv')
  },
  {
    name: 'Staphylococcus aureus vs methicillin',
    title: 'MRSA in percent',
    euData: 17.4,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    data: require('dsv!./csv/5_mrsa.csv')
  },
  {
    name: 'Streptococcus pneumoniae vs penicillin',
    title: 'Resistance to penicillin in percent',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    data: require('dsv!./csv/4_s-p.csv')
  },
  {
    name: 'Salmonella vs fluoroquinolones',
    title: 'Resistance to fluoroquinolones in percent',
    annotation: 'WHO Surveillance report 2014',
    data: require('dsv!./csv/6_nts.csv')
  },
  {
    name: 'Shigella vs fluoroquinolones',
    title: 'Resistance to fluoroquinolones in percent',
    annotation: 'WHO Surveillance report 2014',
    data: require('dsv!./csv/7_shigella.csv')
  },
  {
    name: 'Neisseria gonorrhoea vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins in percent',
    annotation: 'WHO Surveillance report 2014',
    data: require('dsv!./csv/8_neisseria.csv')
  }
]

let DATASETS = []
for (let source of SOURCES) {
  let data = source.data
  let loader = new Loader({colors, data})
  delete source.data
  let metaData = source
  let dataset = {metaData, loader}
  DATASETS.push(dataset)
}

export default DATASETS

@@ -189,32 +189,122 @@
 rins  in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    annotatio
@@ -526,32 +526,122 @@
 lones in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    annotatio
@@ -880,32 +880,122 @@
 orins in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    euData: 2
@@ -1208,32 +1208,122 @@
 enems in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    euData: 7
@@ -1520,24 +1520,114 @@
 A in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    euDat
@@ -1848,32 +1848,122 @@
 illin in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    annotatio
@@ -2159,32 +2159,122 @@
 lones in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    annotatio
@@ -2445,32 +2445,122 @@
 lones in percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    annotatio
@@ -2767,16 +2767,106 @@
  percent
+. Of all infections with this bacterium, this percentage was resistant to this antibiotic.
 ',%0A    a

Add additional explanation to datasets.