Skip to content
Discussion options

You must be logged in to vote

As of v0.7.0, the "WebComponentsReady" event no longer fires, as we no longer dist the webcomponentsjs polyfill. Instead use the browser-native "DOMContentLoaded" if you need to initialize perspective from a <script> tag.

window.addEventListener("DOMContentLoaded", async function () {
    // ..
});

There is also another JS regression in your init callback I believe

const metric_values_view_raw = websocket.open_view('data_source_metric_values_raw');

open_view() was similarly removed, you should use use open_table() and table.view() on the remote table. If you need a big-picture guide to the latest API, the python example projects in the repo's examples/ dir are updated with these breaking …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@pgagarinov
Comment options

Answer selected by pgagarinov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants