From df36f070808fa628694f6a9a446657cd004cc893 Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Sat, 23 Jun 2018 17:55:03 -0400 Subject: [PATCH] Made scale labels nicer for the audio feature graphs --- spotifyvis/templates/spotifyvis/user_data.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotifyvis/templates/spotifyvis/user_data.html b/spotifyvis/templates/spotifyvis/user_data.html index 2eebd3b..a1864cd 100644 --- a/spotifyvis/templates/spotifyvis/user_data.html +++ b/spotifyvis/templates/spotifyvis/user_data.html @@ -74,7 +74,7 @@ counts: featureData[dataRanges[i]] }); } - vScale.domain([0, d3.max(dataSet)]); + vScale.domain([0, d3.max(dataSet)]).nice(); let hScale = d3.scaleBand().domain(dataRanges).rangeRound([0, width]).padding(0.5);