-
D3是完全模块的,有很多小的库组成,可以单独使用 ,也可以 一起使用,也可以自定义build
scaleLinear用于将数据转换成值
var scaleLinear = d3.scaleLinear().domain([]).range([]).clamp(true)
domain = scaleLinear.invert(range)
…
-
D3的MAP创建的map比那些开箱即用的要复杂和独特。
主要的原因在于它使用了专门的库googlemap,这个生态还带有其它的功能例如街景;还有就是想做一些比较酷的地图,可能要使用基于webGL的图库(mapboxGL), 但是如果没有找到比较酷的特性的话,D3则是最好的选择。
因为GL的东西你要学习语法还有layer的概念 等等
地理数据:
格式一般都是CV或者GEOJSON…
-
I've been coaching d3.js with one of the West London students and I feel that it could be a good advanced tutorial to go beyond the JavaScript basics. Here's a suggested lesson plan:
# Lesson 1 - D…
-
Hey! Thanks for the great work with the book - making my way through it now. Similar to Issue #34 , a change needs to be made when making a json request.
On line 29, instead of
`d3.json("us-stat…
-
![scast_flow](https://github.com/user-attachments/assets/b740c129-fe61-475a-9f27-234db6b6381e)
![scast_uml](https://github.com/user-attachments/assets/0185738e-0815-4c92-8770-e9ff2b0da1d5)
![scast_d…
-
This only gets max value but we should ideally be getting both the min and max value of the array.
` if (config.essential.xDomain === "auto") {
x.domain([0, d3.max(series, (d) => d3.max(d, (d…
-
```py
from __future__ import annotations
from decimal import Decimal
import typing
from sqlalchemy import Numeric
from sqlalchemy.orm import DeclarativeBase
from sqlalchemy.orm import Mapped…
-
Hi observableHQ plot team,
It seems like `Plot.tip` does not work with the JSDom renderer.
For example, the following code
(sample code)
```import {readFile} from "node:fs/promises";
impo…
-
In actuality, the people does not move in graphs, only the "first X people on display" is changing.
A better solution is mini dots without groups, & enlarge / shrink the dots to interact able element…
-
### Solution to issue cannot be found in the documentation.
- [x] I checked the documentation.
### Issue
Thanks for re-enabling windows for dftd3! This more of a public service announcement than a …