Skip to content

Instantly share code, notes, and snippets.

@yani-
Created June 25, 2017 09:28
Show Gist options
  • Save yani-/248fd660b61f3c34ca32e17bab8c74c1 to your computer and use it in GitHub Desktop.
Save yani-/248fd660b61f3c34ca32e17bab8c74c1 to your computer and use it in GitHub Desktop.
chartContainer
.append('g')
.attr('class', 'x axis')
.attr('transform', 'translate(0,' + height + ')')
.style('storke', '#000')
.call(d3.axisBottom(x));
chartContainer
.append('g')
.attr('class', 'y axis')
.call(d3.axisLeft(y))
.append('text')
.attr('fill', '#000')
.style('storke', '#000')
.attr('transform', 'rotate(-90)')
.attr('y', 6)
.attr('dy', '.71em')
.attr('text-anchor', 'end')
.text('Data meaning');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment