Jump to content
Software FX Community

HighLowClose Chart Bug


dotnetclassic

Recommended Posts

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
Link to comment
Share on other sites

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

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...