Created
March 1, 2016 13:22
-
-
Save gregoryyoung/cf1a3f80aa22cec6135a to your computer and use it in GitHub Desktop.
fschart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- let countryData = | |
- ["Africa", 345; | |
- "england", 128; | |
- "us", 543 ];; | |
val countryData : (string * int) list = | |
[("Africa", 345); ("england", 128); ("us", 543)] | |
> Chart.Bar countryData | |
- ;; | |
Chart.Bar countryData | |
^^^^^ | |
/home/greg/src/chart-example/stdin(12,1): error FS0039: The namespace or module 'Chart' is not defined | |
> open FSharp.Charting;; | |
> Chart.Bar countryData;; | |
System.ArgumentNullException: Value cannot be null. | |
Parameter name: key | |
at System.ThrowHelper.ThrowArgumentNullException (ExceptionArgument argument) <0x7f8af18b70c0 + 0x00021> in <filename unknown>:0 | |
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (System.Collections.Generic.TKey key) <0x40f95b00 + 0x00033> in <filename unknown>:0 | |
at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (System.Collections.Generic.TKey key) <0x40f95ac0 + 0x00019> in <filename unknown>:0 | |
at FSharp.Charting.ChartTypes.layoutSubCharts@798 (SeriesChartType chartType, System.Collections.Generic.Dictionary`2 visited, Microsoft.FSharp.Core.FSharpOption`1 targetParent, System.Object target) <0x40f95630 + 0x0004d> in <filename unknown>:0 | |
at FSharp.Charting.ChartTypes.layoutSubCharts@798 (SeriesChartType chartType, System.Collections.Generic.Dictionary`2 visited, Microsoft.FSharp.Core.FSharpOption`1 targetParent, System.Object target) <0x40f95630 + 0x002e3> in <filename unknown>:0 | |
at FSharp.Charting.ChartTypes+layoutSubCharts@798-1.Invoke (Microsoft.FSharp.Core.FSharpOption`1 targetParent, System.Object target) <0x40f955e0 + 0x0002b> in <filename unknown>:0 | |
at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3252[T2,TResult,T1].Invoke (T2 u) <0x40083440 + 0x00029> in <filename unknown>:0 | |
at FSharp.Charting.ChartTypes+applyPropertyDefaults@810-1[a].Invoke (a arg10) <0x40f955b0 + 0x00021> in <filename unknown>:0 | |
at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc`2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) <0x400531a0 + 0x000a5> in <filename unknown>:0 | |
at FSharp.Charting.ChartTypes.applyPropertyDefaults[a] (SeriesChartType chartType, FSharp.Charting.a target) <0x40f95110 + 0x0016f> in <filename unknown>:0 | |
at FSharp.Charting.ChartTypes+GenericChart..ctor (SeriesChartType chartType) <0x40f94a00 + 0x00173> in <filename unknown>:0 | |
at FSharp.Charting.Chart.Bar[a,b,c] (IEnumerable`1 data, Microsoft.FSharp.Core.FSharpOption`1 Name, Microsoft.FSharp.Core.FSharpOption`1 Title, Microsoft.FSharp.Core.FSharpOption`1 Labels, Microsoft.FSharp.Core.FSharpOption`1 Color, Microsoft.FSharp.Core.FSharpOption`1 XTitle, Microsoft.FSharp.Core.FSharpOption`1 YTitle) <0x40f78650 + 0x00057> in <filename unknown>:0 | |
at <StartupCode$FSI_0008>.$FSI_0008.main@ () <0x40f785a0 + 0x00047> in <filename unknown>:0 | |
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) | |
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f8af19ab910 + 0x000a1> in <filename unknown>:0 | |
Stopped due to error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment