Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8702829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:45:01+00:00 2026-06-13T02:45:01+00:00

I have the following D3 chart (use 12842311 as input): http://www.uscfstats.com/deltas After loading the

  • 0

I have the following D3 chart (use 12842311 as input): http://www.uscfstats.com/deltas

After loading the chart, click the grid button (only after loading). A grid will appear. The obvious problem is that the vertical lines are only on the top half of the chart.

This is because D3, as far as I know, only lets you specify an offset for the beginning of the tick mark, which is how I’m doing it, and then doesn’t let you specify an ending offset. I also think that you have to do it with tick marks because otherwise you don’t know the location of the ticks unless you do something complicated.

How can I get around this limitation and do a grid with vertical lines across the x-axis? It seems like it shouldn’t be difficult. Am I even going about the creation of a grid in the right way?

var xAxis = d3.svg.axis().orient("bottom").scale(x).ticks(15);

svg.append("g").attr("class","x axis").call(xAxis).attr("transform","translate(60, " + height + ")");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:45:02+00:00Added an answer on June 13, 2026 at 2:45 am

    The easiest way I could get this to work was to manually resize and translate the tick marks.

      svg.selectAll(".y line")
          .attr("x2", width);
    
      svg.selectAll(".x line")
          .attr("y2", height)
          .attr("transform", "translate(0," + (-y(0)) + ")"); 
    

    You can see a working example at http://jsfiddle.net/2y3er/2/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data similar to the following chart: http://developer.yahoo.com/yui/examples/charts/charts-seriescustomization_clean.html Only difference is that
Good day all I have the following question: I would like to use Chart
I have a graph created with MS Chart like the following picture. As you
I have, after some help ( MSChart - Forcing a line chart to draw
I have the following input file for R: car 1 car 2 car 3
I have to to draw a chart from the following json string: { d:{
I use Eclipse and I wanted to use gtkmm in it. I have following
I am learning Objective C I have the following trouble. If I use the
I have a PHP-page with a series of pie chart images (I use Google
I have created an extension of a chart control, and I have declared following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.