|
|
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_M arkerStyle Color |> Option.iter ch.Series.set_M arkerColor Size |> Option.iter ch.Series.set_M arkerSize BorderColor |> Option.iter ch.Series.set_M arkerBorderColo r BorderWidth |> Option.iter ch.Series.set_M arkerBorderWidt h ch Would you like to incorporate that into FSharpChart?
The indentation was lost. I've put the snippet here: https://gist.github.com/130591 7
Let me look at adding a .Marker into the new minor release. Nice suggestion.
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.
https://github.com/ovatsus/FSh arpChart/commit /e1a53455aacfca 8c3525f70b28bc9 11cd17a9c2c
Add parameters Title, TitleAlignment, TitleFont and TitleForeColor to WithArea.AxisX and WithArea.AxisY I've updated https://gist.github.com/130591 7 to include this
#load "FSharpChart.fsx" I got this FSharpChart.fsx (2934,33): error FS0001: This expression was expected to have type int 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.
When #load "FSharpChart.fsx" I got this error FSharpChart.fsx (2934,33): error FS0001: This expression was expected to have type
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.