+ Reply to Thread
Results 1 to 9 of 9

Doughnut chart

  1. #1
    Forum Contributor
    Join Date
    07-06-2006
    Posts
    108

    Doughnut chart

    Hi,

    I want to implement doughnut charts in my form. This chart needs to display two values.

    Can someone help me achieve the same chart in Access as displayed in Excel (see jpg)? I've also added a sample database with the records already set-up.

    Thanks in advance!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by TomBP; 02-19-2011 at 09:46 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Doughnut chart

    Should the table have 2 fields and 2 rows

    |Color|Value|
    |Green|60|
    |Red|40|
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    07-06-2006
    Posts
    108

    Re: Doughnut chart

    I'm not exactly sure what you're aiming at here.

    The colors green and red should not be part of the chart itself. They are just a header name.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Doughnut chart

    See attached. Is that not what you wanted?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-06-2006
    Posts
    108

    Re: Doughnut chart

    That's not exactly what I'm looking for.

    Form2 does not depend on a table. The goal is to have the chart recalculated according to the numbers in the table.

    Furthermore, the data in the table needs to be inputted as shown in table Automation.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Doughnut chart

    I no expert in Access can't help any further.

    FYI Form2 IS based on the contents of Table1.
    Here is the select query the chart uses.

    SELECT Table1.[Color], Sum(Table1.[Value]) AS SumOfValue FROM Table1 GROUP BY Table1.[Color];

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Doughnut chart

    If you add a blank field to your automation table and report all 3 fields the chart will be as you want.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    07-06-2006
    Posts
    108

    Re: Doughnut chart

    Andy,

    I have absolutely no idea how you did it, but it works.

    Did you create the graph using the chart wizard or the properties? I can't seem to recreate what you did.
    Attached Images Attached Images
    Last edited by TomBP; 02-18-2011 at 01:47 PM.

  9. #9
    Forum Contributor
    Join Date
    07-06-2006
    Posts
    108

    Re: Doughnut chart

    Apparently my data series were not formatted the correct way. They should be in rows instead of columns.

    Thanks for your help Andy. Case solved!
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1