Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions pyLDAvis/js/ldavis.v3.0.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,13 @@ var LDAvis = function(to_select, data_or_file_name, color1, color2) {

// barchart axis adapted from http://bl.ocks.org/mbostock/1166403
var xAxis = d3.axisTop(x)
.tickSize(-barheight)
.tickSize(0)
.ticks(6);

chart.append("g")
.attr("x", "xaxis")
.call(xAxis);

// dynamically create the topic and lambda input forms at the top of the page:
function init_forms(topicID, lambdaID, visID) {

Expand Down Expand Up @@ -748,7 +752,7 @@ var LDAvis = function(to_select, data_or_file_name, color1, color2) {

// adapted from http://bl.ocks.org/mbostock/1166403
var xAxis = d3.axisTop(x)
.tickSize(-barheight)
.tickSize(0)
.ticks(6);

// New axis definition:
Expand Down Expand Up @@ -1068,7 +1072,7 @@ var LDAvis = function(to_select, data_or_file_name, color1, color2) {

// adapted from http://bl.ocks.org/mbostock/1166403
var xAxis = d3.axisTop(x)
.tickSize(-barheight)
.tickSize(0)
.ticks(6);

// redraw x-axis
Expand Down Expand Up @@ -1140,7 +1144,7 @@ var LDAvis = function(to_select, data_or_file_name, color1, color2) {

// adapted from http://bl.ocks.org/mbostock/1166403
var xAxis = d3.axisTop(x)
.tickSize(-barheight)
.tickSize(0)
.ticks(6);

// redraw x-axis
Expand Down