Files
Andrew Stein 8c6047df2f
Build Status / lint_and_docs (20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / build_js (20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / build_python (aarch64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, macos-13, 3.9) (push) Has been cancelled
Build Status / build_python (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, macos-13, 3.9) (push) Has been cancelled
Build Status / build_python (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, windows-2022, 3.9) (push) Has been cancelled
Build Status / build_python (x86_64, pagmo2/manylinux228_x86_64_with_deps, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / build_and_test_rust (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, ubuntu-22.04) (push) Has been cancelled
Build Status / build_and_test_rust (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, windows-2022) (push) Has been cancelled
Build Status / build_emscripten_wheel (x86_64, 20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / build_and_test_jupyterlab (aarch64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, macos-13, 3.9) (push) Has been cancelled
Build Status / build_and_test_jupyterlab (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, macos-13, 3.9) (push) Has been cancelled
Build Status / build_and_test_jupyterlab (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / build_and_test_jupyterlab (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, windows-2022, 3.9) (push) Has been cancelled
Build Status / test_js (20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / test_python (aarch64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, macos-14, 3.9) (push) Has been cancelled
Build Status / test_python (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, macos-13, 3.9) (push) Has been cancelled
Build Status / test_python (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / test_python (x86_64, ${{ startsWith(github.ref, 'refs/tags/v') }}, 20.x, windows-2022, 3.9) (push) Has been cancelled
Build Status / test_python_sdist (x86_64, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / benchmark_python (x86_64, 20.x, ubuntu-22.04, 3.9) (push) Has been cancelled
Build Status / benchmark_js (20.x, ubuntu-22.04) (push) Has been cancelled
Build Status / publish (ubuntu-22.04) (push) Has been cancelled
v3.3.2
Signed-off-by: Andrew Stein <steinlink@gmail.com>
2025-02-01 18:19:04 -05:00

62 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<script type="module" src="http://localhost:8080/node_modules/@finos/perspective-viewer-datagrid/dist/cdn/perspective-viewer-datagrid.js"></script>
<script type="module" src="http://localhost:8080/node_modules/@finos/perspective-viewer-d3fc/dist/cdn/perspective-viewer-d3fc.js"></script>
<link rel="stylesheet" crossorigin="anonymous" href="/node_modules/@finos/perspective-viewer/dist/css/themes.css" />
<style>
perspective-viewer {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<perspective-viewer id="viewer" ,> </perspective-viewer>
<script type="module">
import "/node_modules/@finos/perspective-viewer/dist/cdn/perspective-viewer.js";
import perspective from "/node_modules/@finos/perspective/dist/cdn/perspective.js";
const viewer = document.getElementById("viewer");
// Create a client that expects a Perspective server to accept
// Websocket connections at the specified URL.
const websocket = await perspective.websocket("ws://localhost:8080/websocket");
/* This shows Perspective running in "server mode": the `table`
variable is a proxy for the `Table` we created on the server.
All operations that are possible through the Javascript API are
possible on the Python API as well, thus calling `view()`,
`schema()`, `update()` etc on `const table` will pass those
operations to the Python `Table`, execute the commands,
and return the result back to Javascript.
*/
const table = await websocket.open_table("data_source_one");
// Load this in the `<perspective-viewer>`.
viewer.load(table);
viewer.restore({
plugin: "X/Y Scatter",
aggregates: {
high: "avg",
low: "avg",
},
columns: ["high", "low"],
group_by: ["client"],
split_by: ["name"],
});
viewer.toggleConfig();
</script>
</body>
</html>