a facet or facetAnchor: "all" option?
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
先从 facet mark 选项文档以及链接的 Observable 测试和数据开始,了解当前如何处理空 facet 和 facetAnchor。将所请求的 all-facet frame 行为与现有的重复 mark workaround 进行比较,并更新相关文档示例和测试,以便完成后能展示 frame 在非空 facet 和空 facet 上的效果。
由索引模型根据 Issue 内容生成。
描述
In this Plot:
Plot.plot({
marginLeft: 60,
marks: [
Plot.frame({ fill: "silver" }),
Plot.barX(data, { x: "Cantidad", fx: "type", fy: "p28" })
]
})
we would like the silver frame to be present on all facets, including the empty ones (represented with an orange stroke). Should we add a facet: "all" or facetAnchor: "all" option?
(The orange stroke was added with Plot.frame({ stroke: "orange", facetAnchor: "empty" })).
The chart can be fixed currently by duplicating the mark:
[Plot.frame({ fill: "silver" }), Plot.frame({ fill: "silver",facetAnchor: "empty" })],
but it shows that something is missing.
Test & data: https://observablehq.com/d/faf63a6fe3950d75
(Feature request suggested by @rusosnith)
relevant links in the documentation:
- https://observablehq.com/plot/features/facets#mark-facet-options
- https://observablehq.com/plot/marks/axis
(there is a small error on the axis page, where it says "null - show on every facet" it should say "null - show on every non-empty facet")
- 主要语言
- HTML
- 星标
- 5.4k
- 派生
- 251
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
observablehq/plot 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
observablehq/plot#2472 ·
-
难度 2/5 1-3 小时 新手友好度 85/100
observablehq/plot#2471 ·
-
[Types] Wrong recursion in Mark’s _tip_ option可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
observablehq/plot#2459 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 68/100
observablehq/plot#2453 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
observablehq/plot#2447 · 2 条评论 ·
查看 observablehq/plot 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 69/100
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
Area: Factsheets Priority: High Status: Pending Type: Bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
digitalgroundgame/pragmatic-papers#1422 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100