小编Phi*_*hil的帖子

在 EDGE 浏览器中跳转到特定 PDF 页面

我使用 #page=xx 格式直接链接到 PDF 文档中的页面。例如

<a href="mydocument.pdf#page=12">Link here</a>
Run Code Online (Sandbox Code Playgroud)

这适用于 Chrome、Firefox 和 IE,但不适用于 EDGE。有解决方法吗?

html pdf microsoft-edge

6
推荐指数
1
解决办法
4828
查看次数

移动Google Chart列注释位置

我使用下面的代码生成一个柱形图,列中有数字,但我真的希望它们位于条形图的底部,而不是顶部.

这是我的图表的视觉效果:

带注释的谷歌图表

    var data = google.visualization.arrayToDataTable([
        ['Type', 'Completed', 'Outstanding'],
        ['Item 1', 75, 25],
        ['Item 2', 50, 40],
        ['Item 3', 80, 15]
    ]);

    var view = new google.visualization.DataView(data);
    view.setColumns([0, 1,
        {
            calc: "stringify",
            sourceColumn: 1,
            type: "string",
            role: "annotation"
        },
        2,
        {
            calc: "stringify",
            sourceColumn: 2,
            type: "string",
            role: "annotation"
        }]);

    var options = {
        legend: 'none',
        height: 270,
        chartArea: { 'width': '80%', 'height': '80%' },
        bar: { groupWidth: '80%' },
        vAxis: {
            textPosition: 'none',
            gridlines: {
                color: 'transparent'
            }
        }, …
Run Code Online (Sandbox Code Playgroud)

javascript charts google-visualization

5
推荐指数
1
解决办法
4195
查看次数