plotly / plotly/plotly.js

render histograms on log axes with bin edge at 0

未关闭
#6,200 3 条评论 11 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P3
主要语言
JavaScript
星标
18.3k
派生
2k
平均合并
2 天 12 小时
30 天内合并 PR
28

描述

In this codepen, the first plot shows a basic histogram, although note that the leftmost bin edge is 0. The second plot just changes the x-axis type to log, which causes all the bars to disappear. The third plot shows that histograms on log axes can and do work, when there is not a bin edge at 0.

It would be nice if histograms reliably rendered on log axes, even with linearly computed bins like we have right now, because then folks could compute their own log bins and display plots. In some future iteration we could support automatic log bins, but let's just fix this one bug first? Would be good to make sure it's fixed for histogram2d etc as well if possible

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先重现所链接 CodePen 中的三个案例:具有零值 bin 边界的直方图、同一直方图在对数 x 轴上的情况,以及不带该边界且能正常工作的对数轴直方图。跟踪直方图的渲染路径,并在可行时与 histogram2d 进行比较;完成标准是使用现有的线性 bins 时,柱条能在对数轴上可靠渲染,同时包括相关的 2D 情况。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
43/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。