Jump to content
Software FX Community

dotnetclassic

Members
  • Posts

    22
  • Joined

  • Last visited

dotnetclassic's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Chart1.Gallery = Gallery.Candlestick 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.NotUsed)) I want to draw Volume Line On Chart please help....
  2. You can download code in first message in this post.
  3. thanx to reply its working gr8 but on mouse move index is not returning correctly some time. Some time index on correct index and some time its near index value DirectCast(DirectCast(Chart1.DataSource, DataView)(currentPoint)("Volume"), Integer) like records are 1.value1 date:1/1/2008 2.value2 date:1/2/2008 3.value3 date:1/3/2008 If mouse on 1/2/2008 then some time its return correct value and some time its return value of 1/1/2008 any help????
  4. you can see in image which showing 78465700 volume in date:6/5/2008 but in attached excel file showing 76063400
  5. I attached source code i want to show final presentation to my client he want to purchase this control. I am using candelistick gallery 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.NotUsed)) I want to show Volume on statusbar label please help me to fix the final problem... DrawChart is function to load data Chart1_MouseMove to show volume
  6. actually i want to show volume which is hidden in chart1.datasource when mouse on a point in graph area. like DirectCast(DirectCast(Chart1.DataSource, DataView)(currentPoint)("Volume"), Integer)
  7. On Mouse Move e.value is always Zero please help Chart1.Data.Clear() Chart1.DataSourceSettings.Fields.Clear() Chart1.Gallery = Gallery.Candlestick 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.NotUsed)) Chart1.DataSource = dw Private Sub Chart1_MouseMove(ByVal sender As Object, ByVal e As ChartFX.WinForms.HitTestEventArgs) Handles Chart1.MouseMove ToolStripStatusLabel1.Text = e.Value.ToString End Sub
  8. when i am using following code which is showing gr8 results. Chart1.Gallery = Gallery.Candlestick 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)) But i want to show Volume also please suggest me to show volume i am trying with following way but no result Chart1.Gallery = Gallery.Candlestick 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))
  9. hi I want to show cadlistick chart for more than one stock symbol using OpenHighLowClose Gallery type please can you provide me any sample code???
  10. hi I want to use only OpenHighLowClose Gallery type for Stock Symbols is it possible to show crosshair just like on http://finance.yahoo.com/charts?s=msft please give me any sample related with only OpenHighLowClose??
  11. hi I am using OpenHighLowClose Gallery type And i want to show Open, High, Low, Close, Date values on status bar on mouse move. How i can do this??? When i am using following code then it showing me dates values like 1/1/1900 But perfect in Lines Graph 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(CDbl(Chart1.AxisX.PixelToValue(e.X).ToString())) ToolStripStatusLabel1.Text = mdate.Date & ", " & Value End Sub Please give me sample to show all values???? Thanx
  12. 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
  13. 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
  14. thnx to reply i am trying with following code but error Dim myStream As New MemoryStream Chart1.Export(FileFormat.Binary, myStream) If Not IsNothing(myStream) Then Chart2.Import(FileFormat.Binary, myStream) '///////////////Error Line End If Error is Index was outside the bounds of the array
×
×
  • Create New...