FSharpChart - Wrapping System.Windows.​Forms.DataVisua​lization.Charti​ng

The new version of FSharp.Chart can now be found on GitHib at: http://fsharp.github.io/FSharp.Charting/. FSharpChart is a F#-friendly wrapper for the types in the System.Windows.Forms.DataVisualization.Charting, making it easy to interactively chart data from F# Interactive.

F# (395.9 KB)
5 Star
7,269 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • Feature Suggestion: Customize the look of the points
    3 Posts | Last post October 24, 2011
    • Hi,
      I did an extension to FSharpChart to be able to customize the look of the points (so I can use red crosses like Matlab, for example). Here's the code:
      type SeriesProperties with
          member series.Marker<'T when 'T :> GenericChart>(?Style, ?Color, ?Size, ?BorderColor, ?BorderWidth) =
              fun (ch:'T) -> 
                  Style |> Option.iter ch.Series.set_MarkerStyle
                  Color |> Option.iter ch.Series.set_MarkerColor
                  Size |> Option.iter ch.Series.set_MarkerSize
                  BorderColor |> Option.iter ch.Series.set_MarkerBorderColor
                  BorderWidth |> Option.iter ch.Series.set_MarkerBorderWidth
      Would you like to incorporate that into FSharpChart?
    • The indentation was lost. I've put the snippet here: https://gist.github.com/1305917
    • Let me look at adding a .Marker into the new minor release. Nice suggestion.
  • Feature Suggestion: Allow to set the border of the legend
    2 Posts | Last post October 24, 2011
    • Add ?BorderColor and ?BorderWidth to WithLegend
    • Hi. Thanks for the suggestions. There are several With... and StyleHelper calls that do not support all posible properties. I am currently looking to see if there are some obvious ones that should be added. I will try and add then soon and issue a new minor release.
  • Feature Suggestion: When combining charts, try to keep the area and legend settings
    1 Posts | Last post October 23, 2011
    • https://github.com/ovatsus/FSharpChart/commit/e1a53455aacfca8c3525f70b28bc911cd17a9c2c
  • Feature Suggestion: Customize the titles of the axis
    1 Posts | Last post October 23, 2011
    • Add parameters Title, TitleAlignment, TitleFont and TitleForeColor to WithArea.AxisX and WithArea.AxisY
      I've updated https://gist.github.com/1305917 to include this
  • error
    4 Posts | Last post August 31, 2011
    • #load "FSharpChart.fsx"
      I got this
      FSharpChart.fsx(2934,33): error FS0001: This expression was expected to have type
      but here has type
          int ref    
    • Are you using version 0.5 of the download. The code in questions seems to be:
          let createCounter() = 
              let count = ref 0
              (fun () -> incr count; !count) 
    • Yes, I was using version 0.5. It is wired that when I load the script in my home machine (vs2010sp1) I got the error. However when I use it in my office (f# ctp 2011) everything works just fine. I'll do more investigation and let you know if I find something. 
      Besides that, I want to know how can I use your lib in a F# project. Apparently I cannot load the FSharpChart.fsx file in my project. 
    • To use the code in a project you can either just use the project that one downloads as part of your solution or just compile the code and reference the DLL. In the next release I am hoping to include a DLL that one can use to simplify this process.
  • error
    1 Posts | Last post August 23, 2011
    • When #load "FSharpChart.fsx"
      I got this error
      FSharpChart.fsx(2934,33): error FS0001: This expression was expected to have type
  • Feature Suggestions
    1 Posts | Last post July 17, 2011
    • If you have some suggestions for features you would like to see added please add to this Q&A thread. Also, if you have some usability suggestions such as tasks that seem overly difficult, please do the same.