User:Aiow/vega

From AIOWiki
Jump to navigation Jump to search

Picture

called with the template

called through Template:Graph test Syntax error

called from <graph> tags

called with #tag

Syntax error

Notes

  • The GraphSandbox can not have trailing commas on the last item in an object or array (which follows the json spec) yet seem to work fine elsewhere.
  • To have dynamic variables {{#tag:graph| is needed instead of <graph>.
  • When called via {{#tag:graph| remember to keep brackets separated with a space } } and use unicode literals or mediawiki templates for templates {"template": "\u007b{dataum.property {{!}} function}\u007d"}; else it will completely break the graph and you will be left stumped as to why it is no longer working...
  • Template:Infobox_Albums/album_ratings is the dpl surrogate template used to generate the data for the graph.