Comments (10)
Started some tests with canvas
from nivo.
Now both BarCanvas
and HeatMapCanvas
support tooltips.
from nivo.
Rendering to <canvas>
becomes very important as the data points and SVG/DOM nodes increase.
from nivo.
These look great. Will they also, eventually, be interactive and supported by the API? I know this is still really early. I'm just curious how you see them progressing.
Let me know if you'd like some help with canvas in nivo-api
. I did some work a few years ago using node-canvas to return JPEGs, PNGs and data URIs.
Also, I noticed the images are a blurry on my retina display. I suspect the code needs to scale based on window.devicePixelRatio
. This article gives more info about the required changes.
from nivo.
I think for basic shapes, interactivity will not be a problem but for things like line charts, stream graphs or sankey (links), that's another story :/
I though of something like node-canvas for the API, even considered headless chrome (the tooling around it seems quite active), but the problem with both is it requires a more complex setup (cario or chrome install), but it could be an opt-in. If you want to try something, you're more than welcome :)
On my retina display it's also blurry, thank you for the link, already used it when playing with pixi.js.
from nivo.
Added property pixelRatio
which fallback on window.devicePixelRatio
, all those changes are available in [email protected]
and available on the demo.
from nivo.
@plouc Awesome! This looks great. Nice, quick, work
from nivo.
New chart supported:
from nivo.
http://nivo.rocks/#/components?q=canvas
from nivo.
I'm closing this issue as there is now canvas support for few charts => http://nivo/rocks/#/components?filter=Canvas
from nivo.
Related Issues (20)
- D3 dependencies vulnerability HOT 13
- extra space in long bar charts HOT 1
- Access Toogle Serie From Custom Layers HOT 1
- @nivo/line, @nivo/bar (v0.83.0): TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) HOT 2
- Its very useful to provide tooltip for axis points also HOT 1
- Its very usefull to provide tooltip for axis points also. HOT 1
- Meteor dynamic module cant create d3-interpolate with nivo/core HOT 2
- Type mismatch: ResponsiveBar=> label HOT 1
- MouseEnter and MouseLeave callbacks aren't called in BarCanvas HOT 2
- Toggle off lines on the chart based on the data. HOT 2
- Would like to set a custom color for each node in ResponsiveCirclePacking HOT 1
- Website crash on grid/axes details opening HOT 1
- Website Crash opening line chart axis (left,right,bottom) HOT 1
- Clicking on axisTop, axisRight is opening up a blank page. HOT 1
- Programmatically set the active datapoint on a LineChart and BarChart HOT 1
- bar custom color using data label nivo HOT 1
- Custom tooltip component does not take zIndex prop from chart theme HOT 5
- Page break when expanding on tool tip container HOT 1
- How can I make a custom grid color according to a specific range of data value? HOT 2
- Get exact clicked data point in chart HOT 3
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 nivo.