Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Arrays as source data for charts

Is it possible to use arrays (up to 10,000 elements) as source data for charts?
I have been able to get arrays with 28 elements to work with:

i = 0
Do Until i = UBound(DataArray, 1) + 1
ReDim Preserve xArray(i) As Double
ReDim Preserve yArray(i) As Double
xArray(i) = DataArray(i, 0)
yArray(i) = DataArray(i, 1)
i = i + 1
Loop

Charts.Add

ActiveChart.ChartType = xlXYScatterLinesNoMarkers
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(1).XValues = xArray()
ActiveChart.SeriesCollection(1).Values = yArray()


I am importing data from a text file and i'd rather not put the data in a
spreadsheet.

Thanks,

Matt
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple charts from 1 source data Sduduzo Charts and Charting in Excel 2 February 3rd 10 06:36 PM
Editing Source Data in Charts F. Lawrence Kulchar Charts and Charting in Excel 1 November 5th 06 03:18 PM
Updating charts when data source is in a different file Sarah Charts and Charting in Excel 1 February 19th 06 11:46 AM
extending source data in several charts Mike Charts and Charting in Excel 4 November 29th 05 05:37 AM
Charts not recognizing source data if original linked data is changed. JLC Charts and Charting in Excel 3 October 14th 05 01:29 AM


All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"