你好,通过以下代码可以设置Chart中横坐标显示的文字:
- protected void Page_Load(object sender, EventArgs e)
- {
- C1.Win.C1Chart.ValueLabelsCollection VlColl = C1WebChart1.ChartArea.AxisX.ValueLabels;
- VlColl.Add(1, "第一季度");
- VlColl.Add(2, "第二季度");
- VlColl.Add(3, "第三季度");
- VlColl.Add(4, "第四季度");
- C1WebChart1.ChartArea.AxisX.AnnoMethod = AnnotationMethodEnum.ValueLabels;
- }
复制代码 |