+ Reply to Thread
Results 1 to 3 of 3

Charting a Timeline with custom Y-Axis

  1. #1
    Registered User
    Join Date
    02-08-2021
    Location
    Virginia
    MS-Off Ver
    MS 365
    Posts
    1

    Question Charting a Timeline with custom Y-Axis

    Hello all

    I hope that this isn't too much to ask in a forum, but I am looking for any level of approach to my issue. My question is related to charting a set of data against a timeline in a specific way, the jist of which is included below.

    I have to convert some MATLAB code into VBA. Usually my methodology to do this is to develop each chart individually and manually, then convert to VBA. I am at a loss as to where to start with one specific implementation of the data.

    The type of chart I need to make contains a timeline. This timeline is tied to individual actors taking certain actions, in that the chart will be plotted as time vs actor/action. The actions that each individual can take are 4 discrete types, but they are tied to the timeline and actor in such a way that I cannot get it to work. I have attached a jpeg of how the chart will display, as my explanation is likely not clear. Some other lesser limitations that may be sticking points in the future, but i dont care about right now:
    • I only need the top "X" number of actors, say 20, that take the most amount of actions.
    • I am not sure what future data would like but it appears that each actor can only take one action type
    • larger datasets as time goes on

    Things I have tried on my real time data:
    • Creating pivot table with date as the x and actor as y then creating a pivot chart.
    • Creating pivot table with date as the x and actor as y then creating a scatter chart various ways.
    • Filtering the dataset and creating a milestone chart.

    I guess if this cannot be answered a fallback would be for guidance on what type of chart to research, an approach to display in multiple charts, the most amount of data I can include in a single chart etc. (A fallback solution may be if we only filter by one action type, which I likewise cannot seem to get to work). I am unsure if this is a limitation on excel.
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: Charting a Timeline with custom Y-Axis

    Things I have tried on my real time data:
    Creating pivot table with date as the x and actor as y then creating a pivot chart.
    Creating pivot table with date as the x and actor as y then creating a scatter chart various ways.
    Filtering the dataset and creating a milestone chart.
    Hello TyFrown and Welcome to Excel Forum.
    While there is no guarantee that anyone will be able to produce your desired result, it may be helpful if you could include the graph that came closest to what you wanted along with an explanation of what changes need to be made so that the graph meets expectations.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Charting a Timeline with custom Y-Axis

    I thought I had written a response for this one, but I guess I dreamed it.

    What I see in this picture is basically a scatter chart. Each "Action" will be its own data series, and we will "replace" the numeric horizontal x axis with "Actor" names.

    As with a lot of charting questions, most of the work is in the spreadsheet. Steps I see needing to happen (overview style, since I don't know what you will need help with):

    1) We need a way to assign a horizontal number to each actor. I would probably use a lookup table/lookup function for this so that column D will contain a number determined by the actor name in column C. This column will be our Xvalues range for the scatter chart.
    2) In columns E:??, we will populate the individual data series for each Action. Enter each Action in row 1 (E1, F1, and so on), then populate the table with a simple IF() function like =IF(E$1=$B2,$A2,NA()) -- Basically implementing this "conditional formatting of chart data" technique: https://peltiertech.com/conditional-...-excel-charts/
    3) If you make sure D1 is empty, then you should be able to select D1:whatever and insert the scatter chart.
    4) Then use a custom axis labels technique (similar to this: https://peltiertech.com/custom-axis-...n-excel-chart/ ) to put the actor names along the horizontal axis. If you use a lookup table in step 1, you can probably build the dummy series from the lookup table and not need another helper range.
    5) Other chart formatting as needed.

    Using those kinds of techniques, we should be able to build a chart like this.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Replies: 2
    Last Post: 10-28-2015, 03:10 PM
  2. Replies: 0
    Last Post: 02-27-2013, 07:55 PM
  3. Batch charting, 2nd-axis threshold lines and custom formatting
    By Cameron Forward in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-18-2012, 11:26 AM
  4. Excel 2007 : Dynamic Charting Discontinuous Timeline
    By sriniyer in forum Excel General
    Replies: 1
    Last Post: 04-24-2011, 10:01 PM
  5. Timeline charting problem
    By winnie_shrub in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-17-2007, 05:57 PM
  6. capturing a value once each week for charting timeline
    By don delaney in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-06-2007, 10:21 AM
  7. [SOLVED] Custom charting - Stacked charting with a line
    By Randy Lefferts in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-03-2005, 12:06 AM

Tags for this Thread

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