+ Reply to Thread
Results 1 to 9 of 9

Axis Label Range

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Axis Label Range

    I have a Doughnut chart !!!
    And I want to divide it equally spaced (but Variable) slices
    If I have to divide it in 24, I have created a Column 1 to 24 with value 10 in
    So I have added a Series, selecting that range
    But I want to update that to 48 slices, or 96
    How to define it ?
    Attached Files Attached Files
    Last edited by AliGW; 02-24-2019 at 01:48 AM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Axis Label Range !

    What you need is to drive the chart using a named dynamic range.

    I created a range called NumParts =OFFSET(Sheet1!$A$3,0,0,Sheet1!$B$1,1) and used this as the source of the series data.

    Here are two wikis that explain how to make named dynamic ranges and how to use them in charts.
    http://www.utteraccess.com/wiki/Offs...Dynamic_Ranges
    http://www.utteraccess.com/wiki/Dynamic_Charting
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Axis Label Range !

    I did what you said, created that NumParts
    Then created a Series with it
    But when I change B1, chart will not update

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Axis Label Range !

    I believe that the attached demonstrates dflak's proposal.
    Notice that if you open the Select Data Source dialog box and then select to edit "nr" the Series Values window reads: ='question (ionelz).xlsx'!NumParts
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Axis Label Range !

    Thank you so much, I got it !
    Is possible to define dynamic numbers for Series !?
    So to add dynamic rings to doughnut !

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Axis Label Range

    Apparently I forgot to attach the spreadsheet.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Axis Label Range

    Thank you so much
    B2 - control the number of Slices
    But now I have C2 which should control number of Rings
    How to define that, variable number of rings ?
    Attached Files Attached Files

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Axis Label Range

    I am not too sure what the objective is here but I got something that works with VBA. It still uses named ranges. I haven't figured out a way to make the range reference itself multiple times.

    I am sure that somebody will come up with a method to add and / or delete series to the chart. That's a lot more coding than I'm willing to do.

    With this model, you will need a column for every ring you want.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Axis Label Range

    Objective is this :
    To create a Variable number of doughnut SLICES (this is done, thank you)
    And variable number of doughnut RINGS
    If Slices=100 I have 8 Rings
    If Slices =70 , I have 6 rings
    So I need to variate rings too, otherwise i have to create max of them

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] X-axis of scatter chart: Tick mark and X-axis label for every data point
    By JayUSA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2018, 02:38 PM
  2. [SOLVED] how to change the axis label range of chart in excel vba
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2017, 10:17 AM
  3. vba code to update axis label range
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-24-2014, 05:22 AM
  4. Changing X axis label range automatically and Create line for today
    By aaslezak in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-26-2013, 01:01 PM
  5. Trying to get VBA to use my Chart Axis Label name range
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2012, 09:04 AM
  6. Y-axis label Bug
    By Chris in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-16-2006, 02:00 PM
  7. Y-Axis Label
    By LittleEm in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-29-2006, 10:45 PM

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