Earlier quoted context omitted.
If you're familiar with Plotly Express in Python, this is like a Javascript API with similar feel. It's a lot less verbose than the equivalent raw Plotly.js code.
Got it, I had assumed there was an equivalent Plotly express API in JS as there is in Python. Thanks!
Observable Plot
51–56 of 56 posts
Re: Observable Plot
#52As soon as I saw this, I thought: 'how is this different from vega lite'. An answer is here: https://observablehq.com/@observablehq/plot-vega-lite It'll be very interesting to see this develop. My initial reaction, as a vega-lite user is I'm not sure it's worth learning the new API immediately. Having said that, I do find the idea of writing transforms in javascript compelling, and I can see there may be some situati…
That was my reaction. It seems very similar (which makes sense, they're all using grammar of graphics style). Vega Lite is very close to R's ggplot2, so we use it for our online science visualizations. The built in downloading svg/pngs built in is pretty awesome. Vega-Lite it gets us 90% of the way there easily, the remaining 10% is always a struggle. Its well documented but sometimes lacks examples (In a side by sid…
I'd be interested in hearing more about your experience here. While I love the grammar of vega-lite (largely via altair), I've definitely run into trouble with many points. Is your work in this area available somewhere? Also, is this for Vitessce?
I think a lot of the performance issues I've come across is based on from copying data between python and the browser. For example, with a million cells you've got at least 5 floats per cell + json structure shipped to the browser. Plus this data tends to stick around in the browser. I'm bullish on approaches like moving data more quickly (possibly even sharing memory, if it isn't a real browser) via Arrow and doing aggregations on the server side with tools like altair-transform. But it's still early days for these.
Re: Observable Plot
#53Does Observable Plot resolve those issues or do we need still to be careful integrating it into a React environment?
[1] https://medium.com/capital-one-tech/a-comparison-of-data-vis...
Re: Observable Plot
#54Are there Typescript definitions? Bit of a JS/TS noob, maybe it’s obvious, but I couldn’t find any.
Re: Observable Plot
#55Awesome. Does it require access to the document/window or it can be used in React?
Ok, I see it does use document since there is d3.create() is under the hood.