Home > Net >  C # MSchart chart does not display the X axis scale value
C # MSchart chart does not display the X axis scale value

Time:09-27

X=new string string [] [5] {" 12 ", "23", "34", "45", "86"};
String [] Y=new string [5] {" 102 ", "203", "304", "405", "506"};

Five points in the Y data can be displayed, but the X axis numerical display not to come out is how to return a responsibility, X axis and no scales show

Chart1. ChartAreas [0]. AxisX. Minimum=0;
Chart1. ChartAreas [0]. AxisY. Minimum=0;
Chart1. ChartAreas [0]. AxisX. Maximum=80;
Chart1. ChartAreas [0]. AxisY. Maximum=1000;
Chart1. ChartAreas [0]. AxisX. Interval=20;
Chart1. ChartAreas [0]. AxisY. Interval=100;
Chart1. Series [0]. IsValueShownAsLabel=true;




Chart1. BorderlineWidth=3;


X=new string string [] [5] {" 12 ", "23", "34", "45", "86"};
String [] Y=new string [5] {" 102 ", "203", "304", "405", "506"};

Chart1. Series [0]. Points. AddXY ([0] X, Y [0]).
Chart1. Series [0]. Points. AddXY (X [1], [1] Y);
Chart1. Series [0]. Points. AddXY (X [2], [2] Y);
Chart1. Series [0]. Points. AddXY (X [3], [3] Y);
Chart1. Series [0]. Points. AddXY (X [4], [4] Y);


Want to use the five points of the two arrays, draw five points in the MSchart chart,
  •  Tags:  
  • C#
  • Related