An open API service indexing awesome lists of open source software.

https://github.com/rdlauer/simple_chart_app


https://github.com/rdlauer/simple_chart_app

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Simple chart block

This example blocks shows a bar chart of data from a table.

The code shows:

- How to use the Chart.js external library.

- How to store block-related data using `globalConfig` and `Synced` UI components.

## How to run this block

1. Create a new base using the
[Sales CRM template](https://airtable.com/templates/sales-and-customers/expvjTzYAZareV1pt/sales-crm).

2. Create a new block in your new base (see
[Create a new block](https://airtable.com/developers/blocks/guides/hello-world-tutorial#create-a-new-block)),
selecting "Simple chart" as your template.

3. From the root of your new block, run `block run`.

## See the block running

![Block updating chart as the user changes data](media/block.gif)