+ Reply to Thread
Results 1 to 5 of 5

Populate multiple series within an xlLine chart from an array

  1. #1
    Registered User
    Join Date
    12-17-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    27

    Populate multiple series within an xlLine chart from an array

    Hi all,
    I am trying to populate multiple series within an xlLine chart from an array of doubles. The array is correctly populated so what I need is a way to reference an entire column within an array (Line 8 - SeriesCollection(x).Values)
    Please Login or Register  to view this content.
    Is this possible or should I create multiple (n x 1) arrays outside of the graph and then use those as inputs?

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

    Re: Populate multiple series within an xlLine chart from an array

    Clarification: You say that you are trying to chart series from an array of doubles, but your code is treating IndexedReturns like a Range object (with a columns property). An array does not have properties and methods, and you access elements of an array using index numbers. I think the solution to your problem is going to be in exactly what is stored in indexedreturns and changing what it contains and how it is populated.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-17-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    27

    Re: Populate multiple series within an xlLine chart from an array

    Yes I am trying to get around populating the graph using a column of an array by using methods I have used before on ranges. Basically what I want is an equivalent of the Matlab IndexedReturns(:,x) which refers to the entire column of the array.

  4. #4
    Registered User
    Join Date
    12-17-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    27

    Re: Populate multiple series within an xlLine chart from an array

    Here is the code from the start, slightly modified to use only ranges. Still not working.

    Please Login or Register  to view this content.

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

    Re: Populate multiple series within an xlLine chart from an array

    "Still does not work" is not a very useful debugging statement. What error (or errors) are you getting and what statement(s) are associated with the error(s)?

    I still am not sure of the details of what you want, but it feels very similar to what this user wanted: http://www.excelforum.com/excel-prog...ml#post4255097 Review that discussion and see if the concepts and solutions seem similar to what you want here.

+ 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: 1
    Last Post: 06-18-2015, 02:01 PM
  2. River Cross Section Chart - Area Chart Multiple series
    By ppdominic in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-15-2014, 06:01 AM
  3. Replies: 2
    Last Post: 03-05-2013, 03:07 PM
  4. xlLine chart - xlScatter chart - problem
    By smde in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2013, 07:00 AM
  5. 2D array as source data for new series in chart
    By goels in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2012, 04:37 AM
  6. [SOLVED] Create excel chart from LotusScript, change xlLine line weight
    By Roy Rumaner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2006, 11:35 PM
  7. [SOLVED] Array as chart series data source
    By Mitch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2005, 06:06 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