Extension:Graph/Demo/MapTemplate

From MediaWiki.org
Jump to: navigation, search


params:

  1. source data (default = {{#invoke:Graph:Utils|parseCsv|Extension:Graph/Demo/RawData:PopulationByCountryHistoric-csv|2010}})
    The data source must contain two columns: 'id' and 'v'

Optional params:

  • type: linear, log, pow, sqrt, quantile, quantize, or threshold
  • colors: list of colors, e.g. ["#F2F2AB","#F1E9A4","#F0E09D",...]
  • width (1 by default)
  • height (1 by default)
  • scale (100 by default)