Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restored x-axis scale labels for term bars #200

Merged
merged 1 commit into from Mar 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions pyLDAvis/js/ldavis.v3.0.0.js
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