3.9 KiB
3.9 KiB
id, title, challengeType, forumTopicId, localeTitle
id | title | challengeType | forumTopicId | localeTitle |
---|---|---|---|---|
587d7fa6367417b2b2512bbf | Visualize Data with a Choropleth Map | 3 | 301465 | 用地区分布图可视化数据 |
Description
id="title"
属性的标题。
需求 #2:我的地区分布图应该有一个具有id="description"
属性的描述内容。
需求 #3:我的地区分布图应该有一些州县来展示数据,这些州县应该具有class="county"
属性。
需求 #4:这些州县至少应该有 4 种不同的填充颜色。
需求 #5:我的每个州县都应该具有data-fips
和data-education
属性,分别包含他们相应的 fips 值和教育值。
需求 #6:在我的地区分布图中,每一个提供的数据点都应该有一个对应的州县。
需求 #7:各个州县应该具有与样本数据匹配的 fips 值和教育值。
需求 #8:我的地区分布图应该有一个具有id="legend"
属性的图例。
需求 #9:这些图例至少应该使用 4 种不同的填充颜色。
需求 #10:我可以将鼠标悬停在某个区域上,并查看具有id="tooltip"
属性的提示框,它会显示有关该区域的更多信息。
需求 #11:我的提示框应该有一个data-education
属性,它对应了当前激活区域的code>data-education属性。
以下是完成此项目所需的数据集:- US Education Data:
https://raw.githubusercontent.com/no-stack-dub-sack/testable-projects-fcc/master/src/data/choropleth_map/for_user_education.json
- US County Data:
https://raw.githubusercontent.com/no-stack-dub-sack/testable-projects-fcc/master/src/data/choropleth_map/counties.json
https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js
.
一旦你完成了本项目并且该项目所有测试运行通过,请提交项目的 URL。
Instructions
Tests
tests: []
Challenge Seed
Solution
// solution required