Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21f22d7ea7f0acb

Jump to content

Template:ChartDirect/testcases

From Wikipedia, the free encyclopedia

Maximum parameter

[edit]
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=400px
|align=left
}}
05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=400px
|align=left
}}
010020030040001020304050squarenumbers1Fibonacci (stop)2 hoch x, but stopodd numberseven numberstimes 5Gauss sumPrimesCollatzsquarenumbers10squarenumbers11squarenumbers12squarenumbers13squarenumbers14squarenumbers15


Maximum X,Y only

[edit]
{{ChartDirect
|type=pie
|x=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O
|y=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|width=400px
|align=left
}}
ABCDEFGHIJKLMNOABCDEFGHIJKLMNO
{{ChartDirect
|type=bar
|x=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O
|xTitle=P
|y=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|width=400px
|align=left
}}
050100150200250PABCDEFGHIJKLMNO
{{ChartDirect
|type=bar
|x=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|width=400px
|align=left
}}
050100150200250ABCDEFGHIJKLMNOy

Missing parameters

[edit]
{{ChartDirect | x=2000,2005,2010,2015 | y1=5,10,15,20 | y1Title=row 1
| y2=3,6,9 | y2Title=row 2
| y3=1,3,, | y3Title=row 3
| y4=15, | y4Title=row 4
| y5= | y5Title= 
| width=
}}
051015202000200520102015row 1row 2row 3row 4
{{ChartDirect | x=2000,2005,2010,2015 | y1=5,10,,20 | y1Title=row 1
| y2=3,6,9,12 | y2Title=row 2
| y3=,, | y3Title=row 3
| y4=11,22,33,44 | y4Title=row 4
| y5= | y5Title= 
| width=
| chart=
}}
010203040502000200520102015row 1row 2row 3row 4

More parameters

[edit]
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=400px
|align=left
|source=dummysource
|caption=testcaption
}}
05010015020025001020304050squarenumbers
testcaption Source: dummysource
{{ChartDirect
|
|right
|600px
|what a great chart
|type=area
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|border=1
}}
050100150200250123456789101112135015squarenumbers
what a great chart View chart definition.

Missing inputs

[edit]
{{ChartDirect | x=2000,2005,2010,2015 | y1=5,10,15,20 | y1Title=Row 1
| y2=3,6,9 | y2Title=Row 2
| y3=1,3,, | y3Title=Row 3
| y4=15, | y4Title=Row 4
| y5= | y5Title= 
| width=
| definition=
}}
051015202000200520102015Row 1Row 2Row 3Row 4
{{ChartDirect | x=2000,2005,2010,2015 | y1=5,10,,20 | y1Title=Row 1
| y2=3,6,9,12 | y2Title=Row 2
| y3=,, | y3Title=Row 3
| y4=11,22,33,44 | y4Title=Row 4
| y5= | y5Title= 
| width=
| definition=
}}
010203040502000200520102015Row 1Row 2Row 3Row 4

Swap

[edit]
{{ChartDirect
 |y1Title=Bregenz|y2Title=Eisenstadt|y3Title=Graz|y4Title=Innsbruck|y5Title=Klagenfurt|y6Title=Linz|y7Title=Salzburg|y8Title=St. Pölten|y9Title=Wien
 |x=traffic choice, air quality, bicycle traffic, public transport, parking space, pedestrians, car alternatives, MEAN
 |y1=6.25,10,3,5.75,3.75,6.75,3,5.5
 |y2=3,9,1.75,1.75,4,7,3.75,4.32
 |y3=5.75,3.75,2.5,6.75,4.75,6,4.5,4.86
 |y4=7,8.25,4.25,7.25,4.75,4,3.5,5.57
 |y5=3.5,8.75,6,5.75,3.25,5,3.5,5.11
 |y6=5,4.5,4,6.75,4.25,6.25,3,4.82
 |y7=5.5,5.25,3,5,4.5,6,3,4.61
 |y8=4.5,9.5,5.25,2.5,3,4.25,3.25,4.61
 |y9=7,5,6.5,7.75,7.25,5.5,6.75,6.54
}}
0246810traffic choicepublic transportcar alternativesBregenzEisenstadtGrazInnsbruckKlagenfurtLinzSalzburgSt. PöltenWien
{{ChartDirect
 |y1Title=Bregenz|y2Title=Eisenstadt|y3Title=Graz|y4Title=Innsbruck|y5Title=Klagenfurt|y6Title=Linz|y7Title=Salzburg|y8Title=St. Pölten|y9Title=Wien
 |x=traffic choice, air quality, bicycle traffic, public transport, parking space, pedestrians, car alternatives, MEAN
 |y1=6.25,10,3,5.75,3.75,6.75,3,5.5
 |y2=3,9,1.75,1.75,4,7,3.75,4.32
 |y3=5.75,3.75,2.5,6.75,4.75,6,4.5,4.86
 |y4=7,8.25,4.25,7.25,4.75,4,3.5,5.57
 |y5=3.5,8.75,6,5.75,3.25,5,3.5,5.11
 |y6=5,4.5,4,6.75,4.25,6.25,3,4.82
 |y7=5.5,5.25,3,5,4.5,6,3,4.61
 |y8=4.5,9.5,5.25,2.5,3,4.25,3.25,4.61
 |y9=7,5,6.5,7.75,7.25,5.5,6.75,6.54
 |swap=1
}}
0246810BregenzInnsbruckSalzburgtraffic choiceair qualitybicycle trafficpublic transportparking spacepedestrianscar alternativesMEAN

Swap XY

[edit]
{{ChartDirect
|x=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
|y=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|xTitle=Square numbers (x)
|width=400px
|align=left
}}
050100150200250Square numbers (x)24681012141618202224262830
{{ChartDirect
|x=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
|y=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|yTitle=(y)
|width=400px
|align=left
|swap=1
}}
051015202530(y)149162536496481100121144169196225

