Comments (3)
The context listens for arrow key events to control the focused time. See context.js.
I think if you want to fix this, you'll either need a way to disable keyboard controls on the context, or you'll need to put the cubism charts inside a focusable element (e.g., <div tabIndex="1">
) and put the input fields outside the focusable element. In the latter case, Cubism would also need to detect that it's inside a focusable element and put the key listeners there rather than on the window. I implemented something similar to Polymaps a few years ago; see focusableParent.
from cubism.
This would disable the key handler:
d3.select(window).on("keydown.context-1", null);
from cubism.
Wouldn't it be pretty easy to make the key binding optional in a given context? There are lots of other options, seems like one more wouldn't be a big deal. Grabbing left/right for the whole window seems like something a lot of people might not want...
from cubism.
Related Issues (20)
- Still maintained? HOT 14
- Datetime synchronization with data HOT 1
- Rule disappears HOT 1
- Docs for beginners, or alternative library? HOT 1
- d3.time still work for d3.v4? HOT 1
- possible to show a line graph instead?
- How to start the examples? The readme does not explain HOT 2
- How get data from server
- A D3V5 & ES6 port of cubism HOT 3
- ism es
- serverDelay() does not respect delays where data is from prior day
- Dynamic extent? HOT 1
- suport InfluxDB? HOT 14
- Is the any plan to integrate Cubism.js with Grafana? HOT 1
- Wiki links to API reference broken HOT 1
- How to start to use Cubism HOT 1
- horizon doesn't draw data after a stop and start
- horizon.remove does not unbind / remove listeners / data fetch
- Default extent & 3-sigma HOT 1
- Color cycling in horizon graphs
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 cubism.