protected void Page_Load(object sender, EventArgs e) if (!IsPostBack) { BindChart(); } } protected void BindChart() { string[] counteries = { "India", "Sri Lanka", "England", "South Africa"}; int[] ODIpoints = {60,40,50,30}; Chart1.Series[0].Points.DataBindXY(counteries,ODIpoints); Chart1.Series[0].ChartType = SeriesChartType.Column; Chart1.ChartAreas[0].AxisX.Maximum = 120; Chart1.ChartAreas[0].AxisX.Minimum = 20; Chart1.ChartAreas[0].AxisX.ScaleBreakStyle.Enabled = true; Chart1.ChartAreas[0].AxisX.ScaleBreakStyle.StartFromZero = StartFromZero.No; Chart1.ChartAreas[0].AxisY.IsReversed = true; Chart1.Series[0].XAxisType = AxisType.Secondary; Chart1.Series[0].YAxisType = AxisType.Primary; }
Chart1.ChartAreas[0].AxisY.Crossing = Double.Minimum;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)