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
150
chart percentile spline?
posted

hi, I need to do this, you may do so with the spline control chart?
and wore generic lists?, in the months I have X and Y value ranges with intervals of 5. be placed as the series? and agree to a month and a value I place a specified percentile point as the example. This is possible using the chart control?

Parents
No Data
Reply
  • 28496
    Offline posted

    i think so.  how does this look?

    protected void Page_Load(object sender, EventArgs e)
        {
            List<Widget> data = new List<Widget>();
            for (int i = 0; i < 24; i++)
            {
                data.Add(new Widget()
                {
                    Month = i.ToString(),
                    Third = i * i + 3,
                    Fifteenth = i * i + 15,
                    Median = i * i + 50,
                    EightyFifth = i * i + 85,
                    NinetySeventh = i * i + 97
                });
            }

            this.UltraChart1.ChartType = ChartType.SplineChart;
            this.UltraChart1.SplineChart.MidPointAnchors = false;

            this.UltraChart1.Data.SwapRowsAndColumns = true;
            this.UltraChart1.Data.DataSource = data;
            this.UltraChart1.Data.DataBind();
        }
        public class Widget
        {
            public string Month { get; set; }
            public double Third { get; set; }
            public double Fifteenth { get; set; }
            public double Median { get; set; }
            public double EightyFifth { get; set; }
            public double NinetySeventh { get; set; }
        }

Children