Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search


  • Content Count

  • Joined

  • Last visited

  1. Hello, My website is nearly complete. I've added several customizations using CSS and JavaScript to make the site work nicely on a desktop. However, when viewing the site on mobile the layout becomes totally scrambled. I'm wondering: Is there a way to force a site to a desktop view even when using mobile? I've tried disabling the mobile layout in my template but I still encounter the same issues. The template I'm using is Native. Any advice? Thanks in advance.
  2. Thanks, @humxahafeex. One last question: You say that I can reference the "bar-data.csv" file in my code, but where do I host that CSV file on Squarespace? Is there a way to do it, or is the best way to host it on a public GitHub repo and link to it from there? Thanks again.
  3. Hi @humxahafeex. Thanks for taking the time to answer my question. I am using the steps found on this blog to try to upload the code and data. I don't have my own D3 written yet as I'm simply trying to test whether or not this can be done using Squarespace. The bubble example the blogger links to uses the following code: <div class="mydiv_1"> <style> .bubbles { stroke-width: 1px; stroke: black; opacity: .8 } .bubbles:hover { stroke: black; } </style> <script> // set the dimensions and margins of the graph var margin = {top: 40, right: 150, bottom: 60, left: 30}, width = 500 - margin.left - margin.right, height = 420 - margin.top - margin.bottom; // append the svg object to the body of the page var svg = d3.select(".mydiv_1") .append("svg") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")"); //Read the data d3.csv("https://raw.githubusercontent.com/holtzy/data_to_viz/master/Example_dataset/4_ThreeNum.csv", function(data) { Note that he/she links to the CSV file by using a GitHub link. A few questions related to this: Is this how you would go about it? If not, why not? Do you know if the GitHub repo being linked to has to be public, or can it be private to work? Thanks again for your help!
  4. Hello, I'm attempting to add a D3 map visualization to my site via a code block. The map uses a CSV dataset to display its values. I'm unsure of how to link to/host the underlying CSV data file that the visualization should use. I believe this is typically achieved using a CDN, but it's not clear to me how to do this using SS. Any suggestions for how to tackle this? Thank you in advance.
  • Create New...