您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

配置应用程序仪表板Configure the application dashboard

仪表板 是连接到 IoT Central 应用程序时看到的第一页。The Dashboard is the first page you see when you connect to an IoT Central application. 如果从以行业为中心的 应用程序模板创建应用程序,应用程序将具有开始预定义的仪表板。If you create your application from one of the industry-focused application templates, your application has a pre-defined dashboard to start. 如果从自定义 应用程序模板创建应用程序,你的仪表板将显示一些入门提示。If you create your application from a custom application template, your dashboard shows some tips to get started.


除了默认应用程序仪表板外,用户还可以创建多个仪表板Users can create multiple dashboards in addition to the default application dashboard. 这些仪表板可以仅供用户使用,也可以在应用程序的所有用户之间共享。These dashboards can be personal to the user only, or shared across all users of the application.

添加磁贴Add tiles

以下屏幕截图显示了从 自定义应用程序 模板创建的应用程序中的仪表板。The following screenshot shows the dashboard in an application created from the Custom application template. 若要自定义当前仪表板,请选择 " 编辑 ",添加自定义个人或共享仪表板,选择 " 新建 ":To customize the current dashboard, select Edit , to add a custom personal or shared dashboard, select New :


选择 " 编辑 " 或 " 新建 " 后,仪表板处于 编辑 模式。After you select Edit or New , the dashboard is in edit mode. 你可以使用 " 编辑仪表板 " 面板中的工具将磁贴添加到仪表板,并在仪表板上自定义和删除磁贴。You can use the tools in the Edit dashboard panel to add tiles to the dashboard, and customize and remove tiles on the dashboard itself. 例如,若要添加 遥测 磁贴以显示由一个或多个设备报告的当前温度:For example, to add a Telemetry tile to show current temperature reported by one or more devices:

  1. 选择 设备组 ,然后在 " 设备 " 下拉列表中选择你的设备以在磁贴上显示。Select a Device Group and then choose your devices in the Devices dropdown to show on the tile. 现在,你可以看到设备中的可用遥测、属性和命令。You now see the available telemetry, properties, and commands from the devices.

  2. 如果需要,可以使用下拉列表选择要在磁贴上显示的遥测值。If needed, you use the dropdown to select a telemetry value to show on the tile. 您可以通过选择 + 遥测+ 属性+ 云属性 向磁贴添加更多项。You can add more items to the tile another by selecting + Telemetry , + Property , or + Cloud Property.


选择要在磁贴上显示的所有值后,单击 " 添加磁贴"。When you've selected all the values to show on the tile, click Add tile. 该磁贴将显示在仪表板上,你可以在其中更改可视化效果、调整其大小、移动和配置它。The tile now appears on the dashboard where you can change the visualization, resize it, move it, and configure it.

在仪表板上添加并自定义磁贴后,选择 " 保存 " 将更改保存到仪表板,这会使你退出编辑模式。When you've finished adding and customizing tiles on the dashboard, select Save to save the changes to the dashboard, which takes you out of edit mode.

自定义磁贴Customize tiles

若要编辑磁贴,必须处于编辑模式。To edit a tile, you must be in edit mode. 可用的自定义选项取决于 磁贴类型The available customization options depend on the tile type:

  • 磁贴上的标尺图标使你可以更改可视化效果。The ruler icon on a tile lets you change the visualization. 可视化效果包括折线图、条形图、饼图、上一个已知值、关键绩效指标 (或 Kpi) 、热图和 maps。Visualizations include line charts, bar charts, pie charts, last known values, key performance indicators (or KPIs), heatmaps, and maps.

  • 利用方形图标可以调整磁贴的大小。The square icon lets you resize the tile.

  • 齿轮图标使你可以配置可视化效果。The gear icon lets you configure the visualization. 例如,对于折线图视觉对象,可以选择显示图例和轴,并选择要绘制的时间范围。For example, for a line chart visualization you can choose to show the legend and axes, and choose the time range to plot.

磁贴类型Tile types

下表描述了可以添加到仪表板的不同类型的磁贴:The following table describes the different types of tile you can add to a dashboard:

