2015-01-17 4 views

답변

0

무료 차트 라이브러리를 NuGet/다운로드하거나 직접 만들 수 있습니다. 그러나 당신이 그런 기본적인 질문을하고 있기 때문에, 저는 AM Chart 나 Sparrow Chart에 시도해보아야한다고 생각합니다. 비주얼 스튜디오에 내장 된 NuGet을 사용하여 검색을 해보십시오.

일단 필요한 라이브러리를 포함하고 나면 차트에 표시 할 수식에서 샘플 포인트 목록을 계산하면됩니다.

간단한 예 :

List<Point> point_list = new List<Point>(); 

float starting_x_value = 0; 
float ending_x_value = 10; 
float step = 0.5f; 

for (float current_x = starting_x_value; current_x <= ending_x_value; current_x = current_x + step) 
{ 
    float calculated_y = 2 * (current_x) + 1;  // your equation 
    Point p = new Point(current_x, calculated_y); // create the point 
    point_list.Add(p);       // add it to the point list 
} 

그런 다음 당신이해야 할 어떤 차트의 수집 원의 수집과 같은 점의 목록을 설정합니다.

관련 문제