dotnetclassic Posted November 11, 2008 Report Share Posted November 11, 2008 i am watching following Sample is it Bug values are not showing correctly on Popup??? C:\Program Files\Chart FX 7\Help and Samples\Sample Applications\Windows Forms\VS2005\PassingData file:///C:/Documents%20and%20Settings/Admin/Desktop/sample.jpgfile:///C:/Documents%20and%20Settings/Admin/Desktop/sample.jpg Quote Link to comment Share on other sites More sharing options...
dotnetclassic Posted November 11, 2008 Author Report Share Posted November 11, 2008 I have gone through thoroughly, in ChartFX if we use the Financial Type of Chart then When We Move the over the Candle Sticks it Shows the High Value with Low value Label, and Low Value with High Value Label, But if make the Grid Visible It is Showing the Exact Values. So Please Guide how we can solve this issue and ChartFX should Show the values accurately in Tooltip While We are using Financial Types Chart. Secondly in Financial Type Chart if we Try to SHow the Date from the values into a Custom Label it Shows the Date with Wrong Values, But if we only Change the Style of Graph Else then the Financials Every thing Become OK. We are using the Following Code to Show the Dates in our Custom Label while User Moves Mouse over the Chart. Private Sub Chart1_MouseMove(ByVal sender As Object, ByVal e As ChartFX.WinForms.HitTestEventArgs) Handles Chart1.MouseMove Dim Value As Decimal = Math.Round(Val(Chart1.AxisY.PixelToValue(e.Y).ToString()), 2) Dim mdate As Date = DateTime.FromOADate(Chart1.AxisX.PixelToValue(e.X).ToString()) ToolStripStatusLabel1.Text = mdate.Date & ", " & Value End Sub Quote Link to comment Share on other sites More sharing options...
AndreG Posted November 11, 2008 Report Share Posted November 11, 2008 The issue is in the sample. It will be fixed on the release of next Service Pack. To apply the fix manually, please replace the following block of code (line 52): chart1.DataSourceSettings.Fields.Add(new FieldMap("Date",FieldUsage.XValue)); 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)); by: chart1.DataSourceSettings.Fields.Add(new FieldMap("Date",FieldUsage.XValue)); chart1.DataSourceSettings.Fields.Add(new FieldMap("Low",FieldUsage.Value)); chart1.DataSourceSettings.Fields.Add(new FieldMap("Close",FieldUsage.Value)); chart1.DataSourceSettings.Fields.Add(new FieldMap("High",FieldUsage.Value)); The right way to pass data to a HighLowClose chart is to pass Low to series 0, Close to series 1 and High to series 2. Regards, AndreG Quote Link to comment Share on other sites More sharing options...
dotnetclassic Posted November 12, 2008 Author Report Share Posted November 12, 2008 thanx 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.