Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix simplest-way-to-start example & update README #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ quadfeather --files ../some-path-to/your-data.csv --tile_size 50000 --destinatio
npm run dev
```

and opening `http://localhost:3345/index-simplest-way-to-start.html` in your browser.
and opening `http://localhost:3344/index-simplest-way-to-start.html` in your browser.

To edit the visualization, or to troubleshoot, look at the file `index-simplest-way-to-start.html`, where you should find a bare-bones implementation of deepscatter.

Explore `index.html`, and render it at `http://localhost:3345/index.html`, for a more advanced example.
Explore `index.html`, and render it at `http://localhost:3344/index.html`, for a more advanced example.

Note: Ideally, in a future release you'll be able to create these specs in away that doesn't require coding JSON directly.

Expand Down
4 changes: 2 additions & 2 deletions index-simplest-way-to-start.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</body>

<script type="module">
import Scatterplot from './src/deepscatter';
import { Scatterplot } from './src/scatterplot';

const prefs = {
source_url: '/tiles', // the output of the quadfeather tiling engine
Expand All @@ -21,7 +21,7 @@
zoom_balance: 0.7, // Rate at which points increase size. https://observablehq.com/@bmschmidt/zoom-strategies-for-huge-scatterplots-with-three-js
point_size: 5, // Default point size before application of size scaling
background_color: '#000000',
click_function: 'console.log(JSON.stringify(datum, undefined, 2))',
click_function: (datum) => console.log({ ...datum }), // Overrides default click for easy customization
muayKenny marked this conversation as resolved.
Show resolved Hide resolved

// encoding API based roughly on Vega Lite: https://vega.github.io/vega-lite/docs/encoding.html
encoding: {
Expand Down