| |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
-> 游戏开发 -> tb7_Story points_Dashboards_Context filter_Set action/calculation_parameter_Blank Object_one Country -> 正文阅读 |
|
[游戏开发]tb7_Story points_Dashboards_Context filter_Set action/calculation_parameter_Blank Object_one Country |
? ? ?In data discovery and analysis, you will likely create numerous data visualizations. Each of these visualizations gives you a snapshot of a story within the data. Each insight into the data answers a question or two. At times, the discovery and analysis phase is enough for you to make a key decision and the cycle is complete. In other cases, you will need to bring the snapshots together to communicate a complete and compelling[k?m?pel??]令人信服的,有说服力的;引人入胜的 story to your intended audience. ? ? ?Tableau allows you to bring together related data visualizations into a single dashboard. This dashboard could be a static view of various aspects of the data or a fully interactive environment, allowing users to dynamically filter, drill down, and interact with the data visualizations. ? ? ?In this chapter, we'll take a look at most of these concepts within the context of several in-depth examples, where we'll walk through the dashboard design process, step by step. Like before, don't worry about memorizing lists of instructions. Instead, focus on understanding why and how the components and aspects of dashboards work. This chapter will cover the following topics:
? ? ?For the examples in this chapter, we'll return to the Superstore Sales sample data we used in the previous chapters. Go ahead and create a new workbook with a connection to that dataset. Key concepts for dashboards? ? ?Before diving into some practical examples, let's take some time to understand what a dashboard is and why you might create one. Dashboard definition? ? ?From a Tableau perspective, a dashboard is an arrangement of individual visualizations, along with other components such as legends, filters, parameters, text, containers, images, extensions, buttons, and web objects that are arranged on a single canvas. Ideally, the visualizations and components should work together to tell a complete and compelling data story. Dashboards are usually (but not always) interactive. Dashboard objectives? ? ?The primary objective of a dashboard is to communicate data to a certain audience with an intended result. Often, we'll talk about telling the data story. That is, there is a narrative (or multiple narratives) contained within the data that can be communicated to others. ? ? ?While you can tell a data story with a single visualization or even a series of complex dashboards, a single Tableau dashboard is the most common way to communicate a single story. Each dashboard seeks to tell a story by giving a clear picture of certain information. Before framing the story, you should understand what story the data tells. How you tell the story will depend on numerous factors, such as your audience, the way the audience will access the dashboard, and what response you want to elicit[??l?s?t]引出,<古>使(潜在的东西)显现,诱出 from your audience. ? ? ?Stephen Few, one of the leading experts in the field of data visualization, defines a dashboard as a visual display of the most important information that's needed to achieve one or more objectives, consolidated[k?n?sɑ?l?de?t?d]统一的,整理过的,合并 and arranged on a single screen so the information can be monitored at a glance. This definition is helpful to consider because it places some key boundaries around the data story and the way we will seek to tell it in Tableau. In general, your data story should follow these guidelines:
? ? ?When you set out to build a dashboard, you'll want to carefully consider your objectives. Your discovery and analysis should have uncovered various insights into the data and its story. Now, it's your responsibility to package that discovery and analysis into a meaningful communication of the story to your particular audience in a way that meets your objectives and their needs. Dashboard approaches? ? ?There are numerous possible approaches to building dashboards based on your objectives. The following is by no means a comprehensive list:
? ? ?We'll take a look at several in-depth examples to better understand a few of these different approaches. Along the way, we'll incorporate many of the skills we've covered in previous chapters and we'll introduce key aspects of designing dashboards in Tableau. Tip ? ? ?Your dashboard may have a hybrid approach. For example, you might have an exploratory dashboard that prominently displays some KPIs. However, be careful to not overload过载 a dashboard. Trying to meet more than one or two objectives with any single dashboard will likely result in an overwhelming mess. Designing dashboards in Tableau? ? ?No matter your objective or approach, the practical task of designing a dashboard in Tableau will look similar each time. In this section, we will go through some fundamental concepts. Objects? ? ?Dashboards are made up of objects that are arranged on a canvas. You'll see a list of objects that can be added to a dashboard in the left-hand pane of a dashboard: ?The pane includes these objects:
? ? ?In addition to the objects that you can add through the sidebar, there are other objects that may be applicable to a given dashboard:?
Tiled versus floating? ? ?An object is either tiled or floating. If it is a tiled object, it will snap into the dashboard or layout container where you drop it. If it is a floating object, it will float over the dashboard in layers它将分层浮动在仪表板上. You can change the order of the layers for a floating object. ? ? ?You'll notice the Tiled or Floating buttons directly beneath[b??ni?θ]在……下方,在……表面之下 the Objects pallet[?p?l?t]托盘 in the preceding screenshot. These buttons define the default setting for objects that you place on the dashboards, but you can change whether any given object is tiled or floating. Tip ? ? ?Hold down the Shift key as you drag an object to quickly change it from tiled to floating, or floating to tiled. ? ? ?As you become experienced in designing dashboards, you'll likely develop a preference for designing using a predominately[pri'd?mineitili]占绝大多数地;主导性地;多数情况下 tiled approach or a predominately floating approach. (You can mix tiled and floating objects on any dashboard). Many designers find one design method or the other fits their style. Here are some considerations:
Experiment with various design techniques and feel free to develop your own style! Manipulating objects on the dashboard? ? ?You may wish to manipulate an object once it is part of a dashboard. Every object has certain controls that become visible when you select it:
Tip ? ? ?You may notice different sizing behavior based on what type of container an object is inside and whether the object is tiled or floating. Dashboard example – is least profitable always unprofitable?盈利最少的总是无利可图吗?? ? ?Having covered some conceptual topics as well as practical matters related to dashboard design, we'll dive into an example. ? ? ? Let's say you've been tasked with helping management find which items are the least profitable. Management feels that most of the least profitable items should be eliminated from their inventory. However, since you've done your analysis, you've discovered that certain items, while not profitable overall, have made profit at times in various locations. Your primary objective is to give management the ability to quickly see an analysis of the least profitable items to identify whether an item has always been unprofitable. This example will combine aspects of a guided analytics dashboard and an exploratory tool. Building the views? ? ?Use the Superstore Sales dataset and follow these steps to build the individual views that will form the basis of the dashboard:
Creating the dashboard framework?? ? ?At this point, you have all of the necessary views to achieve the objectives for your dashboard. Now, all that remains is to arrange them and enable the interactivity that's required to effectively tell the story:
At this point, your dashboard should look similar to the following:? Implementing actions to guide the story? ? ?You now have a framework that will support the telling of the data story. Your audience will be able to locate least profitable items within the context of a selected category. Then, the selection of an item will answer the question as to whether it has always been unprofitable in every location. To enable this flow and meet your objectives, you'll often need to enable interactivity. In this case, we'll use actions. We'll conclude this example with some specific steps and then unpack the intricacies['intrik?siz]?纷繁难懂之处,错综复杂的事物?of actions: of actions:
You now have 3 filters (2 are actions) that drive the dashboard:
Tip ? ? ?You can clear a selection in a view by clicking a blank area or by clicking the selected mark one more time. For example, if you clicked the bar for Bookcases to select it (and thus filter the rest of the dashboard), you may click the bar one more time to deselect it. Experiment with the filters and actions to see how your dashboard functions. Interlude – context filtering? ? ?You may have noticed that when you use the drop-down filter to select a single Department or select a single category, you have fewer than 10 items in the Top 10 view. For example, selecting Furniture from the Department filter and clicking on the bar for Tables results in only 3 items being shown. This is because the Top Item filter is evaluated at the same time as the action filter. There are only 3 items with the category of Tables that are also in the Top 10. ? ? ?What if you want to see the top 10 items within the category of Tables? You can accomplish ? ? ?Context filters are a special kind of filter in Tableau that are applied before other filters. Other filters are then applied within the context of the context filters. Conceptually, context filters result in a subset of data upon which other filters and calculations operate. In addition to Top Filters, Computed Sets and Fixed Level of Detail calculations are also computed within the context defined by context filters. ? ? ?In this case, navigate to the Top 10 sheet and add the Department filterand the newly added action ( Category ) filterto the context using the drop-down menu of the fields on the Filters shelf. Once added to the context, those fields will be gray on the filters shelf. Now, you will see the top 10 items within the context of the selected Department and Category: Tip ? ? ?If you edit the action on the dashboard, the filter might be automatically updated and you may have to re-add it to the context. ? ? ?Go ahead and step through the actions by selecting a couple of different categories and a couple of different items. Observe how the final dashboard meets your objectives by telling a story:you've discovered that certain items, while not profitable overall, have made profit at times in various locations ? ? ?The user has selected Technology from the Department drop-down, Telephones and Communications from the category list, and then Item 10631, which is the least profitable item within the category. This reveals the states where the item was sold (color-coded by profit) and a time series of profit for the item. ? ? ?Should management remove item 10631 from the inventory? Tip ? ? ?When you look at the Chapter 07 Completed workbook, you'll only see a tab at the bottom for the dashboard. The individual views have been hidden. Hiding tabs for sheets that are used in dashboards or stories is a great way to keep your workbook clean and guide your audience away from looking at sheets that are meant to be seen in the context of a dashboard or story.
Designing for different displays and devices? ? ?When designing a dashboard, some of the first questions you'll often ask yourself are: How will my audience view this dashboard? What kind of device will they use? With the wide adoption of mobile devices, this question becomes very important because what looks great on a large flat screen monitor doesn't always look great on a tablet or phone. ? ? ?The top of the Dashboard tab on the left sidebar reveals a button to preview the dashboard on various devices, as well as a drop-down for Size options: ? ? ?Clicking the Device Preview button not only allows you to see how your dashboard will look with various device types (and even specific models), but also allows you to add a layout for each device type, which you can customize: ? ? ?You can not only see how your dashboard will appear on various devices and models, but also how it will look based on the orientation of the device and whether the Tableau Mobile app is used (if available for the selected device). ? ? ?Clicking the Add Layout button (that is, the Add Tablet Layout button in the preceding screenshot) will add a?Tablet layout under the Dashboard tab on the left sidebar: ? ? ?The Chapter 07 Completed workbook contains an example of the profit analysis dashboard and has a couple of layout options. For example, here is that dashboard formatted for display on a phone in which the dashboard will fit according to the width of the phone and allow for scrolling up and down: ? ? ? ? As you can see, the arrangement of the dashboard for the phone means that Profit by State and Profit Trend do not appear within the preview boundaries for a phone device. However, they are only a finger swipe away.? How actions work? ? ?In Tableau, an action is a user initiated event that triggers a response from Tableau. You've seen a few examples of actions being used in dashboards already. We'll now consider some details of how actions work in Tableau. Tableau supports five kinds of actions:
? ? ?Certain actions are automatically generated by Tableau based on shortcuts. For example, you can select Use as Filter from the drop-down menu of a view on a dashboard, which results in an automatically generated filter action. Enabling highlighting
Filter actions? ? ?Filter actions are defined by source sheet(s) that pass one or more dimensional values as filters to Target sheets upon an action. Remember that every mark on a sheet is defined by a unique intersection of dimensional values. When an action occurs involving one or more of those marks, the dimensional values that comprise the mark(s) can be passed as filters to one or more Target sheets.
Tip ? ? ?Try to name your actions using names that help you differentiate between multiple actions in the dashboard. Additionally, if your action is set to run on Menu, then the name you use will be shown as a link in the tooltip. Use the arrow to the right of the name to insert special field placeholders. These will be dynamically updated with the values of the fields for a mark when the user sees the menu option in a tooltip.? ? ? ?You may select as many source and Target sheets as you desire. However, if you specify specific Target filters in the bottom section, the fields you select must be present in the Source sheet (for example, on Rows, Columns, and Detail). You will receive a warning if a field is not available for one or more Source sheets and the action will not be triggered for those sheets. Most of the time, your source and target will be the same dashboard. Optionally, you can specify a different Target sheet or dashboard, which will cause the action to navigate to the target in addition to filtering. Warnings or important notes ? ? ?When filter actions are defined at a Worksheet level (when viewing a worksheet, select Worksheet | Actions from the menu), a menu item for that action will appear as menu items for every mark on every sheet that uses the same data source. You can use this to quickly create navigation between worksheets and from dashboards to individual worksheets. Filter actions can be set to occur on any one of three possible actions:
? ? ?Consider the following example of a filter action that's triggered when a bar is selected in the source:?
? ? ?Each bar mark in the source is defined by the Category dimension. When the bar for Tables is selected, a single filter is set on the target. ? ? ?If the mark is defined by more than one dimension (for example, Category and Region ), then the Target sheet will still have a single filter with the combination of dimension values that had been selected. ? ? ?By default, all dimensions present in the source view are used in a filter action. Optionally, you can specify which fields should be used. You can use the Selected Fields option in the Edit Filter Actions dialogue to accomplish the following:
Highlight actions?? ? ?This type of action does not filter Target sheets. Instead, highlight actions causes marks that are defined, at least in part, by the selected dimensional value(s) to be highlighted in the Target sheets. The options for highlight actions are very similar to filter actions, with the same options for source and Target sheets and what event triggers the action. ? ? ?Consider a dashboard with 3 views and a highlight action based on the Region field. When the action is triggered for the West region, all marks defined by West are highlighted. The dimension(s) that are used for highlight must be present in all views where you want the highlighting to be applied. Both the map and scatter plot have Region on the Detail of the Marks card: Warnings or important notes ? ? ?Highlighters (also called data highlighters) are shown as user controls (similar to filters and parameters) that cause highlighting based on user interaction. They can be applied to one or more views and will highlight the marks of the views. They do not create an action. To add Highlighters,
URL actions
? ? ?URL actions allow you to dynamically generate a URL based on an action and open it within a web object in the dashboard or in a new browser window or tab. URL actions can be triggered by the same events as filter and highlight actions. The name of the URL action differentiates it and will appear as the link when used as a menu. ? ? ?The URL includes any hardcoded values you enter as well as placeholders that are accessible via the arrow to the right of the URL text box. These placeholders include fields and parameters. The values will be dynamically inserted into the URL string when the action is triggered based on the values for the fields that make up the selected mark(s) and current values for parameters. Tip ? ? ?Some web pages have different behaviors when viewed in iframes. The browser object does not use iframes in Tableau Desktop or Tableau Reader, but does when the dashboard is published to Tableau Server, Tableau Online, or Tableau Public. You will want to test URL actions based on how your dashboards will be viewed by your audience. ? ? ?You may specify a target for the URL action when you create or edit the URL action: ? ? ?Options include New Browser Tab, Web Page Object (you may select which object if you have more than one on the dashboard), and Browser Tab if No Web Page Object Exists. If you have more than one web page object on the dashboard, you may wish to give them meaningful names to make selection easier. To accomplish this, switch to the Layout tab on the left-hand side pane and expand the Item hierarchy until you locate the objects you wish to rename. Right-click the object and select Rename Dashboard Item: Set actions? ? ?Set actions allow you to populate[?pɑ?pjule?t]充满,(给文件)增添数据,输入数据,填充 a set with one or more values for one or more dimensions. This is very powerful because sets can be used on any shelf to encode any visual element, can be leveraged in calculations, and can be used as filters. They can be used in all of these ways—and in different ways—in different views. This gives you incredible flexibility in what can be accomplished with set actions. We'll first take a moment to define sets more clearly and then look at an example of a set action. Sets? ? ? A set in Tableau defines a collection of records from the data source. At a row-level, each record is either in or out of the set. There are two types of sets:
dynamic set?? ? ?A dynamic set is computed for a single dimension based on a conditional calculation you define. As the data changes, the results of the condition may change and records may switch between in to out of the set. A fixed set? ? ?A fixed set is a list of values for one or more dimensions. If the values for a single record match the list defined by the set, then the record is in the set and out otherwise. ? ? ?Here, you can select individual values that will define what is in or out of the set. Note the option to Exclude rather than include values. In this case, we've created a set named Customers with the first name of Aaron. Any records that have a Customer Name that matches one of the 6 values we selected will be in the set. All others will be out. Because this is a fixed set, the values are not ever calculated or recalculated. If records with a customer named Aaron Burr show up in the dataset next week, they will still be out of the set. As we'll see in the following example, set actions operate on fixed sets. A set action example
? ? ?You may use a set on shelves, just as you would any other field. Notice how the set gives two values, that is, In and Out, which define two colors. You may wish to adjust the colors to emphasize In. Tip ? ? ?You may use sets in calculated fields as well. For example, the code [Region Set] gives a Boolean true/false result for each record, indicating whether it is In the set. ? ? ?Conclude the set action example by creating a region map, the dashboard, and implementing the set action.
? ? ?Once you have created the preceding action, your dashboard should function very similarly to the example that was shown at the beginning of this section. Selecting a region on the map highlights the portion of the bars that correspond to that region. This technique is known as brushing, or proportional brushing. ? ? ?This technique is only one of hundreds of the possible applications of set actions. Since sets can be used on any shelf and in calculations, updating the values via set actions opens up almost limitless possibilities for user interaction and analytics. Use the?Set for calculation? ? ? For example, the code [Region Set] gives a Boolean true/false result for each record, indicating whether it is In the set.
Dashboard example – regional scorecard? ? ?Now, we'll consider another example dashboard that demonstrates slightly different objectives. Let's say everyone in the organization has agreed upon a key performance indicator of Profit Ratio. Furthermore, there is consensus[k?n?sens?s]?一致看法,共识 that the cut-off point between an acceptable and poor profit ratio is 15%, but management would like to have the option of adjusting the value dynamically to see whether other targets might be better.? Let's consider how to create a?dashboard:
? ? ?Once both views have been created, the dashboard can be constructed by arranging the two sheets, parameter control, and text appropriately.
? ? ?This dashboard allows your audience to very quickly evaluate the performance of each region over the last six months. Executive management could very quickly pull this dashboard up on their mobile device and take appropriate action as needed. ? ? ?The dashboard provides interactivity with the KPI target parameter. Additional drill down into other dashboards or views could be provided if desired. If this view were published on Tableau Server, it is not unreasonable并非没有道理 to think that regional managers might subscribe to the view and receive a scheduled email containing an up-to-date image of this dashboard.? Warnings or important notes? ? ? ?By default, all objects that are added to the dashboard are tiled. Tiled objects snap in place and appear beneath floating objects. Any object can be added to the dashboard as a floating object by switching the toggle under New Objects in the left window, or by holding Shift while dragging the objects to the dashboard. ? ? ?Existing objects can be switched between floating and tiled by holding Shift while moving the object or using the drop-down caret menu. The drop-down caret menu also gives you options for adjusting the floating order of objects. Additionally, floating objects can be resized and positioned with pixel precision by selecting the floating object and using the positioning and sizing controls in the lower left. ? ? ?You can mix tiled and floating elements, but many dashboard authors prefer to build dashboards that are composed of entirely of one or the other. This ensures consistency between different layouts and sizes of screens (especially if the dashboard is set to an Automatic or Range sizing option).? Stories? ? ?The Stories feature allows you to tell a story using interactive snapshots of dashboards and views. The snapshots become points in a story. This allows you to construct guided narrative or even an entire presentation. ? ? ?Let's consider an example in which story points might be useful. The executive managers are pleased with the Regional Scorecard dashboard you developed previously. Now, they want you to make a presentation to the board and highlight some specific issues for the South region. With minimal effort, you can take your simple scorecard, add a few additional views, and tell an entire story:
Warnings or important notes? ? ? ?The Story interface consists of a sidebar with all visible dashboards and views. At the top, you'll see the Story Title, which can be edited. Each new point in the story will appear as a navigation box with text that can also be edited. Clicking on the box will give you access to the story point, where you can then add a single dashboard or view.? ? ? ?You can create new story points using the New Blank Point button (for a new story point), the Duplicate button (which will create a duplicate snapshot of the currently selected story point), or the Save as New Point button (which will capture the current state of the dashboard as a new story point). ? ? ?Clicking on a story point navigation box will bring up the snapshot of the view or dashboard for that story point. You may interact with the dashboard by doing such things as making selections, changing filters, changing parameter values, and adding annotations. Changing any aspect of the dashboard will present you with an option to Update the existing story point to the current state of the dashboard. Alternatively, you can use the Revert button above the navigation box to return to the original state of the dashboard. Clicking the X will remove the story point. ? ? ?Each story point contains an entirely independent snapshot of a dashboard. Filters selections, parameter values, selections, and annotations will be remembered for a particular story point, but will have no impact on other story points or any other sheet in the dashboard. ? ? ?You may rearrange story points by dragging and dropping the navigation boxes. How do I add a dashboard to a story in tableau?? ? ?To start building your story,?double-click a sheet on the left to add it to a story point. In Tableau Desktop, you can also drag sheets into your story point. When you add a sheet to a story point, that sheet remains connected to the original sheet. We'll build the story by completing the following steps:
? ? ?In Presentation Mode, the buttons for adding, duplicating, updating, or removing story points are not shown. Your final story should look similar to previous each story point. ? ? ?Take some time to walk through the presentation. Clicking navigation boxes will show that story point. You can fully interact with the dashboard in each story point. In this way, you can answer questions on the fly and dig into details, and then continue through the story. Tip ? ? ?A great way to learn about dashboard techniques (and data visualization techniques in general) is to subscribe to Viz of the Day ( https://public.tableau.com/app/discover/viz-of-the-day ). A new visualization, dashboard or story is featured each day. When you see a design technique or visualization you want to understand, you can download the workbook and explore the various techniques that were used. Summary? ? ?When you are ready to share your discovery and analysis, you will likely use dashboards to relate the story to your audience. The way in which you tell the story will depend on your objectives, as well as your audience and the mode of delivery. Using a combination of views, objects, parameters, filters, and legends, you can create an incredible framework for telling a data story. Tableau allows you to specifically design layouts for different devices to ensure that your audience has the best experience possible. By introducing actions and interactivity, you can invite your audience to participate in the story. Story points will allow you to bring together many snapshots of dashboards and views to craft and present entire narratives.? ? ? ?In the next chapter, we'll turn our attention to some deeper analysis involving trends, distributions, forecasting, and clustering.? |
|
|
上一篇文章 下一篇文章 查看所有文章 |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
360图书馆 购物 三丰科技 阅读网 日历 万年历 2025年1日历 | -2025/1/16 18:50:36- |
|
网站联系: qq:121756557 email:121756557@qq.com IT数码 |