Jump to content
Software FX Community

Two series on one ChartFX financial


praemium

Recommended Posts

Thanks for the reply.

When I have one candlestick, I do something like this:

chart1.DataSourceSettings.Fields.Add(new FieldMap("Date", FieldUsage.XValue));

chart1.DataSourceSettings.Fields.Add(

new FieldMap("Open", FieldUsage.Value));chart1.DataSourceSettings.Fields.Add(new FieldMap("High", FieldUsage.Value));

chart1.DataSourceSettings.Fields.Add(

new FieldMap("Low", FieldUsage.Value));

chart1.DataSourceSettings.Fields.Add(

new FieldMap("Close", FieldUsage.Value));

financial1.DataBindingSettings.OpenSeries = 0;

financial1.DataBindingSettings.HighSeries = 1;

financial1.DataBindingSettings.LowSeries = 2;

financial1.DataBindingSettings.CloseSeries = 3;

financial1.Gallery.Analytical.PriceDisplay = ((

PriceDisplay)Enum.Parse(typeof(PriceDisplay), "CandleStick"));

 

When I add 4 more series to the chart, how do I set the financial DataBindingSettings? Thanks!

chart1.DataSourceSettings.Fields.Add(new FieldMap("Open1", FieldUsage.Value));

chart1.DataSourceSettings.Fields.Add(

new FieldMap("High1", FieldUsage.Value));chart1.DataSourceSettings.Fields.Add(new FieldMap("Low1", FieldUsage.Value));

chart1.DataSourceSettings.Fields.Add(

new FieldMap("Close1", FieldUsage.Value));

 

Link to comment
Share on other sites

After I add 4 more series to the chart, the chart does not display any data except the message "The current chart gallery settings is inconsistent with the number of series in your data. Some gallery types require a specific number of series."

Should I set financial DataBindingSettings to match the number of series I have? I could not find any place to set the extra series I added.

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...