+ Reply to Thread
Results 1 to 9 of 9

How to resize a dynamic pivot chart

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    How to resize a dynamic pivot chart

    Hi all,

    i have a dynamic pivot chart. It works well, except the chart area size, it remains the same. Is there any way how the chart area can be automatically adjusted/resized (see the example attached)? Maybe with VBA?

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: How to resize a dynamic pivot chart

    You can set the range of the pivot to be a 'table' and then when the table resizes the range of pivot is already set to the table.

  3. #3
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to resize a dynamic pivot chart

    Thanks for your suggestion. However, i am afraid it wouldn't work in my case as i need to keep the filter. Also, this is a dynamic dashboard (report), i am not sure how would it fit. Would it be too much effort for you to apply this idea in my excel example?

    Thank you.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to resize a dynamic pivot chart

    Is there no way to refresh the chart?

    You can refresh the pivot table i.v.m. add new data.

    So I expect a chart can also be refreshed, but I don't know this for sure, since I don't make mutch graph.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to resize a dynamic pivot chart

    Well, the data in the chart is refreshing together with the table, but not the size of the chart area. The problem comes if i have, for example, only 2 lines instead of 35 (as my data is dynamic), then i am getting the "wonderful huge" graph with only 2 **** columns)))

  6. #6
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: How to resize a dynamic pivot chart

    Quote Originally Posted by Alyena View Post
    Well, the data in the chart is refreshing together with the table, but not the size of the chart area. The problem comes if i have, for example, only 2 lines instead of 35 (as my data is dynamic), then i am getting the "wonderful huge" graph with only 2 **** columns)))
    Can you post a sheet showing your desired result? I'm not understanding really well what your problem is.
    "The quieter you become, the more you are able to hear"

    Any reputation (*) points appreciated.

    "If you know yourself but not the enemy, for every victory gained, you will suffer defeat."

  7. #7
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to resize a dynamic pivot chart

    Sure, please, see 2 attached sheets. One has only line of data and the pivot chart is proportional with the pivot table, quite small. The second sheet has already 8 lines of data and the pivot chart got bigger and looks proportional as well. In both cases i had to resize (not refresh) the graph manually, but i would it it to be resized automatically depending on the amount of data. Maybe there should be a vba code behind it?
    Attached Files Attached Files

  8. #8
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: How to resize a dynamic pivot chart

    Quote Originally Posted by Alyena View Post
    Sure, please, see 2 attached sheets. One has only line of data and the pivot chart is proportional with the pivot table, quite small. The second sheet has already 8 lines of data and the pivot chart got bigger and looks proportional as well. In both cases i had to resize (not refresh) the graph manually, but i would it it to be resized automatically depending on the amount of data. Maybe there should be a vba code behind it?
    Hmm...I can't think in a fast way to do that....but lemme ask, why would you have a chart to show only one bar in it? :P I Think you should leave the chart in a 'good' size and if someone apply filters and need to really 'show' something, then, he/she should design the chart accordingly to his/her needs, which is more appropriated.

  9. #9
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to resize a dynamic pivot chart

    I would like to have a chart, that shows as many bars as filtered in a pivot table, this is exactly the point. Assuming, i am the target group, who will get this report. I've got the data and then i am starting to filter my data in a pivot table. Here the problem comes as the pivot chart data refreshing together with the pivot table, which is good, but the chart window remains the same and this is bad. So data doesn't really look nice if i make by default the big chart area size and then filter my data to one line. Sure, it's 2 sec work to adjust the window manually, but it's not what i would offer to do to the target group. I would offer only the ready to use report.

+ 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. Dynamic titles in Pivot Chart
    By Juan_Sombrero in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-07-2013, 08:24 AM
  2. Dynamic title on pivot chart
    By PKDJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 03:27 AM
  3. [SOLVED] Macro to Resize and Position Pivot Chart
    By rezolutions24 in forum Excel General
    Replies: 2
    Last Post: 11-19-2012, 03:00 PM
  4. Dynamic Pivot Chart based on Pivot Table.
    By excelkeechak in forum Excel General
    Replies: 3
    Last Post: 12-01-2009, 09:23 PM
  5. Dynamic Chart Series for Pivot Table
    By cricrazy in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-29-2009, 07:36 AM

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