Jump to content
Software FX Community

Hardik

Members
  • Posts

    2
  • Joined

  • Last visited

Hardik's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi! How can I show the value in tool tip of chart which include [<Yaxis><Xaxis>] for the particular mouse pointer. I am using area chart in windows application and want to display the value of particula Y-axis and X-axis on the chart in the tool tip. So Please any one can help me.
  2. I have two Y-axis with both having same data for x-axis, I am using the following code But I am not getting proper output of graph and X-axis value are also not been getting displayed as required. Chart1.Data.Clear(); Chart1.Reset(); ConfigureChartFXNifty(); sNiftyMax = Convert.ToDouble(dtNifty.Compute("Max(CurPrice)", ""));sNiftyMin = Convert.ToDouble(dtNifty.Compute("Min(CurPrice)", "")); Chart1.Data.Series = 1; Chart1.Data.Points = dtNifty.Rows.Count; Chart1.AxisY.Max = (Convert.ToDouble(sNiftyMax)+50); Chart1.AxisY.Min = ( Convert.ToDouble(sNiftyMin)-50);Chart1.AxisY.Step = (((Convert.ToDouble(sNiftyMax) + 100)-(Convert.ToDouble(sNiftyMin)-50))/4); Chart1.Data.X.Shared = true; int i = 0;for (int j = 0; j < Chart1.Data.Points;j++) { Chart1.Data.Y[i, j] = Convert.ToDouble(dtNifty.Rows[j].ItemArray[1]);dTime = ((dtNifty.Rows[j].ItemArray[0]).ToString()).Remove(5,3).Replace(":",".") ;Chart1.Data.X[i, j] = Double.Parse(dTime); } i = 1; for (int j = 0; j < Chart1.Data.Points-1; j++) { Chart1.Data[i,j]=Convert.ToDouble(dtNifty.Rows[j].ItemArray[2]); } Is something I m missing.
×
×
  • Create New...