Re: Excel Chart Series Values Property Size Limitation
- From: "Peter T" <peter_t@discussions>
- Date: Fri, 11 Jan 2008 15:17:28 -0000
Hi Jon,
I first started using named arrays as a method to 'delink' large series data
from cells in another workbook. I posted the basic idea some while ago and
understand some now use the method to deliberately turn what you correctly
describe as problematic to their advantage!
The chart can remain user re-formatable and, if the right code is to hand,
still possible to retrieve, amend the data and/or re-source to cells.
Regards,
Peter T
"Jon Peltier" <jonxlmvpNO@xxxxxxxxxxxxxxxxxxx> wrote in message
news:eI9M1xEVIHA.2464@xxxxxxxxxxxxxxxxxxxxxxx
It seems like it would be "nice" if you could bury chart data in the chartsolution,
formula, though it's much harder to edit in the formula, and harder to see
where something may be wrong. Using Names also seems like a "nice"
but Names populated with static arrays also suffer from the aboveproblems.
as
Excel charts were designed to work with worksheet data. Worksheets are
cheap, they are easy to edit and validate, and they can be hidden. If you
want to hide the data completely, sending a chart with data isn't secure,
a simple macro can be used to extract the data. A more secure approach isto
make a picture copy of the chart: hole Shift, select the Edit menu, choosecell
Copy Picture, and use the Picture and On Screen options. Then select a
and paste.of
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______
"Peter T" <peter_t@discussions> wrote in message
news:ekK$zVDVIHA.5816@xxxxxxxxxxxxxxxxxxxxxxx
Each 'segment' of the Series formula is limited to an absolute maximum
creating255 characters (can be a bit less), incl curly brackets, commas and
values.
Depending on your data, rounding dp may help reduce the overall length
sufficiently.
Otherwise, one way to put large amounts of data into a series is with
'Name
arrays'. The limit in XL2000 is 5000+ points (much more in later
versions).
Cells are not required, indeed the workbook could contain only
chart-sheets.
If not, is
it possible to create an invisible range?
Of course, chart data could be in cells in hidden columns, outside the
ScrollArea, or on a hidden sheet (eg xlSheetVeryHidden).
Regards,
Peter T
"Pete" <Pete@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8DF712EA-CC55-4D8C-83D0-B07F539F16E2@xxxxxxxxxxxxxxxx
Hi,
I am trying to create a new series in an Excel chart using code (it's
actually VB.Net but I think it's almost identical in VBA). After
toa
series using Series1 = Chart1.SeriesCollection.NewSeries, I am trying
containingset
the values property of the series by assigning an array (in VB.Net thisan
is
array of Doubles) e.g. Series1.Values = DataArray1. For charts
themany data points (>30 depending on the size of the numbers), I get theerror
message "Unable to set the values property of the series class". Iunderstand
this is because there is a limit to the size of an array, or the values
definition string, that the Values property can accept. The data for
not,new
series is not contained in a range within a Work***.work***
Is there a workaround that doesn't involve writing the data to the
and setting the Values property to the range containing the data? If
is
it possible to create an invisible range? Alternatively, is there a waywithout
of
dynamically adding datapoints to a series in a program loop so I can
gradually build up the array of data points without getting this error?
Is
there any other way to create a chart series from an array of numbers
hitting this size limit?
Thanks,
Pete
.
- References:
- Re: Excel Chart Series Values Property Size Limitation
- From: Peter T
- Re: Excel Chart Series Values Property Size Limitation
- From: Jon Peltier
- Re: Excel Chart Series Values Property Size Limitation
- Prev by Date: Re: Is is me? Or is Excel 2007 Charting Lame?
- Next by Date: Re: Excel Chart Series Values Property Size Limitation
- Previous by thread: Re: Excel Chart Series Values Property Size Limitation
- Next by thread: Re: Excel Chart Series Values Property Size Limitation
- Index(es):