How to draw a chess board in D3?

前端 未结 2 1228
轮回少年
轮回少年 2020-12-18 17:10

I would like to draw a chess board in D3:

\"Initial

I would be satisfied with just bein

2条回答
  •  佛祖请我去吃肉
    2020-12-18 17:39

    Just for public knowledge I made a mini plugin for plot a chessboard via d3.

    You can see it in https://github.com/jbkunst/d3-chessboard.

    How it works:

        var sel = d3.select("#chess-container");
        var board = d3chessboard();
        sel.call(board);
    

提交回复
热议问题