SM1 Posted May 19, 2009 Report Share Posted May 19, 2009 Iam using ChartFX Financial Extension, Ive already added low,open,close,high,volume series. Iam unable to add one more series to the Chart. My code is /* populating the dataset */ Chart1.DataSourceSettings.Fields.Add(new FieldMap("Date", FieldUsage.XValue)); Chart1.DataSourceSettings.Fields.Add( new FieldMap("Low", FieldUsage.Value));Chart1.DataSourceSettings.Fields.Add(new FieldMap("Open", FieldUsage.Value)); Chart1.DataSourceSettings.Fields.Add( new FieldMap("Close", FieldUsage.Value));Chart1.DataSourceSettings.Fields.Add(new FieldMap("High", FieldUsage.Value)); Chart1.DataSourceSettings.Fields.Add( new FieldMap("Volume", FieldUsage.Value));Financial1.DataBindingSettings.LowSeries = 0; Financial1.DataBindingSettings.OpenSeries = 1; Financial1.DataBindingSettings.CloseSeries = 2; Financial1.DataBindingSettings.HighSeries = 3; Financial1.DataBindingSettings.VolumeSeries = 4; /* Code to set Data for new series */ int seriesCount=Chart1.Series.Count; // series count is still 4 (it should be 5) Is it possible to add series to Chart having Financial extension ? Quote Link to comment Share on other sites More sharing options...
rocioZ Posted June 29, 2009 Report Share Posted June 29, 2009 No, it not possible to add more than 5 series to the Chart Financial. No of series 1 --> Use the series as CLOSE values 2 --> Use the first series as CLOSE values, second series as VOLUME 3 --> Use the first series as LOW values, second as CLOSE, third as HIGH 4 --> Use the first series as LOW, second as CLOSE, third as HIGH and fourth as VOLUME 5 --> the first 4 as LOW, OPEN, CLOSE, HIGH and fifth as VOLUME more than 5 --> use the first five as described above and ignore remaining series You can use the Chart FX Financial API to change Default behavior If you passed the data as Volume, Open, High, Low, Close (in said order), Chart FX Financial will not display the chart correctly as the table shown above indicates when 5 series are present in the chart, the first series will be considered the Low values and not the Volume as you populated the chart. Chart FX Financial expects the data to me passed in the following order: Low Open Close High Volume Date For further information, please refer to the Programmer's Guide & Samples --> Chart FX Extensions --> Chart FX Financial Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.