Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

D3.js geoBertin1953() Function

  • Last Updated : 23 Sep, 2020

The geoBertin1953() function in d3.js is used to draw the Jacques Bertin’s 1953 projection. It makes the Baker Bertin’s 1953 projection from given geo JSON data.


Hey geek! The constant emerging technologies in the world of web development always keeps the excitement for this subject through the roof. But before you tackle the big projects, we suggest you start by learning the basics. Kickstart your web development journey by learning JS concepts with our JavaScript Course. Now at it's lowest price ever!


Parameters: This method does not accept any parameters.

Return value: This method returns the Bertin1953 projection.

Example: The following example makes the Bertin’s 1953 projection of Africa.


<!DOCTYPE html> 
<html lang="en"
    <meta charset="UTF-8" /> 
    <meta name="viewport"
    <script src=
    <script src=
    <div style="width:400px; height:300px;"
        <svg width="600" height="300"
        var svg ="svg"),
            width = +svg.attr("width"),
            height = +svg.attr("height");
        // Bertin1953 projection
        var gfg = d3.geoBertin1953()
            .scale(width / 1.5 / Math.PI)
            .translate([width / 2, height / 2])
        // Loading the json data 
            + "janasayantan/datageojson/master/"
            + "geoAfrica.json", 
                // Draw the map
                    .attr("fill", "black")
                    .attr("d", d3.geoPath()
                    .style("stroke", "#ffff")


Bertin 1953 Projection

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!