zoukankan      html  css  js  c++  java
  • C# GridView使用方法


    public
    void Point_databind(PointList pl) { chart1.Series.Clear(); //清空图表 Series s1 = new Series(); //添加一条曲线 s1.Points.DataBind(pl.list, "x", "y", ""); //数据绑定 s1.ChartType = SeriesChartType.Point; //曲线类型为点 chart1.Series.Add(s1); //将曲线添加到图表 } public void Start(PointList pl, double a) { chart1.Series.Clear(); num = 0; for (int i = 0; i < pl.count; i++) { pl.list[i].Is_z = false; pl.list[i].l = 0; } mmsa(pl, a); Series s1 = new Series(); for (int i = 0; i < pl.count; i++) { DataPoint dp = new DataPoint(); //添加一个点 dp.XValue = pl.list[i].x; //给横坐标赋值 dp.SetValueY(pl.list[i].y); //纵坐标赋值 if (pl.list[i].Is_z) { dp.MarkerSize = 20; //点的大小 dp.MarkerStyle = MarkerStyle.Star5; //点类型 } dp.MarkerColor = color[(pl.list[i].l)]; s1.Points.Add(dp); } s1.ChartType = SeriesChartType.Point; chart1.Series.Add(s1); }

     对坐标属性的设置:

  • 相关阅读:
    linux初始密码Mysql
    lamp整个打包
    模拟小球碰撞后返回
    Linux图形界面卡死
    非模态对话框
    菜单
    键盘消息简单示例
    菜单练习
    模态对话框练习
    阶段知识整合(画笔,画刷,字体)
  • 原文地址:https://www.cnblogs.com/Ghazi/p/6123624.html
Copyright © 2011-2022 走看看