OWC组件-图表中文本的字体大小. [英] OWC components - font size for the texts in the chart.

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

问题描述

海,

我正在使用OWC组件生成条形图.如何设置图表中文本的字体大小.

干杯,
Janes

Hai,

I am using OWC components for generating bar charts. How can i set font size for the texts in the chart.

Cheers,
Janes

推荐答案



请检查以下代码是否适合您,

Hi,

Please check if below code works for you,

var _with1 = chart.Axes(ChartAxisPositionEnum.chAxisPositionCategory);
_with1.HasTitle = true;
_with1.Title.Caption = "Date";
_with1.Title.Font.Name = "Arial";
_with1.Title.Font.Size = 8;
_with1.Font.Size = 8;
_with1.Font.Name = "Arial";



代码摘自本文 [ ^ ]或 [



Code is taken from this article[^] Or this[^] article may help you.

Let me know if it helps you,
Thanks
-Amit Gajjar


这篇关于OWC组件-图表中文本的字体大小.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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