Skip to content

Instantly share code, notes, and snippets.

@jhb
jhb / README.md
Last active October 5, 2017 11:56
d3 time scale slightly off

d3 time axis slightly off

The problem on this diagram is tha the x axis is slightly off. Instead of starting on Tuesday 02 (Di 02) the whole axis is slightly "skewed" to the left, e.g. about 13px. On the very right of the axis you find the same extra 13 px of data for Fr 06, which shouldn't be there:

@jhb
jhb / working_examples_for_the_graph_databases_book
Last active December 31, 2018 08:37
Working examples for the 'Graph Databases' book
= Working examples for the 'Graph Databases' book
image::http://assets.neo4j.org/img/books/graphdatabases_thumb.gif["frontpage thumbnail",align="left"]
The examples in the 'Graph Databases' book don't work out of the box. I've modified them, so that they do work (for chapter 3, that is).
This is a graphgist version of my https://baach.de/Members/jhb/working-examples-for-the-graph-databases-book/[blog post].
If you click one of the green play buttons in the examples below, they will show in this console. Usually the code formatting is messed up, so it might be a bit ugly.
@jhb
jhb / README.md
Created July 9, 2013 09:12
Graph with labeled edges

A graph with force layout (using d3.js) and labels on edges, autorotation of those labels and arrowheads