Using Base Types

In the /layers/base-types folder of your Git repository, you will find a set of Layer files (ending in .wld) that contain figure and mapping sections. These are base types, White Label Data’s term for layers that are good starting points for various chart and visualizations. You add layers on top of these existing templates to get started easily and to ensure consistency between charts of the same type. You can think of them as templates that can get re-used. Start with the built-in templates to get going quickly and make your own over time.

Getting started with a Base Type

In the <config> section of your layer file, indicate that your layer depends on a base type layer.

{
    "depends_on" : ["bar-template"]
}

Built-in Templates

Here are some of the base type templates in White Label Data:

  1. bar-template - A Plotly bar chart
  2. line-template - A Plotly line chart
  3. mapbox-template - A Mapbox Map using GeoJSON
  4. map-template - A Plotly scattermap plot
  5. table-template - A native White Label Data table
  6. choropleth-template - A Mapbox choropleth map of the US
  7. sv-indicator-template - A single value indicator showing change
  8. custom-template - A template for using custom HTML visualizations

Mapping Attributes

Then in your mapping section, map all required attributes. See the Mapping Rules section here.