Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SaveChartAs' is not defined #86

Open
HelmutFedder opened this issue Aug 20, 2015 · 0 comments
Open

'SaveChartAs' is not defined #86

HelmutFedder opened this issue Aug 20, 2015 · 0 comments

Comments

@HelmutFedder
Copy link

On linux (Ubuntu 15.04, vivid with Xamarin Mono), the code below, run with "fsharpi test.fsx" gives the error:

test.fsx(27,4): error FS0039: The field, constructor or member 'SaveChartAs' is not defined

Thank you very much for your help!

Note: ch.ShowChart() displays a window with the chart as expected. For this, I run the code by first executing

fsharpi

and then

load "test.fsx";;

(Otherwise the chart windows is closed right after creation).

I "packages/FSharp.Charting.Gtk.0.90.12/lib/net40"

I "packages/FSharp.Charting.Gtk.0.90.12"

load "FSharp.Charting.Gtk.fsx"

open FSharp.Charting
open FSharp.Charting.ChartTypes

let ch = Chart.Line [ for x in 1.0 .. 100.0 -> (x, x ** 2.0) ]
ch.ShowChart()
ch.SaveChartAs("test.png" ChartTypes.ChartImageFormat.Png)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant