Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Ability to add footer to chart on the front-end

未关闭
#522 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
32/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞

调研方向

首先检查 issue 中描述的前端图表渲染和手动配置路径,然后将其与提供的 JavaScript workaround 和截图进行比较。完成后应提供一种受支持的方式,在页脚或页眉中显示图表数据源,同时不牺牲水平轴描述,并包含相关的配置行为。

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

描述

documentation hold

An enhancement to be able to add sources to the data of graphs (possible footer/header like in this screenshot -> http://prntscr.com/p24vpo )

However, there is a workaround with JS <<thanks @SilviuDinu>>(it modifies the horizontal axis description but if the description is needed, there is no solution) with the following code, trying JSON from google's API doesnt work in manual configuration.

<script type = "text/javascript"> var chartTitle = document.querySelectorAll(".visualizer-front svg g g text"); for (var i = 0; i < chartTitle.length; i = i + 1) { if (chartTitle[i].innerHTML === 'Source: Data Insight') { chartTitle[i].setAttribute('x', 120); } }; </script>

Refference -> https://secure.helpscout.net/conversation/942172660/200370?folderId=212385

主要语言
PHP
星标
108
派生
29
平均合并
3 天 22 小时
30 天内合并 PR
12

环境准备

从这里开始

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

Codeinwp/visualizer 的其他 Issue

查看 Codeinwp/visualizer 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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