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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:07:06+00:00 2026-06-09T17:07:06+00:00

I have a chart control with a data in it. The x-axis data is

  • 0

I have a chart control with a data in it. The x-axis data is of DateTime and the Y-axis is an integer. I’m trying to pull the data out of the graph and export it to excel, but the DateTime values aren’t coming out in a way I can understand them or figure out how to decode them.

Example values are as such:

The graph begins at 4/30/2012 and goes to 8/13/2012.

The values show:

{X=41030, Y=16991}
{X=41031, Y=34363}
{X=41032, Y=26744}
{X=41033, Y=28180}
{X=41034, Y=17478}

...intermediate values

{X=41134, Y=1785}

I set the chart x-axis type to date time with

RestartBooksAttempts.Series["Attempts"].XValueType = ChartValueType.DateTime;
RestartBooksAttempts.Series["Books"].XValueType = ChartValueType.DateTime;

and I’m grabbing the values with:

Convert.ToDateTime(chart.Series[s.Name].Points[i].XValue)
double y = chart.Series[s.Name].Points[i].YValues[0];

obviously the x-points are not a DateTime convertable value, does anyone have any idea how to decode these values?

  • 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-09T17:07:08+00:00Added an answer on June 9, 2026 at 5:07 pm

    Ok, I found it out.

    You have to use DateTime.FromOADate(double) to convert it back.

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

Sidebar

Related Questions

I have a problem with WPF Toolkit Chart Control. I can't add text values
I am using the new ASP control Chart, but I have some problems with
I have data in data table like below. I am trying to make graph
I'm using Microsoft's Chart control to plot some series, but if I have no
I have a chart in a Report Viewer control: Series data is a sum:
I have a pie chart on a WPF user control whose data changes periodically,
I have a chart control that works normally for all but one case. If
I have a C# Chart Control and I data bind it like so. chart.Series[0].Points.DataBindXY(xAxis,
I have an a chart control which measures customer satisfaction. The possible values are
I have an User Control that host another controls like panel, chart controls. Right

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.