Plantilla:Chart

De Wowpedia
Saltar a: navegación, buscar

This template is a gateway to the Google Charts API.

Options[editar código]

  • type is the chart type.
  • data is the chart data.
  • width is chart width.
  • height is the chart height.
  • legend is the chl value.
  • link is the page the chart will link to.
  • colors is a list of the chart colors.
  • options are options to pass directly to the api, for example "chf=bg,s,000033".
  • float allows to define the image's alignment.

Example[editar código]

{{Chart
 | type = p3
 | data = t:60,40
 | width = 250
 | height = 100
 | legend = Hello|World
 | colors = 000033,003300
 | link = Template:Chart
}}

Results in:

<imagelink>http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World&chf=bg,s,333333&chco=000033,003300|Template:Chart</imagelink>

Notes[editar código]

You must use <nowiki>|</nowiki>, {{!}} will NOT work.