磁贴Tile 说明Description
MarkdownMarkdown Markdown 磁贴是可单击的磁贴,用于显示使用 Markdown 设置格式的标题和说明文本。Markdown tiles are clickable tiles that display a heading and description text formatted using markdown. URL 可以是指向应用程序中其他页面的相对链接,也可以是指向外部站点的绝对链接。The URL can be a relative link to another page in the application, or an absolute link to an external site.
图像Image 图像磁贴显示自定义图像,可以单击。Image tiles display a custom image and can be clickable. URL 可以是指向应用程序中其他页面的相对链接,也可以是指向外部站点的绝对链接。The URL can be a relative link to another page in the application, or an absolute link to an external site.
LabelLabel 标签磁贴在仪表板上显示自定义文本。Label tiles display custom text on a dashboard. 你可以选择文本的大小。You can choose the size of the text. 使用标签磁贴向仪表板添加相关信息,例如说明、联系人详细信息或帮助。Use a label tile to add relevant information to the dashboard such descriptions, contact details, or help.
计数Count 计数磁贴显示设备组中的设备数。Count tiles display the number of devices in a device group.
映射Map 地图磁贴显示一个或多个设备在地图上的位置。Map tiles display the location of one or more devices on a map. 你还可以显示设备位置历史记录的 100 个点。You can also display up to 100 points of a device's location history. 例如,可以显示设备在过去一周内的抽样路线。For example, you can display sampled route of where a device has been on the past week.
KPIKPI KPI 磁贴显示一段时间内一个或多个设备的聚合遥测值。KPI tiles display aggregate telemetry values for one or more devices over a time period. 例如,你可以使用它来显示最近一小时内一个或多个设备达到的最大温度和压力。For example, you can use it to show the maximum temperature and pressure reached for one or more devices during the last hour.
折线图Line chart 折线图磁贴将一个或多个设备的一个或多个聚合遥测值绘制一段时间。Line chart tiles plot one or more aggregate telemetry values for one or more devices for a time period. 例如,可以显示一个折线图,用于绘制最近一小时内一个或多个设备的平均温度和压力。For example, you can display a line chart to plot the average temperature and pressure of one or more devices for the last hour.
条形图Bar chart 条形图磁贴将一个或多个设备的一个或多个聚合遥测值绘制一段时间。Bar chart tiles plot one or more aggregate telemetry values for one or more devices for a time period. 例如,您可以显示一个条形图来显示最近一小时内一个或多个设备的平均温度和压力。For example, you can display a bar chart to show the average temperature and pressure of one or more devices over the last hour.
饼图Pie chart 饼图磁贴显示一个或多个设备在一段时间内的一个或多个聚合遥测值。Pie chart tiles display one or more aggregate telemetry values for one or more devices for a time period.
热度地图Heat map 热度地图磁贴显示有关一个或多个设备的信息,表示为颜色。Heat map tiles display information about one or more devices, represented as colors.
上一个已知值Last Known Value "最后一个已知值" 磁贴显示一个或多个设备的最新遥测值。Last known value tiles display the latest telemetry values for one or more devices. 例如,你可以使用此磁贴显示一个或多个设备的最新温度、压力和湿度值。For example, you can use this tile to display the most recent temperature, pressure, and humidity values for one or more devices.
事件历史记录Event History “事件历史记录”磁贴显示设备在一段时间内的事件。Event History tiles display the events for a device over a time period. 例如,你可以使用它来显示最近一小时内一个或多个设备的所有阀打开和关闭事件。For example, you can use it to show all the valve open and close events for one or more devices during the last hour.
propertiesProperty 属性磁贴显示一个或多个设备的属性和云属性的当前值。Property tiles display the current value for properties and cloud properties of one or more devices. 例如,你可以使用此磁贴来显示设备的属性,例如设备的制造商或固件版本。For example, you can use this tile to display device properties such as the manufacturer or firmware version for a device.

目前,最多可以向支持多个设备的磁贴添加10个设备。Currently, you can add up to 10 devices to tiles that support multiple devices.

自定义可视化效果Customizing visualizations

默认情况下,折线图显示时间范围内的数据。By default, line charts show data over a range of time. 所选时间范围拆分为50相等大小的存储桶,并按 bucket 聚合设备数据,以在所选时间范围内为50个数据点。The selected time range is split into 50 equal-sized buckets and the device data is then aggregated per bucket to give 50 data points over the selected time range. 若要查看原始数据,可以更改所选内容以查看最后一个100值。If you wish to view raw data, you can change your selection to view the last 100 values. 若要更改时间范围或选择原始数据可视化,请使用 " 配置图表 " 面板中的 "显示范围" 下拉列表。To change the time range or to select raw data visualization, use the Display Range dropdown in the Configure chart panel.


对于显示聚合值的磁贴,请在 " 配置图表 " 面板中选择 "遥测" 类型旁边的齿轮图标以选择聚合。For tiles that display aggregate values, select the gear icon next to the telemetry type in the Configure chart panel to choose the aggregation. 可以从 average、sum、maximum、maximum 和 count 中进行选择。You can choose from average, sum, maximum, minimum, and count.

对于折线图、条形图和饼图,可以自定义不同遥测值的颜色。For line charts, bar charts, and pie charts, you can customize the color of the different telemetry values. 选择要自定义的遥测旁边的 "调色板" 图标:Select the palette icon next to the telemetry you want to customize:


对于显示字符串属性或遥测值的磁贴,你可以选择显示文本的方式。For tiles that show string properties or telemetry values, you can choose how to display the text. 例如,如果设备将 URL 存储在字符串属性中,则可以将其显示为可单击的链接。For example, if the device stores a URL in a string property, you can display it as a clickable link. 如果 URL 引用图像,则可以在上一个已知值或属性磁贴中呈现图像。If the URL references an image, you can render the image in a last known value or property tile. 若要更改字符串的显示方式,请在 "磁贴配置" 中选择遥测类型或属性旁边的齿轮图标:To change how a string displays, in the tile configuration select the gear icon next to the telemetry type or property:


对于数值 KPI上一个已知值属性 磁贴,你可以使用条件格式基于其当前值自定义磁贴的颜色。For numeric KPI , Last Known Value , and Property tiles you can use conditional formatting to customize the color of the tile based on its current value. 若要添加条件格式,请在磁贴上选择 " 配置 ",然后选择要自定义的值旁边的 条件格式 图标:To add conditional formatting, select Configure on the tile and then select the Conditional formatting icon next to the value to customize:


添加条件格式规则:Add your conditional formatting rules:


以下屏幕截图显示了条件格式规则的效果:The following screenshot shows the effect of the conditional formatting rule:


"磁贴" 格式"tile" formatting

此功能在 KPI、LKV 和属性磁贴中提供,可让用户调整字体大小,选择小数精度,使用缩写数值 (例如,格式 1700) 为 1.7 K,或在其磁贴中将字符串值换行。This feature, available in KPI, LKV, and Property tiles, lets users adjust font size, choose decimal precision, abbreviate numeric values (for example format 1,700 as 1.7K), or wrap string values in their tiles.


后续步骤Next steps

现在,你已了解如何配置 Azure IoT Central 默认应用程序仪表板,接下来可以了解如何创建个人仪表板Now that you've learned how to configure your Azure IoT Central default application dashboard, you can Learn how to create a personal dashboard.