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 8441467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:34:02+00:00 2026-06-10T08:34:02+00:00

How can I create a line graph in Java OR VB.NET with the following

  • 0

How can I create a line graph in Java OR VB.NET with the following data?

Sales Rep       # of Sales      Date
Anthony         15              August 1
Anthony         17              August 2
Mark            27              August 1
David           27              August 1
Mark            30              August 2
David           14              August 2
  • 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-06-10T08:34:03+00:00Added an answer on June 10, 2026 at 8:34 am

    In VB.Net, put your data into a DataTable and bind it to a Chart control

    Tutorials on how to bind a DataTable to a Chart are here and here.

    Also, there a some open-source chart controls like this and this.

    Edit:

    Here’s a simple example to show you how the Chart works:

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Dim table = New DataTable()
        table.Columns.Add("Sales Rep", GetType(String))
        table.Columns.Add("# of Sales", GetType(Integer))
        table.Columns.Add("Date", GetType(Date))
    
        table.Rows.Add("Anthony", 15, "2012 August 1")
        table.Rows.Add("Mark", 27, "2012 August 1")
        table.Rows.Add("David", 27, "2012 August 1")
    
        table.Rows.Add("Anthony", 17, "2012 August 2")
        table.Rows.Add("Mark", 30, "2012  August 2")
        table.Rows.Add("David", 14, "2012 August 2")
    
        Chart1.Series.RemoveAt(0)
        Chart1.DataBindCrossTable(table.DefaultView, "Sales Rep", "Date", "# of Sales", "")
    
        For Each s In Chart1.Series
            s.ChartType = SeriesChartType.Line
        Next
    End Sub
    

    enter image description here


    Using Java, have a look into JFreeChart, which can also render different kinds of charts (and there a probably a lot of other Java controls/libs for displaying charts).

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i create dynamic line chart using jFree chart in java which is
I would like to create a simple Line Graph like the following, I googled
Can you create a line of code, within a while-loop, that will create a
how we can create a diagonal heading line with pure CSS like mentioned below
I know I can create a plot with line and dots using the type
How can I create an empty file at the DOS/Windows command-line? I tried: copy
I'm looking to create a PHP function that can trim each line in a
i need to create a line graph inside a JPanel using paintComponent. I don't
I have this JPGraph (with proper data): // Create the graph. These two calls
Is it possible to create a combined column graph and line graph with different

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.