User (Legacy) Posted March 23, 2004 Report Share Posted March 23, 2004 I put a donut, pie and pyramid in 3 cells of a table. They fill the cells nicely, look good, and are the size I want... as long as I use the default data. When I give them my own data, the donut & pie get very small (about 1/9 of graph area in middle right) and the pyramid gets small (about 1/2 of graph area on the right). To simplify debugging this, I dragged chart from the component bar to the 3 cells, changed the gallery types ONLY, to what I want, and gave them all the same data, without legends: byProgram.OpenData(SoftwareFX.ChartFX.COD.Values, 1, SoftwareFX.ChartFX.COD.Unknown) byProgram.Value(1, 0) = 18 byProgram.Value(1, 1) = 4 byProgram.Value(1, 2) = 27 byProgram.Value(1, 3) = 2 byProgram.Value(1, 4) = 49 byProgram.CloseData(SoftwareFX.ChartFX.COD.Values) where "byProgram" is one of the charts... same code, different chart name, for the other two. So why do the charts get small & how do I get them back to the "normal" size. I'm using 6.2 & was originally reading data from SQL Server & don't know in advance the # of data points, which is why I use the OpenData with Unknown # points. Link to comment Share on other sites More sharing options...
Software FX Posted March 23, 2004 Report Share Posted March 23, 2004 All our arrays are 0-based, By assigning one or more points to series 1 (the second series), you are effectively creating a chart with 2 series, the first series is not painted but it occupies half the space on the chart. We do not throw an exception when you try to set a point outside of the range specified by OpenData because of backward compatibility. -- Regards, JC Software FX Support "Bill Adkins" <adkins@caer.uky.edu> wrote in message news:E$5Zf7QEEHA.196@webserver3.softwarefx.com... > I put a donut, pie and pyramid in 3 cells of a table. They fill the cells > nicely, look good, and are the size I want... as long as I use the default > data. When I give them my own data, the donut & pie get very small (about > 1/9 of graph area in middle right) and the pyramid gets small (about 1/2 of > graph area on the right). To simplify debugging this, I dragged chart from > the component bar to the 3 cells, changed the gallery types ONLY, to what I > want, and gave them all the same data, without legends: > byProgram.OpenData(SoftwareFX.ChartFX.COD.Values, 1, > SoftwareFX.ChartFX.COD.Unknown) > > byProgram.Value(1, 0) = 18 > > byProgram.Value(1, 1) = 4 > > byProgram.Value(1, 2) = 27 > > byProgram.Value(1, 3) = 2 > > byProgram.Value(1, 4) = 49 > > byProgram.CloseData(SoftwareFX.ChartFX.COD.Values) > > where "byProgram" is one of the charts... same code, different chart name, > for the other two. So why do the charts get small & how do I get them back > to the "normal" size. I'm using 6.2 & was originally reading data from SQL > Server & don't know in advance the # of data points, which is why I use the > OpenData with Unknown # points. > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.