条形图 [英] Bar Chart

查看:98
本文介绍了条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为自定义标签(在Y轴上)提供较小尺寸的字体。目前我的文字由于它的长度而被截断。如果我可以将标签文本定向为水平而不是垂直,那将是很好的。

解决方案

使用Axis.LabelStyle.Font属性设置字体系列,颜色和大小



Chart1.ChartAreas [0] .AxisX.LabelStyle.Font = new Font(" verdana",8,FontStyle。规则的)


How do I give a custom label (On the Y Axis) a smaller size font. Currently my text is being truncated because of it's length. It would be nice if I could have the label text oriented horizontal as opposed to vertical.

解决方案

Use Axis.LabelStyle.Font Property to set font family, colour and size

Chart1.ChartAreas[0].AxisX.LabelStyle.Font=new Font("verdana",8,FontStyle.Regular)


这篇关于条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