Comments (10)
Currently, the chart shows the timestamps on the x-axis that are present in the data. In order to be able to set the x-axis to always show 24 hours, I would need to know how to pass missing data to C3. Do you know how to do this?
from bird-tracking.
The default C3 tooltip is shown. If we leave this on, I think it should have the same style as the heatmap tooltips.
from bird-tracking.
To answer your question, I'd have to see the current chart: I don't see it in the live application, is it already there?
from bird-tracking.
pushed!
from bird-tracking.
To explain it with code:
The data format is something like:
{
columns: [
["x", 1, 2, 3, 4],
["distance", 20, 10, 4, 23]
]
}
Currently, if one or more timestamps would be missing, the arrays would just have less then 25 values. If we would try to fix the x-axis, I think you need to make sure you always provide a column array with "x" as first element and next elements ranging from 0 to 23. But say you don't have data for 0h, then what do you put on that position in the "distances" array? null
?
from bird-tracking.
Yep, null
works. Or, you can set axis type to timeseries
: http://c3js.org/samples/timeseries.html, but then you need to pass a date.
from bird-tracking.
Ok, I'll make sure the first array in the columns
property always contains 25 elements ('x', and 0 to 23) and the next column contains null
if there is no data for a given hour.
from bird-tracking.
fixed here: bbef7b7
The chart does not connect dots if there is no data in between. (see for example bird Jurgen, on February 3, 2014). Exactly what we wanted.
from bird-tracking.
When year or month is selected, show some explanatory text in the div
This could be done with the empty
tag from C3 but then the chart must be initialised immediately (and never be removed completely) and the user will always see the axes.
The other option is to just insert text in the div by default, and show/hide that as appropriate.
from bird-tracking.
Implemented the text in 25cf33a.
Text can be changed if preferred.
from bird-tracking.
Related Issues (20)
- O_WESTERSCHELDE does not have `import-marked-outlier` HOT 1
- Update term definitions by pulling from Movebank Attribute Dictionary + use `skos:exactMatch` HOT 1
- gz data files on Zenodo HOT 1
- Update ref data O_AMELAND HOT 3
- Update ref data O_SCHIERMONNIKOOG
- Update ref data O_BALGZAND HOT 2
- New DOI was assigned for MEDGULL_ANTWERPEN by GBIF HOT 1
- Register datasets with OBIS (in addition to GBIF)? HOT 23
- Create study for UGent HG trackers `HG_JUVENILE` HOT 4
- Sync tags for `HG_JUVENILE` HOT 2
- Add animal/tag metadata for `HG_JUVENILE`
- Republish to Movebank and Zenodo to incorporate changes
- Use `transmute()` rather than `mutate()` in ornitela/interrex script HOT 1
- Create `BE_GRAZERS` study
- Make use of new term `deploy-on measurements` HOT 1
- Make use of new term `tag-firmware`
- Parse `deployment-comments` into `study-site`, `deploy-on-measurements` and `deployment-comments` HOT 1
- Republish to IPT
- Discrepancy in old vs new data in LBBG_JUVENILE HOT 2
- Add 2020-2023 data for 5501123 (tracker 5542)
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 bird-tracking.