使用“自动刷新"自动刷新 Tableau 在线仪表板Chrome 扩展程序 [英] Auto refresh Tableau online dashboard using "Auto refresh" Chrome extension

查看:90
本文介绍了使用“自动刷新"自动刷新 Tableau 在线仪表板Chrome 扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用实时连接在线创建了一个视图.我想让页面每 10 分钟自动刷新一次.只能通过手动按下tableau online中仪表板/视图中的刷新按钮来完成,刷新浏览器页面不会刷新仪表板.我看到了一个关于这个提示的画面讨论:提示:要不断刷新视图,在网页的<head>部分,添加<meta http-equiv="refresh" content="#">,其中 # 是刷新之间的秒数." 我该怎么做?这可以在 tableau online 中完成吗?

I've created a view in tableau online using a live connection. I want to the page to refresh automaticly every 10 minutes. It can only be done by pressing manually the refresh button in the dashboard/view in tableau online, refreshing the browser page wont refresh the dashboard. I saw a tableau discussion with this tip: "Tip: To continually refresh a view, in the <head> section of the web page, add <meta http-equiv="refresh" content="#">, where # is the number of seconds between refreshes." How can I do this? Can this be done in tableau online?

作为第二个选项,我可以将参数添加到仪表板 URL 以解决此问题.我在这个讨论中看到了这一点:https://community.tableau.com/thread/289924至少必须将 ":refresh=yes" 部分添加到 URL.由于我在这方面完全不为人知,因此我无法解决此问题.我需要在哪里以及如何将其添加到 url 中,以便永久有效?

As a second option I can add parameters to the dashboard URL to fix this issue. I saw this in this discussion: https://community.tableau.com/thread/289924 At least the part ":refresh=yes" had to be added to the URL. Since I'm totally unknown in this area I was not able to fix this. Where and how I need to add this to the url so this will permantly works?

我也愿意接受其他建议.

I'm also open for other suggestions.

推荐答案

有几种方法可以解决这个问题,您选择哪一种取决于您的情况、规模和可用资源.

There are a couple of ways you could approach this, which one you choose will depend on your situation, scale, and available resources.

这是您描述的第一个选项.为此,您需要将仪表板嵌入到您自己的自定义单独网页中.您可以从分享按钮获取嵌入代码在任何仪表板上,并且可以使用参数和 JavaScript 对其进行自定义嵌入 API.然后,您提到的元标记将出现在您嵌入仪表板的自定义网页的标题中.所以它看起来像这样:

This is the first option you were describing. In order to do this, you will need to embed your dashboard into your own custom separate webpage. You can get the embed code from the share button on any dashboard and can customize it using parameters and the JavaScript Embedding API. The meta tag you mentioned would then go in the header of your custom webpage where you are embedding the dashboard. So it would look something like this:

<html>
  <head>
    <meta http-equiv="refresh" content="600">
  </head>
  <body>
    <script>
      // Your embed code from the dashboard here
    </script>
  </body>
</html>

您还需要确保包含您提到的 :refresh 标签,以便您始终获得最新数据.

You would also want to make sure to include the :refresh tag you mentioned so you always get the latest data.

优点:任何人都可以打开页面并拥有自动刷新的仪表板,而无需安装任何东西.

Pros: Anyone can open the page and have an auto-refreshing dashboard without installing anything.

缺点:您需要某种形式的网络服务器来托管您的自定义页面.需要一些编码.很难扩大仪表板的数量.

Cons: You will need to have some form of a webserver to host your custom page. Requires some coding. Hard to scale up the number of dashboards.

这是您描述的第二个选项.在这种情况下,浏览器中的 chrome 扩展程序正在为您刷新页面.这意味着您不需要自己的单独网页.但是,它仅适用于您安装和设置扩展程序的浏览器.chrome 网上商店 你可以选择.您需要配置它们以刷新页面,再次确保在 url 中包含 :refresh 标记.

This is the second option you were describing. In this case, a chrome extension in the browser is refreshing the page for you. That means you don't need your own separate webpage. However, it will only work on the browser you install and setup the extension on. It looks like there are a couple of auto-refresh extensions in the chrome web store you can choose from. You would need to configure them to refresh the page, again make sure to include the :refresh tag on the url.

优点:不需要单独的网络服务器.没有编码.易于扩展以适应多个仪表板.

Pros: Don't need a separate webserver. No coding. Easy to scale for multiple dashboards.

缺点:仅适用于安装了 chrome 扩展程序的浏览器.

Cons: Only works for the browser that the chrome extension is installed on.

您没有提到但我认为最好的一种选择是使用 仪表板扩展.仪表板扩展是可以直接带入仪表板的 Web 应用程序.我们目前在专为此目的而构建的图库中有一个自动刷新扩展.下载完成后,只需打开仪表板,拖入一个新的扩展对象,选择下载的文件并配置 10 分钟.

One option you didn't mention but I think is the best would be to use a Dashboard Extension. Dashboard extensions are web apps that you can bring directly into the dashboard. We currently have an Auto-Refresh extension in the gallery built for just this purpose. Once you've downloaded it simply open your dashboard, drag in a new extension object, select the downloaded file and configure for 10 minutes.

优点:不需要单独的网络服务器.没有编码.易于扩展多个仪表板.任何人都可以打开仪表板并让它自动刷新,而无需安装任何东西.

Pros: Don't need a separate webserver. No coding. Easy to scale for multiple dashboards. Anyone can open the dashboard and have it auto-refreshing without installing anything.

缺点:自动刷新仅适用于 2019.4+.

Cons: Auto-Refresh only works with 2019.4+.

希望这有帮助!

这篇关于使用“自动刷新"自动刷新 Tableau 在线仪表板Chrome 扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