틀 설명문서 [편집] [역사] [새로 고침]
틀 사용 방법에 대한 설명과 틀 분류 등이 들어있습니다.

사용법

꺾은 선 그래프

{{Graph:Chart|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}


  • Y축은 |y=의 최소값부터 시작되지만 |yAxisMin=로 강제 지정을 할 수 있다.
면 그래프

{{Graph:Chart|width=400|height=100|type=area|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}

  • Y축은 0에서 시작된다.
막대 그래프

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|type=rect|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}

색을 사용한 여러개의 꺽은 선 그래프

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=凡例|type=line|x=1,2,3,4,5,6,7,8|y1=10, 12, 6, 14, 2, 10, 7, 9 |y2=2,4,6,8,13,11,9,2|colors=#0000aa,#ff8000}}

겹친 부분은 색이 섞이는 여러개의 면 그래프
{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=凡例|type=area|x=1,2,3,4,5,6,7,8|y1=10, 12, 6, 14, 2, 10, 7, 9 |y2=2,4,6,8,13,11,9,2|colors=#800000aa,#80ff8000}}
여러 데이터를 기초로 두는 막대 그래프

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=범례|type=rect|x=1,2,3,4,5,6,7,8|y1=10, 12, 6, 14, 2, 10, 7, 9 |y2=2,4,6,8,13,11,9,2|colors=#800000aa,#80ff8000}}

곡선으로 표시하는 면 그래프

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=범례|type=stackedarea|x=1,2,3,4,5,6,7,8|y1=10, 12, 6, 14, 2, 10, 7, 9 |y2=2,4,6,8,13,11,9,2|interpolate=monotone|colors=seagreen, orchid}}

데이터 계열을 누적해서 표시한 막대 그래프
{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=범례|type=stackedrect|x=1,2,3,4,5,6,7,8|y1=10, 12, 6, 14, 2, 10, 7, 9 |y2=2,4,6,8,13,11,9,2|y1Title=항목 A|y2Title=항목 B|colors=seagreen, orchid}}

테두리 표시

{{Image frame}}을 사용한 꺾은 선 그래프
{{Image frame 
 | caption=꺾은 선 그래프
 | content = {{Graph:Chart
   | width=400
   | height=150
   | type=line
   | x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9
  }} 
}}
꺾은 선 그래프
{{사이드 박스}}를 사용한 막대 그래프
{{사이드 박스|metadata=No<!--This makes the box display on the mobile site-->
 | above = '''김아무개 그래프'''
 | abovestyle = text-align:center
 | text = {{Graph:Chart
  |height = 150
  |width = 200
  |xAxisTitle = 연도
  |xAxisAngle = -40
  |yAxisTitle = 흥얼흥얼 단위
  |yAxisMin = 0
  |type = rect
  |showValues = offset:4
  |x = 2011, 2012, 2013, 2014, 2015, 2016
  |y1 = 1326, 145, 203, 377, 639, 306
  |y2 =   ,     ,     , 226, 208, 276
  |colors = blue,grey
  }}
 | below = 여기에 설명서와 출처
}}

같이 보기