틀:그래프/설명문서: 두 판 사이의 차이

(한국어 위키백과에서 틀 설명문서 가져옴)
 
편집 요약 없음
 
(사용자 2명의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{설명문서 안내}}
{{설명문서 안내}}


== 사용법 ==
== 사용법 ==
5번째 줄: 5번째 줄:
{{#tag:code|<nowiki>{{그래프|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}</nowiki>}}
{{#tag:code|<nowiki>{{그래프|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}</nowiki>}}
{{그래프|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}<br />
{{그래프|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}<br />
:* Y축은 {{para|y}}의 최소값부터 시작되지만 {{para|yAxisMin}}로 강제 지정을 할 수 있다.  
:* Y축은 <code>|y</code>의 최소값부터 시작되지만 <code>|yAxisMin</code>로 강제 지정을 할 수 있다.  
; 면 그래프
; 면 그래프
{{#tag:code|<nowiki>{{그래프|width=400|height=100|type=area|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}</nowiki>}}
{{#tag:code|<nowiki>{{그래프|width=400|height=100|type=area|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}</nowiki>}}
35번째 줄: 35번째 줄:
{{-}}
{{-}}


{{퍼온문서|틀:Graph:Chart}}
<includeonly>
<includeonly>
<!-- 여기에 분류를 넣고, 인터위키는 위키데이터에 작성하세요. -->
<!-- 여기에 분류를 넣어주세요. -->
{{퍼온틀|Graph:Chart}}
[[분류:다이어그램 틀]]
[[분류:루아 틀]]
[[분류:루아 틀]]
</includeonly>
</includeonly>

2022년 4월 23일 (토) 16:10 기준 최신판

틀 사용 방법에 대한 설명과 틀 분류 등이 들어있습니다.

사용법[원본 편집]

꺾은 선 그래프

{{그래프|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로 강제 지정을 할 수 있다.
면 그래프

{{그래프|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에서 시작된다.
막대 그래프

{{그래프|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}}

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

{{그래프|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}}

겹친 부분은 색이 섞이는 여러개의 면 그래프

{{그래프|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}}

여러 데이터를 기초로 두는 막대 그래프

{{그래프|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}}

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

{{그래프|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}}

데이터 계열을 누적해서 표시한 막대 그래프

{{그래프|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}}

Wikipedia-ico-48px.png
이 틀 문서는 한국어 위키백과틀:Graph:Chart 문서에서 분기하였습니다.