User Guide Getting Started Help Center Documentation Community Training
Looker Blocks

Looker Blocks are building blocks—pre-built pieces of LookML that you can leverage to accelerate your analytics. Reuse the work others have already done rather than starting from scratch, then customize the blocks to your exact specifications. From optimized SQL patterns to fully built-out data models, Looker Blocks can be used as a starting point for quick and flexible data modeling in Looker.

Available Blocks

There are many Looker Blocks to choose from. To find out what Blocks are currently available, check out the Blocks Directory and click the desired category. Or, click the name of a category below to see the current selection of blocks for that category:

When you find a block that interests you on those pages, click the block’s description to see usage instructions specific to that Block.

Data Blocks

Blocks typically include a data model and then you provide the data. Data Blocks are a special type of Looker Block because they also provide the dataset. Looker Data Blocks include public data sources, including:

To see the full list of currently available data blocks, see the Data Block category of the Blocks Directory.

Viz Blocks

Looker includes a variety of native visualization types. If, however, you have charting needs that are not covered by Looker’s native visualization types, you can also add your own custom visualization types.

Viz Blocks are pre-built JavaScript visualization types that are hosted by Looker. You can add the Viz Blocks to your Looker instance, then they will act like any of Looker’s native visualization types: They appear on the visualization menu bar, and they include core functionality such as drilling, downloading, embedding, and scheduling.

To learn more about a Viz Block, select the visualization type in the Viz Block category of the Blocks Directory, then click See the Code and navigate to the Viz Block’s READ.ME file. The READ.ME file shows an example of the visualization and gives more information about the Viz Block. For some visualizations the READ.ME file also provides a URL and instructions for adding the Viz Block.

To add the visualization type to your instance, see the instructions in the READ.ME file (if any) and the information on our Visualizations documentation page.

Adding a Block to Your Model

Directions for adding a Block to your model can be found in each Block’s respective entry in the Blocks Directory. And of course, feel free to reach out to a Looker Analyst for assistance.

The ease of using a Block will vary, depending on the degree to which your database schema might be standardized:

If you’re new to Looker, your Looker Analyst can help you get the most from these models.

Some things to keep in mind: