sabstar Posted February 3, 2011 Report Share Posted February 3, 2011 Dear all, i am trying to create a ThreeLineBreak Diagram and I don't understand how to bind the data to the chart. There is a table on the SQL Server with Columns Name, Value2, Value3, Value4, Value5, Value6. There you can find the data "Namexyz", "100", "200", "-50", "150", "-20". Here is our actual coding: Chart1.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("Date", ChartFX.WinForms.FieldUsage.XValue)) Chart1.DataSourceSettings.Fields.Add( New ChartFX.WinForms.FieldMap("LOW", ChartFX.WinForms.FieldUsage.Value))Chart1.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("OPEN", ChartFX.WinForms.FieldUsage.Value)) Chart1.DataSourceSettings.Fields.Add( New ChartFX.WinForms.FieldMap("CLOSE", ChartFX.WinForms.FieldUsage.Value))Chart1.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("HIGH", ChartFX.WinForms.FieldUsage.Value))Chart1.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("VOLUME", ChartFX.WinForms.FieldUsage.Value)) Financial1.DataBindingSettings.OpenSeries = 0 Financial1.DataBindingSettings.HighSeries = 1 Financial1.DataBindingSettings.LowSeries = 2 Financial1.DataBindingSettings.CloseSeries = 3 Financial1.DataBindingSettings.VolumeSeries = 4 Can someone help me to bind this data to the chart? Thanks and best regards, Sabstar 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.