Click here to Skip to main content
15,909,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

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

Cheers,
Janes
Posted

1 solution

Hi,

Please check if below code works for you,

C#
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900