Jump to content
Software FX Community

amankazi

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by amankazi

  1. I had already seen the format of axis, but this doesn't speak about the rules I have specified.

    Please have a look at the links below, here you can find more details. I want my Y-axis labels to have this rules.

    1-2-5 rule

    http://books.google.co.in/books?id=Mome27I8KgsC&pg=PA20&lpg=PA20&dq=1+2+5+rule+in+numerical+scale&source=web&ots=CugjCE8Kee&sig=XbzYJ7tg14crvo9Vn6cfz281uRE&hl=en&sa=X&oi=book_result&resnum=4&ct=result#PPA20,M1

     Significant digit

    http://en.wikipedia.org/wiki/Significant_digit

  2. User can change the color of the series by picking it from color pallet(User can right click on the series and change the color). To do this I am using the CommandID "29468", when user changes the color at runtime the color the Y axis should also change. But it is not changing, as I am using the predefined CommandID, I am not sure how I can change the color of the Y-axis at runtime.

  3. I archived what I was looking at, following is the code written in UserCommand to improve the performance of the chart.

    ///Setting the Background of the graph to improve the performanceif (chartHistoricGraph.Background.ToString() == "Solid Color")   chartHistoricGraph.Background = new GradientBackground(GradientType.Vertical);else   chartHistoricGraph.Background = new SolidBackground(System.Drawing.Color.White);break;

  4. Following is the code how I got the exact Y axis on which user has clicked.

    int IntSeriesIndex = 0;

    AxisY YAxisObject = (AxisY)e.Object;for (int IntYAxisCount = 0; IntYAxisCount < chartHistoricGraph.AxesY.Count; IntYAxisCount++)

    {

    if (YAxisObject.Equals(chartHistoricGraph.AxesY[intYAxisCount]))

    {

    string LegendName = chartHistoricGraph.AxesY[intYAxisCount].Title.ToString();for (int IntSeriesCount = 0; IntSeriesCount < chartHistoricGraph.Series.Count; IntSeriesCount++)

    {

    if (chartHistoricGraph.Series[intSeriesCount].Text == LegendName.ToString())

    {

    IntSeriesIndex = IntSeriesCount;

    }

    }

    break;

    }

    }

     

    I am facing one more issue, on change of the color of series, the dynamically added Yaxis color is not changing.

  5.  Can you please explain the working of Y axis in my scenario with the series?

     I am comparing it. How will I get the Index of the series to which the Y axis belongs to ? Here is the code snippet for it

    AxisY temp_Y = (AxisY)e.Object;string SeriesName ; 

    for(IntYAxisCount = 0; IntYAxisCount < chartHistoricGraph.AxesY.Count;IntYAxisCount++){  if(temp_Y.Equals(chartHistoricGraph.AxesY[intYAxisCount]))  {   SeriesName = chartHistoricGraph.Series[intYAxisCount].Text;   break;  }} 

×
×
  • Create New...