Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
X axis labels disappear after certain amount of data points
posted

             DataTable tbl = new DataTable();
            tbl.Columns.Add("Age",typeof(int));
            tbl.Columns.Add("Value",typeof(double ));
            int lcount = 300;
            for( int i = 1; i<lcount; i++)
            {
                DataRow r= tbl.NewRow();
                r["Age"]=i; r["Value"]=Math.Sin(3.14*i/100);
                tbl.Rows.Add( r);
            }

            chartForecasts.DataSource = tbl;
            chartForecasts.Data.RowLabelsColumn = 0;
            chartForecasts.Axis.X.TickmarkInterval = (int)lcount / 20;
            chartForecasts.DataBind();
            chartForecasts.Visible = true;

 Chart is simple 2D line chart.

 If number of points is say 20 shows all X axis labels from column[0] of binded table , but after certain amount of datapoints labels dissapear. I tried to experimnt with  TickmarkInterval but this does not help.

Parents Reply Children
No Data