【问题标题】:Setting the timeline to the top of the chart(Google visualization charts)将时间线设置到图表顶部(Google 可视化图表)
【发布时间】:2013-12-09 08:51:47
【问题描述】:

我正在为我的网络使用谷歌可视化图表(时间线) 应用.. https://developers.google.com/chart/interactive/docs/gallery/timeline

任何机构都可以提出将时间线栏带到图表顶部的解决方案吗?目前时间线栏位于图表底部..(如下所示)。

谢谢

【问题讨论】:

    标签: javascript charts google-visualization


    【解决方案1】:

    图表顶部似乎没有设置时间线的配置选项。

    从谷歌网站的示例中,我得到了以下时间线 SVG 代码(数字 1790 和 1800):

    <g>
        <text text-anchor="middle" x="NaN" y="NaN" font-family="undefined" font-size="0" stroke="none" stroke-width="0" fill-opacity="1" fill="none"></text>
        <text text-anchor="middle" x="122.44134100696262" y="144.026" font-family="Arial" font-size="13" stroke="none" stroke-width="0" fill="#000000">1790</text>
        <text text-anchor="middle" x="528.1048013844729" y="144.026" font-family="Arial" font-size="13" stroke="none" stroke-width="0" fill="#000000">1800</text>
    </g>
    

    它位于时间线图的主要 SVG 代码之后。可以在图表前使用一些查询/删除/放置“手动”移动它,但这很容易出错。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-02
      • 1970-01-01
      • 1970-01-01
      • 2019-07-04
      • 1970-01-01
      • 1970-01-01
      • 2013-05-22
      • 2016-06-05
      相关资源
      最近更新 更多