Skip to content

Commit

Permalink
update example install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatesh-sivaraman committed May 24, 2024
1 parent 8431b88 commit 6d6b129
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 28 deletions.
15 changes: 15 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Counterpoint Examples

Try running these examples locally by cloning the Counterpoint repository. To install the dependencies for the Svelte-based examples, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install the dependencies for the specific example and start the dev server:

```bash
cd examples/<example_name>
npm install
npm run dev
```
11 changes: 0 additions & 11 deletions examples/citations/README.md

This file was deleted.

10 changes: 9 additions & 1 deletion examples/dynamic_grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ This example demonstrates how to use the `StageManager` class to orchestrate mar

## Setup

To run this example locally, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install example dependencies and start the dev server:

```bash
cd tests/dynamic_grid
cd examples/dynamic_grid
npm install
npm run dev
```
10 changes: 9 additions & 1 deletion examples/interactive_boxes/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Scatterplot Example
# Interactive Boxes Example

This example shows how to use a `PositionMap` to quickly find marks under the
user's pointer. In the demo, you can click and drag nodes to move them around,
and the node appearance animates to show hover and drag states.

## Setup

To run this example locally, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install example dependencies and start the dev server:

```bash
cd examples/interactive_boxes
npm install
Expand Down
8 changes: 7 additions & 1 deletion examples/network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ This example demonstrates a simple example of creating a network visualization u

## Setup

To run this example locally:
To run this example locally, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install example dependencies and start the dev server:

```bash
cd examples/network
Expand Down
11 changes: 0 additions & 11 deletions examples/network_website_header/README.md

This file was deleted.

10 changes: 9 additions & 1 deletion examples/regl_dots/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ This example demonstrates how to use REGL to create an accelerated scatter plot

## Setup

To run this example locally, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install example dependencies and start the dev server:

```bash
cd tests/regl_dots
cd examples/regl_dots
npm install
npm run dev
```
10 changes: 9 additions & 1 deletion examples/scatterplot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ This example demonstrates using basic animations for marks with `x`, `y`, and `c

## Setup

To run this example locally, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install example dependencies and start the dev server:

```bash
cd tests/scatterplot
cd examples/scatterplot
npm install
npm run dev
```
10 changes: 9 additions & 1 deletion examples/zoomable_scatter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ This example demonstrates adding zoom and pan functionalities to a scatterplot u

## Setup

To run this example locally, first install the local Counterpoint version:

```bash
cd counterpoint && npm install && cd ..
```

Then install example dependencies and start the dev server:

```bash
cd tests/zoomable_scatter
cd examples/zoomable_scatter
npm install
npm run dev
```

0 comments on commit 6d6b129

Please sign in to comment.