[차트 디렉터] 준비사항
헤더 파일에 선언
#include "ChartViewer.h"
멤버 변수 선언시
도구모음의 Picture Ctrl 로 다이얼 로그에 위치 시킨후 멤버 변수로 선언할때
CStatic --> CCharViewer로 변경 시켜준다.
ex)
CStatic m_chartLoc;
CChartViewer m_chart;
Sample Source |
// 차트영역 출력 // 차트 영역 계산 //PieChart *c = new PieChart(areaRect.Width(), areaRect.Height()); // The labels for the line chart // Create a XYChart object of size 250 x 250 pixels // Set the plotarea at (30, 20) and of size 200 x 200 pixels // Add a line chart layer using the given data // Set the labels on the x axis. // Display 1 out of 3 labels on the x-axis. // output the chart m_chart.setChart(c); delete c; |