Comments (5)
Could you provide a specific example/use case? Out of the box, regl-scatterplot doesn't support gridlines but you can, for example, use a gridline image as the background for regl-scatterplot.
Checkout this example: https://github.com/flekschas/regl-scatterplot/blob/master/example/texture-background.js
You can, of course, render anything you like into a regl texture object and pass that to regl-scatterplot via the constructor (e.g., createScatterplot({ backgroundImage }}
) or via the set
function (e.g., set({ backgroundImage})
)
from regl-scatterplot.
Thank you for your suggestion.
I would like to draw and microscopically zoom a scatter plot of a million of points with gridlines, like as color_scatter and Accelerating with WebGL in Bokeh gallery and examples. (I regret to say, however, that Bokeh doesn't seem to achieve full performance of WebGL for plotting points as of now.)
from regl-scatterplot.
For the gridlines, I think creating the background image yourself is really the best option. I am also happy to merge that feature if you come up with a flexible solution.
The only thing we might have to add is an option to re-render the background image upon zooming in such that the resolution can be updated. Otherwise, the gridlines would become gigantic if you zoom in a lot.
from regl-scatterplot.
Not sure if this is still relevant but with the recent changes related to #29 is fairly simple to draw a grid using d3-axes.
The only addition to examples/axes.js is that you need to insert the following two lines of code at line 51:
xAxis.tickSizeInner(-height);
yAxis.tickSizeInner(-width);
It'll look as follows:
from regl-scatterplot.
If this is not sufficient please reopen the ticket.
from regl-scatterplot.
Related Issues (20)
- 'focus' Typo in types HOT 1
- Integrate with Angular HOT 3
- Tooltips for each point in the plot HOT 4
- Flikering when reload the scatter plot HOT 1
- feat: Ability to draw contours? HOT 7
- feat: Ability to pass `scaleBounds` to camera HOT 2
- Immediate redraw HOT 4
- Feature request: sort values HOT 2
- Center points and zoom to fit the viewport HOT 3
- Displaying colors instead of dots after hiding and showing points multiple times. HOT 6
- Control visibility of chart points when draw them HOT 8
- lassoInitiator not works HOT 8
- Constant point size when zooming HOT 7
- Troubles with Connecting Points HOT 4
- One to Many Connections HOT 3
- Support for updating point metadata without recreating coordinate index HOT 3
- Point circles look malformed HOT 1
- Can the canvas be re-used to draw other objects ? HOT 2
- spatialIndex is not a gettable Property HOT 1
- Adding ctrl and cmd in the keymap with same action (merge) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regl-scatterplot.