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

  • Home
  • SEARCH
  • 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 9173789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:38:45+00:00 2026-06-17T16:38:45+00:00

I am using Visual Studio 2010 and WFC to create a point graph of

  • 0

I am using Visual Studio 2010 and WFC to create a point graph of data. To create my chart I have a datatable with 3 different columns; these are Date, Value and Serial. This table is generated dynamically off of an SQL query and then I plot the Date on the x axis and Value on the y axis. What I am trying to achieve is that when the mouse is over a point on the chart then a tool tip shows the Date, Value and the unique Serial relating to these values. At the moment I am using

myChart.Series["mySeries"].ToolTip = "XValue = #VALY \r\nDate = #VALX{d}";

however obviously this does not show the serial number against these values. I tried using a ToolTip event however had some problems when trying to convert from datapoint in pixels to an exact plot on the graph. I hope this question makes sense.

  • 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-17T16:38:46+00:00Added an answer on June 17, 2026 at 4:38 pm

    I solved the problem, with thank to @vikas. Rather than try to assign a generic tool tip I have assigned an individual tool tip for each point.

            int points = 0;
    
            //For every row in the values table, plot the date against the variable value
            foreach (DataRow row in Values.Rows)
            {
                myChart.Series[Variable].Points.AddXY(Convert.ToDateTime(row["Date"].ToString()), row["Variable"].ToString());               
                myChart.Series[Variable].Points[points].ToolTip = Variable + " = #VALY \r\nDate = #VALX{d} \r\nSerial = " + row["Serial"].ToString();
                points += 1;
            }
    

    So the counter starts at 0 then for every row in the datatable Values 1 is added to the number of points and a Unique ToolTip is assigned for each point individually.

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

Sidebar

Related Questions

I am using Visual Studio 2010 to create a setup project for my .NET
We have developers using Visual Studio 2010 professional and some trying out Visual Studio
i am using visual studio 2010. i have a three dimensional structure array which,
Using Visual Studio 2010 I have created a VB Web Application which I added
(Using Visual Studio 2010) I'm trying to create a shared_ptr of an existing class
Using Visual Studio 2010 C++. I have a project which uses MFC and I
I have already using Visual Studio 2010 for my project. Now I have to
Using Visual Studio 2010 and SQL management Studio, I have created a page by
Using Visual Studio 2010 C++ with GMock. Trying to create a stub object for
Iam using visual studio 2010. i have developed one web application. my iis application

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.