Jump to content
Software FX Community

dotnetclassic

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by dotnetclassic

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

    post-5463-13922406425261_thumb.png

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

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

     

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

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

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

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

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

    Posted Imagefile:///C:/Documents%20and%20Settings/Admin/Desktop/sample.jpgfile:///C:/Documents%20and%20Settings/Admin/Desktop/sample.jpg

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

     

  11.  i have 2 charts on a winform

    Chart1, Chart2

    I populate data into Chart 1 then i perform some actions on chart1 like zooming,etc

    Then finally i want to copy instance of chart1 with last state into Chart2 is it  poissible??????

  12.  hi

    I am creating OpenHighLowClose Chart for Stock Symbols just like MSFT, GOOG, CNBC. I have 3 Datatables which have same columns like "Date, Open, High, Low, Close" and am binding tables like

    Chart1.Data.Clear() Chart1.DataSourceSettings.Fields.Clear() Chart1.Gallery = Gallery.OpenHighLowClose

    for i as integer=0 to 3

    Chart1.DataSourceSettings.DataSource = Ldt

    Next

    but chart showing  only 1 symbol's Data not showing for 3

    Also tel me is i can show different colors for different symbols in chart.

  13.  I want to customize tooltip with different color and style is it possible????

     

      Private Sub Chart1_GetTip(ByVal sender As Object, ByVal e As ChartFX.WinForms.GetTipEventArgs) Handles Chart1.GetTip   e.Text = "" '////my Custom tooltip   End Sub

     

×
×
  • Create New...