User (Legacy) Posted November 5, 2000 Report Share Posted November 5, 2000 IE 2000, ASP I have a XY chart where the X axis values are dates, and the Y axis values are percentages. This chart has 1-4 series. I'm adding the data using "AddArray" and the CfxData.Array. In every case, each set of the corresponding date array and value array are the same size. If every set of arrays all are the same size, then everything works as I would expect. However, if two series have a different number of data points, even by one, then it seems it tries to fill in the shorter set with CDate(0), (Dec. 30, 1899), and my chart ends up looking like: with all the data scrunched over to the right. Here's what the relevant code looks like: ' Add X value arrays (dates) For nCount=0 To UBound(aDates) ' aDates(nCount) is an array itself CfxArray.AddArray aDates(nCount) oChart.DataType(nCount) = CDT_XVALUE Next nChartArrayYAxisLBound = UBound(aDates) + 1 ' Then add the Y value arrays For nCount=0 To UBound(aResults) CfxArray.AddArray aResults(nCount) oChart.DataType(nChartArrayYAxisLBound + nCount) = CDT_VALUE Next oChart.GetExternalData CfxArray ... I can provide more detail if necessary. So essentially, my question is: can I have a date XY chart with multiple series where the number of data points varies from series to series? Thanks, -Daniel Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.