Advertisement
Guest User

Untitled

a guest
Jun 25th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 5.92 KB | None | 0 0
  1. Welcome to Try F# 3.0
  2. For additional help: http://www.tryfsharp.org/Help
  3.  
  4. > //Initialize charting libraries
  5.  
  6.   open Samples.Charting.DojoChart
  7.  
  8.   //Load World Bank Type Provider
  9.   #r "Samples.WorldBank.dll"
  10.  
  11.   //Get data context
  12.   let data = Samples.WorldBank.GetDataContext()
  13.  
  14. --> Referenced 'Samples.WorldBank.dll'
  15.  
  16. //Set up list of countries
  17.   let countries =
  18.     [ data.Countries.``United States``;
  19.       data.Countries.China;
  20.       data.Countries.India;
  21.       data.Countries.``Euro area`` ]
  22.  
  23.   //Plot total population of selected countries
  24.   Chart.Combine([ for c in countries -> Chart.Line (c.Indicators.``Population (Total)``, Name=c.Name) ])
  25.        .AndTitle("Population, 1960-2012")
  26.  
  27. val data : Samples.WorldBank.ServiceTypes.WorldBankDataService
  28.  
  29. > [WorldBank] downloading (5): http://api.worldbank.org/country?per_page=1000&page=1
  30. [WorldBank] downloading (5): http://api.worldbank.org/country?per_page=1000&page=1
  31. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  32. <wb:countr...
  33. [WorldBank] geting page count
  34. [WorldBank] got page count = 1
  35. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  36. <wb:countr...
  37. [WorldBank] geting page count
  38. [WorldBank] got page count = 1
  39. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=1
  40. [WorldBank] downloading (5): http://api.worldbank.or[g/indiccWator?per_rlpaaddeB==a1n1k000] d&poowange=loa22ding
  41. g
  42. r (5): http://api.worldbank.org/indicator?per_page=1000&page=3
  43. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=4
  44. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=5
  45. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=6
  46. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=7
  47. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=8
  48. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=1
  49. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=2
  50. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=3
  51. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=4
  52. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=5
  53. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=6
  54. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=8
  55. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  56. <wb:indica...
  57. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  58. <wb:indica...
  59. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=7
  60. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  61. <wb:indica...
  62. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  63. <wb:indica...
  64. [
  65. [
  66. WWoWrodBank] got text:  r<dBo?xanmllkkversion==]" ggo1t.0" t eexxnt:: codin<<g?="uxmltf v-8er"?si>
  67. <wb:indica...
  68.  
  69. on="1.0" encoding="utf-8"?>
  70. <wb:indica...
  71. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  72. <wb:indica...
  73. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  74. <wb:indica...
  75. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  76. <wb:indica...
  77. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  78. <wb:indica...
  79. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  80. <wb:indica...
  81. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  82. <wb:indica...
  83. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  84. <wb:indica...
  85. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  86. <wb:indica...
  87. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  88. <wb:indica...
  89. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  90. <wb:indica...
  91. [WorldBank] geting page count
  92. [WorldBank] got page count = 13
  93. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=9
  94. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=10
  95. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=11
  96. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=12
  97. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=13
  98. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  99. <wb:indica...
  100. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  101. <wb:indica...
  102. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  103. <wb:indica...
  104. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  105. <wb:indica...
  106. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  107. <wb:indica...
  108. [WorldBank] geting page count
  109. [WorldBank] got page count = 13
  110. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=9
  111. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=10
  112. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=11
  113. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=12
  114. [WorldBank] downloading (5): http://api.worldbank.org/indicator?per_page=1000&page=13
  115. [WorldBank] geting page count
  116. [WorldBank] got page count = 13
  117. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  118. <wb:indica...
  119. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  120. <wb:indica...
  121. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  122. <wb:indica...
  123. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  124. <wb:indica...
  125.  
  126.   Chart.Combine([ for c in countries -> Chart.Line (c.Indicators.``Population (Total)``, Name=c.Name) ])
  127.   ---------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^
  128.  
  129. stdin(19,64): error FS0039: The field, constructor or member 'Population (Total)' is not defined
  130. [WorldBank] got text: <?xml version="1.0" encoding="utf-8"?>
  131. <wb:indica...
  132. > [WorldBank] geting page count
  133. [WorldBank] got page count = 13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement