去除顶上TeeChart 标题:图表->标题->显示
3D->2D:图表->3D->3D效果
右侧小图例去除:图表->图例
修改黑色背景:
1.外面板修改背景颜色:图表->面板->渐彩->颜色:开始 中间 结束修改颜色为黑色
2.内面板修改背景颜色:图表->壁板->显示壁板
3. 面板->背景->透明
图表->面板->边缘->外斜面->颜色-> 白色修改其他颜色
private void chart_MouseMove(object sender, MouseEventArgs e)
{
int value = (int)this.tChart1.Series[3].GetMarkValue(e.X);
//根据X轴鼠标事件对应的X值获取Y值,这是官方的方法但是不准确
//根据X轴找到对应的Y轴的数据最后用的一个偏方
}
this.tChart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDown);
this.tChart1.MouseLeave += new System.EventHandler(this.chart_MouseLeave);
this.tChart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove);
this.tChart1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.chart_MouseUp);
同一个X轴,多个Y轴:
声明4个Y轴
public Steema.TeeChart.Axis axis;
public Steema.TeeChart.Axis Green;
public Steema.TeeChart.A