Closed peterdesmet closed 9 years ago
There are a couple of issues here:
year-chart
right? I'm currently implementing the maximum distance from home, as we did in the first release.release-2
running locally. What should I see? With months
as subdomain, do you mean like example 6 here? That might be an option (ask Eric if this makes sense)... otherwise, go for days without month labels and rely on labeling the axis Months
.Seeing it live, I would:
#dddddd
, which gives a bit more contrast with the gray background.As requested in #27 the metric is now distance travelled instead of distance from catch location.
@peterdesmet what shall we display when a bird has no data? Currently, no chart is being rendered. If a chart was present from a previous bird, it is destroyed. We could show a message No tracking data for this bird yet
.
Width of the container is now detected (see 859795c). The calendar is not really stretched, but the number of domains rendered is based on the width of the container. The formula is nr = Math.floor(svg.width / 88)
where 88
is empirically defined, but dependent on the cell size set (currently: 14). We cannot define this value correctly because: a month with 30 days starting on sunday will have 6 columns (96 pixels) while a month starting on monday will have 5 columns (80 pixels) and it is very hard to determine all that in advance. So I'm using the average, and this seems to work fine. Note that the width of the svg cannot take any number of pixels. There is a limited number of allowed widths. For all of these, the algorithm works fine. Sometimes it leaves some space, but never enough to allow for an additional domain to be rendered.
Haven't checked it yet, but your formula seems to be a good solution.
Load a calendar heatmap in
year-chart
with data on the selected bird. The calendar is similar to a Github calendar and should/could show the distance from catch location, as that gives an indication if the bird is breeding or migrating.Tasks