728x90
반응형
728x170
▶ MainForm.cs
using System.Drawing;
using System.Windows.Forms;
using Steema.TeeChart.Drawing;
using Steema.TeeChart.Styles;
namespace TestProject
{
/// <summary>
/// 메인 폼
/// </summary>
public partial class MainForm : Form
{
//////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
////////////////////////////////////////////////////////////////////////////////////////// Public
#region 생성자 - MainForm()
/// <summary>
/// 생성자
/// </summary>
public MainForm()
{
InitializeComponent();
Text = "HTML 텍스트 사용하기";
string text = "Hello <b>World !</b>";
this.tChart.Panel.Pen = new ChartPen(Color.Black);
this.tChart.Axes.Left.Title.Transparent = false;
this.tChart.Axes.Left.Title.TextFormat = TextFormat.Html;
this.tChart.Axes.Left.Title.Caption = text;
this.tChart.Axes.Right.Title.Transparent = false;
this.tChart.Axes.Right.Title.TextFormat = TextFormat.Html;
this.tChart.Axes.Right.Title.Caption = text;
this.tChart.Axes.Top.Title.Transparent = false;
this.tChart.Axes.Top.Title.TextFormat = TextFormat.Html;
this.tChart.Axes.Top.Title.Caption = text;
this.tChart.Axes.Bottom.Title.Transparent = false;
this.tChart.Axes.Bottom.Title.TextFormat = TextFormat.Html;
this.tChart.Axes.Bottom.Title.Caption = text;
Bar bar = new Bar(this.tChart.Chart);
bar.HorizAxis = HorizontalAxis.Both;
bar.VertAxis = VerticalAxis.Both;
bar.FillSampleValues();
}
#endregion
}
}
728x90
반응형
그리드형(광고전용)
'TeeChart > WinForm' 카테고리의 다른 글
[TEECHART/WINFORM] Graphics3D 클래스 : PyramidTrunc 속성을 사용해 잘라진 피라미드 그리기 (0) | 2022.04.07 |
---|---|
[TEECHART/WINFORM] Graphics3D 클래스 : Ellipse 메소드 사용하기 (0) | 2022.04.07 |
[TEECHART/WINFORM] Graphics3D 클래스 : RotationCenter 속성을 사용해 회전 중심 설정하기 (0) | 2022.04.07 |
[TEECHART/WINFORM] ICloneable 구현을 사용해 객체 복사하기 (0) | 2022.04.07 |
[TEECHART/WINFORM] TChart 클래스 : Aspect 속성을 사용해 직교 각도 설정하기 (0) | 2022.04.07 |
[TEECHART/WINFORM] Gradient 클래스 : MiddleColor 속성을 사용해 중간 색상 설정하기 (0) | 2022.04.06 |
[TEECHART/WINFORM] 폰트 품질 설정하기 (0) | 2022.04.06 |
[TEECHART/WINFORM] Gradient 클래스 : 커스텀 그라디언트 사용하기 (0) | 2022.04.06 |
[TEECHART/WINFORM] TChart 클래스 : BeforeDraw/BeforeDrawAxes/BeforeDrawSeries/AfterDraw 이벤트 사용하기 (0) | 2022.04.06 |
[TEECHART/WINFORM] FastLine 클래스 : LinePen 속성을 사용해 라인 스타일/두께 설정하기 (0) | 2022.04.06 |
댓글을 달아 주세요