将 Power BI 视觉对象优化为适应任意大小Optimize a Power BI visual for any size

可以将仪表板或报表中的视觉对象设置为响应式,即动态缩放,尽可能显示最多的数据和见解,无论屏幕大小如何。You can set the visuals in your dashboard or report to be responsive, to change dynamically to display the maximum amount of data and insight, no matter the screen size.

在视觉对象缩放时,Power BI 会优先确保显示数据视图。例如,自动删除填充,并将图例移至视觉对象顶部,这样即便视觉对象变小,也仍可提供信息。As a visual changes size, Power BI prioritizes the data view, for example removing padding and moving the legend to the top of the visual automatically, so the visual remains informative even as it gets smaller. 在手机上的 Power BI 移动应用中,响应式视觉对象尤为有用。Responsiveness is especially useful in visuals in the Power BI mobile app on phones.

响应式视觉对象重设大小

可以为任何包含 X 轴、Y 轴和切片器的视觉对象启用响应式视觉对象重设大小。You can turn on responsiveness for any visual with X and Y axes, and slicers.

在 Power BI Desktop 中启用响应式设置Turn on responsiveness in Power BI Desktop

  1. 在 Power BI Desktop 的“视图”选项卡上,确保自己处于“桌面设备布局”中。In Power BI Desktop, on the View tab, make sure you're in Desktop Layout.

    “桌面布局”图标

  2. 选择视觉对象,在“可视化效果”窗格中,选择“格式”部分。Select a visual, and in the Visualizations pane select the Format section.
  3. 展开“常规”,并将“响应式”滑至“开”。Expand General > slide Responsive to On.

    “响应式”为“开”

    现在,创建更适合在手机上显示的报表并添加此视觉对象后,它可以流畅地重设大小。Now when you create a report optimized for the phone and add this visual, it will resize gracefully.

在 Power BI 服务中启用响应式设置Turn on responsiveness in the Power BI service

在 Power BI 服务中,为报表中的视觉对象启用响应式设置。You turn on responsiveness for a visual in a report in the Power BI service. 必须能够编辑报表。You need to be able to edit the report.

  1. 在 Power BI 服务 (https://powerbi.com) 中,选择报表中的“编辑报表”。In a report in the Power BI service (https://powerbi.com), select Edit Report.
  2. 选择视觉对象,在“可视化效果”窗格中,选择“格式”部分。Select a visual, and in the Visualizations pane select the Format section.
  3. 展开“常规”,并将“响应式”滑至“开”。Expand General > slide Responsive to On.

    “响应式”为“开”

    现在,创建仪表板的手机视图并添加此视觉对象后,它可以流畅地重设大小。Now when you create a phone view of a dashboard and add this visual, it will resize gracefully.

后续步骤Next steps