472,950 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 software developers and data experts.

Problems With X Scale Number Format In Chart

I am charting data from a query that consists of a Date/Time field and
a Number field. The Date/Time field is the x scale on my chart.
Sometimes data is collected from different times during the one day.
I need to be able to see these times as different time points on the x
scale of my chart. To accomplish this I am using the following
statement as the row source for my chart: "SELECT
(Format([Date],"DDDDD HAMPM")),Max([Baro]) AS [Baro1] FROM [Baro]
GROUP BY (Int([Date]*24)),(Format([Date],"DDDDD HAMPM"));"

I am using the custom number format "d/mm/yyyy h:mm" for the x scale.
I have the "minimum", "maximum", "major unit" and "minor unit" set to
auto.

The different data points during a single day display correctly on the
chart, but despite trying everything that I can think of, I cannot
make the x scale Date/Time values display correctly. They are
displaying what seems to be design data e.g. "1/1/1990 00:00" etc. I
have tried other date formats but they all have a similar problem and
do not display correctly.

If I remove the "HAMPM" from the charts rowsource, the dates display
fine, but obviously the chart does not differentiate between different
times in a given day along the x axis as I require. There appears to
be some conflict with telling the chart that I want to see hourly data
by including the "HAMPM" part of the rowsource statement and the
format of the x axis date information. Even a simple "Date" format
does not display correctly.

Have I missed something obvious? I have charted the same data in
Excel and it looks fine. The big difference with an Excel chart is
that it doesn't rely on the rowsource statement in the same way that
an Access chart does.

If anyone can shed any light on this, it would be greatly appreciated.

Jan 28 '07 #1
0 2459

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ratnakar Pedagani | last post by:
Hi, I'm Ratnakar Pedagani. I'm writing a program in visual basic to display XYscatter or line chart. I'm getting values from a file which consists of 10000 lines. For every line in the file i...
1
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have...
5
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have...
1
by: Eric | last post by:
I am trying to figure out a good way to implement a XSLT transformation. Basically my goal is that I want to be able to ouput the following XML in a document: <chart type="pie" width="100"...
2
by: borekfm | last post by:
Hitting two problems when running a new report I've created, that contains a chart/graph. The chart shows three series, two are shown as lines and one as an area. The data come from three different...
1
by: S. van Beek | last post by:
Dear reader, A Microsoft Graph 2000 chart is as OLE class available in a form. If the form opens a diagram will be produced. Because of the variation in the figures for these diagrams...
2
by: DaveD170 | last post by:
Hi everybody, I'm newbie in c# and I'm having trouble in creating an excel chart. I have vector of data that my program calculated. It's in the next format: X Y 0.1 100 0.2 90...
6
by: Sunny | last post by:
Hi Is there a way to find a proper distance between large numbers. For example, if i have a set of numbers like: 10, 40, 80, 100, 500, 10000 Now if I have to create a break points between these...
2
by: AliR \(VC++ MVP\) | last post by:
I'm trying to write a RTF render code in C#. I have the code in C++/MFC and it works fine, but I have run into a problem with the C# code. I think the C# code is from Microsoft, and I added...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.