Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 937923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:33:23+00:00 2026-05-15T21:33:23+00:00

Over on FSHUB , LethalLavaLand said, Let me plot my values! So the question

  • 0

Over on FSHUB, LethalLavaLand said,

Let me plot my values!

So the question is, how can I plot a data series in F# using built-in .NET 4.0 controls?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:33:24+00:00Added an answer on May 15, 2026 at 9:33 pm

    Since I’ve been working with the built-in Microsoft Charting Controls in .NET 4.0 lately (and loving every minute of it!), I thought I’d take a crack at answering my own question…

    #r "System.Windows.Forms.DataVisualization"
    
    open System.Windows.Forms
    open System.Windows.Forms.DataVisualization.Charting
    
    type LineChartForm( title, xs : float seq ) =
        inherit Form( Text=title )
    
        let chart = new Chart(Dock=DockStyle.Fill)
        let area = new ChartArea(Name="Area1")
        let series = new Series()
        do series.ChartType <- SeriesChartType.Line
        do xs |> Seq.iter (series.Points.Add >> ignore)
        do series.ChartArea <- "Area1"
        do chart.Series.Add( series )
        do chart.ChartAreas.Add(area)
        do base.Controls.Add( chart )
    
    let main() =
        let data = seq { for i in 1..1000 do yield sin(float i / 100.0) }
        let f = new LineChartForm( "Sine", data )
        f.Show()
    
    main()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over using gdb, any one can see content of any registers ? ex: x/x
Over the past 6 months I've been developing web sites using asp.net. When I
Over the years, I've tried to avoid instanceof whenever possible. Using polymorphism or the
Over the last year or so I tried using WP-CodeBox for a syntax highlighting
Over a year ago someone asked this question: Execute .sql files that are used
Over time my app using a lot of AsyncTasks, and I noticed in the
Over here I asked a question about the speed of my application creating and
Over the years most web developers will have built an arsenal of tools or
Over the last few days I pretty much dove head first into using R
Over the weekend, I had specific problem with function overload resolution that I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.