Width

[edit]
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=800px
|align=left
}}

result:

05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=50%
|align=left
}}

result:

05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=800
|align=left
}}

result:

05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=px
|align=left
}}

result:

05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|width=
|align=left
}}

result:

05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|align=left
}}

result:

05010015020025001020304050squarenumbers

Unnamed parameters

[edit]
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|1=
|2=
|3=
|4=
}}

result:

05010015020025001020304050squarenumbers
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|1=thumb
|2=right
|3=800px
|4=testcaption
}}

result:

05010015020025001020304050squarenumbers
testcaption View chart definition.
{{ChartDirect
|type=line
|x=1,2,3,4,5,6,7,8,9,10,11,12,13,50,15
|y1=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
|y1Title=squarenumbers
|
|right
|800px
|testcaption
}}

result:

05010015020025001020304050squarenumbers
testcaption View chart definition.

Test sub functions

[edit]

ChartDirect/Select

[edit]
{{ChartDirect/Select
|part=5
|data=1,4,9,16,25,36,49,64,81,100,121,144,169,196,225
}}

result: 25

{{ChartDirect/Select
|part=4
|data=Alpha,Bravo,Charlie,Delta,Epsilon,Foxtrott,George,Honey,India,Juliette,Kappa,Lollipop,Master
}}

result: Delta

{{ChartDirect/Select
|part=5
|data=,,,Delta,A/B,C/D,,,,,,,
}}

result: A/B

ChartDirect/SelectMulti (only with swap)

[edit]
{{ChartDirect/SelectMulti
 |part=4 
 |data1=6.25,10,3,5.75,3.75,6.75,3,5.5
 |data2=3,9,1.75,1.75,4,7,3.75,4.32
 |data3=5.75,3.75,2.5,6.75,4.75,6,4.5,4.86
 |data4=7,8.25,4.25,7.25,4.75,4,3.5,5.57
 |data5=3.5,8.75,6,5.75,3.25,5,3.5,5.11
 |data6=5,4.5,4,6.75,4.25,6.25,3,4.82
 |data7=5.5,5.25,3,5,4.5,6,3,4.61
 |data8=4.5,9.5,5.25,2.5,3,4.25,3.25,4.61
 |data9=7,5,6.5,7.75,7.25,5.5,6.75,6.54
 |count=8
}}

result: 5.75 ,1.75 ,6.75 ,7.25 ,5.75 ,6.75 ,5 ,2.5 ,7.75

{{ChartDirect/SelectMulti
 |part=3
 |data1=6.25,,   ,5.75,3.75,6.75,3,5.5
 |data2=3,,1.75,   ,4,7,3.75,4.32
 |data3=5.75,3.75,   ,6.75,4.75,6,4.5,4.86
 |data4=7,8.25,4.25,7.25,4.75,4,3.5,5.57
 |data5=3.5,8.75,6,5.75,3.25,5,3.5,5.11
 |data6=5,4.5,4,6.75,4.25,6.25,3,4.82
 |data7=5.5,5.25,3,5,4.5,6,3,4.61
 |data8=4.5,9.5,5.25,2.5,3,4.25,3.25,4.61
 |data9=7,5,6.5,7.75,7.25,5.5,6.75,6.54
 |count=8
}}

result: ,1.75 , ,4.25 ,6 ,4 ,3 ,5.25 ,6.5

{{ChartDirect/SelectMulti
 |part=9
 |data1=6.25,,   ,5.75,3.75,6.75,3,5.5
 |data2=3,,1.75,   ,4,7,3.75,4.32
 |data3=5.75,3.75,   ,6.75,4.75,6,4.5,4.86
 |data4=7,8.25,4.25,7.25,4.75,4,3.5,5.57
 |data5=3.5,8.75,6,5.75,3.25,5,3.5,5.11
 |data6=5,4.5,4,6.75,4.25,6.25,3,4.82
 |data7=5.5,5.25,3,5,4.5,6,3,4.61
 |data8=4.5,9.5,5.25,2.5,3,4.25,3.25,4.61
 |data9=7,5,6.5,7.75,7.25,5.5,6.75,6.54
 |count=8
}}

result:

ChartDirect/SwapSub (only with swap)

[edit]
{{ChartDirect/SwapSub
|data=Alpha,Bravo,Charlie,Delta,Epsilon,Foxtrott,George,Honey,India,Juliette,Kappa,Lollipop,Master
}}

result: Alpha,Bravo,Charlie,Delta,Epsilon,Foxtrott,George,Honey,India,Juliette,Kappa,Lollipop,Master

{{ChartDirect/SwapSub
|data=,
}}

result:

{{ChartDirect/SwapSub
|data=,,,Delta,,,,,,,,,
}}

result: ,,,Delta,,,,,,,,,

{{ChartDirect/SwapSub
|data=
}}

result:

ChartDirect/ChartDefinition

[edit]
{{ChartDirect/ChartDefinition 
|chart= | definition= | type=
}}

result: Template bar.chart

{{ChartDirect/ChartDefinition 
}}

result: Template bar.chart

{{ChartDirect/ChartDefinition 
|chart=Template bar population by year.chart | definition=Template bar population by year.chart | type=
}}

result: Template bar population by year.chart

{{ChartDirect/ChartDefinition 
| definition=Template bar population by year.chart | type=
}}

result: Template bar population by year.chart

{{ChartDirect/ChartDefinition 
| chart= | definition=Template bar population by year.chart | type=
}}

result: Template bar population by year.chart

{{ChartDirect/ChartDefinition 
|chart= | definition= | type=line
}}

result: Template line.chart