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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:30:57+00:00 2026-05-18T23:30:57+00:00

I am using the MS Chart control (version 3.5.0). I have added it by

  • 0

I am using the MS Chart control (version 3.5.0).
I have added it by using the designer (drag and drop). I removed the default “Series1” from the Properties -> Series -> Collection so that the chart contains no data.

I am adding the data at runtime based on a canned query to a SQLite DB. Like so:

Dim SQL As String = "SELECT * FROM ageLength ORDER BY month"
Dim cmd As New SQLiteCommand(SQL)
Dim SqLiteConnection1 As SQLiteConnection = New SQLiteConnection()
SqLiteConnection1.ConnectionString = "Data Source=" & My.Application.Info.DirectoryPath & "\Data\UserData.db3;"
cmd.Connection = SqLiteConnection1
Dim da As New SQLiteDataAdapter(cmd)
Dim ds As New DataSet()
da.Fill(ds, "ageLength")

Dim Series1 As Series = New Series()
Dim Series2 As Series = New Series()
Series1.Name = "Pcnt2nd"
Series1.ChartType = SeriesChartType.Spline
Series2.Name = "Pcnt98th"
Series2.ChartType = SeriesChartType.Spline
Chart1.Series.Add("Pcnt2nd")
Chart1.Series.Add("Pcnt98th")

Chart1.Series("Pcnt2nd").XValueMember = "month"
Chart1.Series("Pcnt2nd").YValueMembers = "Pcnt2nd"
Chart1.Series("Pcnt98th").XValueMember = "month"
Chart1.Series("Pcnt98th").YValueMembers = "Pcnt98th"
Chart1.DataSource = ds.Tables(0)

The data is displayed on the Chart, however, it is a Bar type graph. I set it to use the Spline type for both series. I am not sure what I missed. Any input is greatly appreciated.

  • 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-18T23:30:58+00:00Added an answer on May 18, 2026 at 11:30 pm

    After doing a lot more messing around I found the solution:
    I remove these 2 lines:

    Series1.ChartType = SeriesChartType.Spline
    Series2.ChartType = SeriesChartType.Spline
    

    And then I add these 2 lines:

    Chart1.Series("Pcnt2nd").ChartType = DataVisualization.Charting.SeriesChartType.Line
    Chart1.Series("Pcnt98th").ChartType = DataVisualization.Charting.SeriesChartType.Line
    

    Not sure why that is…but there you have it.

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

Sidebar

Related Questions

Anyone getting this error when using the new free chart controls MS bought from
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display
We are using Google Charts for render the chart images, but 500 requests/day became
I`m writing a chat using WinSock2 and WinAPI functions. And I have a little
I have a char array buffer that I am using to store characters that
I have trouble using Perl grep() with a string that may contain chars that
While generating charts using RS 2008 betas, RC0 and such., I never specified any
I'm implementing charts using The Ziya Charts Gem . Unfortunately, the documentation isn't really
I am creating a chat using Ajax requests and I'm trying to get messages
Is there some way I can define String[int] to avoid using String.CharAt(int) ?

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.