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 9162723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:16:46+00:00 2026-06-17T14:16:46+00:00

Using this as an example, how could I scale the graphic such that it’s

  • 0

Using this as an example, how could I scale the graphic such that it’s zoomed in more. I ask because I’m looking to only visualize data for the state of Texas, so I want to change the scaling in order to make it bigger.

Is it possible to do the scaling using a built-in d3.js function, or does one have to modify the the transform values (scale and/or translate) present in the JSON data?

  • 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-17T14:16:47+00:00Added an answer on June 17, 2026 at 2:16 pm

    d3.geo.path() uses d3.geo.albersUsa() projection unless you define a new one. As far as I can tell, d3.geo.albersUsa does not offer any options to change the center, though you could change the scale. To do so, you need to explicitly define your projection and apply it to geo path, like so:

    projection = d3.geo.albersUsa().scale(1500);  
    path = d3.geo.path().projection(projection);
    

    But you can use d3.geo.albers, which offers a center() function like most D3 projections:

    projection = d3.geo.albers().scale(2000).center([0,30]);
    path = d3.geo.path().projection(projection);
    

    That should give you an albers-projected map of the USA centered on Texas.

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

Sidebar

Related Questions

I'm trying to style a TreeView using this example and everything was working fine
I'm using this plugin: http://www.jeremymartin.name/projects.php?project=kwicks And my code follows this example: http://www.jeremymartin.name/examples/kwicks.php?example=7 I'm using
I have an array list of objects and I am using this example to
I'm using the apache POI to read Word documents. I'm using this example as
Just using this as an example... Here are the columns in my UserProfile table:
I have looked at this example using php and GD to piecewise-render a spiral
I'm using this simple node.js code example but I don't understand why FireBug doesn't
From this example http://www.senchafiddle.com/#dPZn0 This displays a first panel, then a second one... using
I'm following this example for creating a simple Web application using JAX-RS, MongoDB and
I used this example (http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/) to upload file from android device to server, it

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.