🎤 Builder Talk: The Story Behind Lady Gaga’s Digital Experience – Register now

Document chart

Display a chart giving you a rough count of your various document types.

Warning

This plugin only works with an older version of Sanity Studio (v2), which is deprecated.

Learn how to migrate to the new Studio v3 →

Sanity Dashboard Widget: Document Chart

A widget for the Sanity Content Studio Dashboard which displays a barchart giving a count of your doument types

Disclaimer: This widget is intended as proof of concept/example for building your own Sanity dashboard plugins. It's so feature-incomplete that there are more empty checkboxes on this repo than there are neurons in a cephalopd brain 🦑

Usage

cd <my-studio-folder>
sanity install dashboard-widget-document-chart

Then add something like to your dashboardConfig.js file

{
  name: 'document-chart',
  options: {types: ['post', 'author', 'sanity.imageAsset']},
  layout: {width: 'full'}
}

Swap those types for whichever types you have in your Studio, and want to render in this chart.

There's more on how to configure your dashboard at https://www.sanity.io/docs/dashboard#how-to-configure-the-dashboard-5c1617e3633d

v2 install command (deprecated)

sanity install dashboard-widget-document-chart

Other plugins by author

Cats widget

Official(made by Sanity team)

Random cats for obvious reasons

Go to Cats widget

LaTex input

Official(made by Sanity team)

Use the LaTex format to describe math and other complicated typography.

Go to LaTex input