일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- 티스토리 초대장
- M2M
- Visual Studio Code
- scrapy
- 텐서플로우
- rs422
- tensorflow
- matplot
- MX Component
- rs485
- 딥러닝
- PYTHON MSSQL
- pymssql
- sql developer
- Python
- Serial
- 윈도우10
- c#
- MSSQL
- 장고
- 크롤링
- vscode
- MEAN Stack
- 자본주의
- 파이썬
- oracle
- MSSQL PYTHON
- 오라클
- django
- windows10
- Today
- Total
안까먹을라고 쓰는 블로그
[DevExpress] ChartControl 본문
https://blog.naver.com/gmkjh74/220782675038
GV.sQuery = "EXEC[dbo].[spkind_sooyulGraphy] 2, '" + cmbLine.Text + "', '" + DT2.Rows[0]["kind_code"].ToString() + "', '" + dateFrom.Text.Replace("-", "") + "', '" + dateTo.Text.Replace("-", "") + "'";
DT3 = GV.DB.GetDataTableSelectQuery(GV.sQuery);
if (DT3 != null && DT3.Rows.Count > 0)
{
DataTable DT_FS = new DataTable();
DataTable DT_F1 = new DataTable();
DT_FS = DT3.Select("s_title = 'FS'", "s_Date asc").CopyToDataTable();
DT_F1 = DT3.Select("s_title = 'F1'", "s_Date asc").CopyToDataTable();
chartControl1.Series.Clear();
Series Series_FS = new Series("FS", ViewType.Bar);
chartControl1.Series.Add(Series_FS);
Series Series_F1 = new Series("F1", ViewType.Bar);
chartControl1.Series.Add(Series_F1);
chartControl1.Series["FS"].DataSource = DT_FS;
chartControl1.Series["F1"].DataSource = DT_F1;
Series_FS.ArgumentDataMember = DT_FS.Columns["s_Date"].ColumnName;
Series_FS.ValueDataMembers.AddRange(new string[] { DT_FS.Columns["s_Value"].ColumnName });
Series_FS.View.Color = Color.Blue;
Series_F1.ArgumentDataMember = DT_F1.Columns["s_Date"].ColumnName;
Series_F1.ValueDataMembers.AddRange(new string[] { DT_F1.Columns["s_Value"].ColumnName });
Series_F1.View.Color = Color.Red;
// Chart Title - Main
//chartControl1.Titles.Clear();
//ChartTitle chartTitle1 = new ChartTitle();
//chartControl1.Titles.Add(chartTitle1);
//chartTitle1.Text = "품종별 수율일보 Chart";
//chartTitle1.WordWrap = true;
//chartTitle1.MaxLineCount = 2;
// Chart Title - X, Y
//XYDiagram diagram = (XYDiagram)chartControl1.Diagram;
//// Customize the appearance of the X-axis title.
//diagram.AxisX.Title.Visible = true;
//diagram.AxisX.Title.Alignment = StringAlignment.Center;
//diagram.AxisX.Title.Text = "일자";
//diagram.AxisX.Title.TextColor = Color.Gray;
//diagram.AxisX.Title.Antialiasing = true;
//diagram.AxisX.Title.Font = new Font("Tahoma", 10, FontStyle.Bold);
//// Customize the appearance of the Y-axis title.
//diagram.AxisY.Title.Visible = true;
//diagram.AxisY.Title.Alignment = StringAlignment.Center;
//diagram.AxisY.Title.Text = "투입량";
//diagram.AxisY.Title.TextColor = Color.Gray;
//diagram.AxisY.Title.Antialiasing = true;
//diagram.AxisY.Title.Font = new Font("Tahoma", 10, FontStyle.Bold);
// Chart ViewType 변경!
// Bar, Line,
//chartControl1.Series["FS"].ChangeView(ViewType.Bar3D);
// Chart Label 보이게
//chartControl1.Series["FS"].LabelsVisibility = DevExpress.Utils.DefaultBoolean.True;
'Language > C#' 카테고리의 다른 글
[VisualStudio] 빌드중 - "lc.exe"이(가) 종료되었습니다 (0) | 2019.05.14 |
---|---|
[C#] KAKAO API 연동하기 (0) | 2018.12.06 |
[C#] 프로세스 중복체크 && 기 실행된 프로세스 최상위로 올리기 (1) | 2018.10.17 |
[DevExpress] Chart Control (1) | 2018.10.02 |
[DevExpress] GridView Header 정렬 / 폰트 설정 (0) | 2018.10.02 |