473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Chart legends

Using Access XP I have a chart which displays the data I want according to
filters which yield either 5 or 25 categories.
The chart row source is set by the following:

".RowSource = TRANSFORM SUM(qsSumSalesCat.[SalesRate]) AS [SalesRate] SELECT
sDate FROM qsSumSalesCat WHERE sDate BETWEEN #05 31 2006# AND #05 31 2007#
AND (LeaseType ='Major' OR LeaseType = 'Mini Major')"

The chart displays OK.
My problem is that when I apply the filter to include only 5 selected
categories, the legend still shows all 25.
Where is the source for the legend set, and how do I change it to show only
the 5 categories being displayed?

--
Bob Darlington
Brisbane
Jul 5 '07 #1
2 1819
Bob Darlington wrote:
The chart displays OK.
My problem is that when I apply the filter to include only 5 selected
categories, the legend still shows all 25.
Where is the source for the legend set, and how do I change it to show only
the 5 categories being displayed?
I don't use filters with charts. I would suggest rather than using a
filter, that you alter the where clause to get the results you want.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Jul 5 '07 #2
Thanks for the reply Tim.
The filter is applied using the Where clause in the RowSource (see post).

--
Bob Darlington
Brisbane
"Tim Marshall" <TI****@PurplePandaChasers.Moertheriumwrote in message
news:f6**********@coranto.ucs.mun.ca...
Bob Darlington wrote:
>The chart displays OK.
My problem is that when I apply the filter to include only 5 selected
categories, the legend still shows all 25.
Where is the source for the legend set, and how do I change it to show
only the 5 categories being displayed?

I don't use filters with charts. I would suggest rather than using a
filter, that you alter the where clause to get the results you want.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me

Jul 5 '07 #3

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

Similar topics

1
by: Brian Shade | last post by:
Hi all. I am having a bit of a problem with my Perl script and the creation of a chart. I can create the chart and create a new SeriesCollection. I then specify the XValues and the Values parameter...
8
by: Prabhakar | last post by:
Friends, I have been migrating ASP applications from IIS4.0/NT4.0 to IIS5.0/W2K. All the applications working perfectly except one. This particular application will make use of asp chart object....
1
by: Jim | last post by:
I have this chart on a form. I'm trying to get this chart to render only if the user chooses to do so. This because of that the chart is quite complex and takes some time to render. I know that I...
1
by: Paul | last post by:
Let say, I have a table called USERS with the following fields: UserID, Date, Name, ComType. ComType gets it's info from another table called TYPE with fields: TypeID, TypeOfCom, with options:...
22
by: PeteCresswell | last post by:
I've been to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mschrt/html/vbobjtitleobject.asp, but still don't have a clue. For example, I've got a chart object namde...
1
by: Stan Sainte-Rose | last post by:
Hi, I need to set several legends to an bmp Image. The legends must be set all around of the image (each 30 degrees). I really need your help about this topic. The best would be to get a vb...
2
by: rfox | last post by:
I have a page with a couple of forms on it that have a light background color. The form boxes have legends for the title of each box. All is well with the world until I view the page in IE. In...
0
debasisdas
by: debasisdas | last post by:
Here's a simple VB6 code snippet that uses the MSChart control to display Charts in VB6.0. To use this sample, please following steps Create a new project in VB6 Pull down the Project menu and...
1
by: cubekid | last post by:
I am using OWC 11 in my new web application for displaying charts. Is it possible in OWC 11 to combine and display a column and a line graph (Looking like they overlap each other)? I tried it using...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.