简体   繁体   English

在PowerBI Desktop中提供视觉名称

[英]Provide a name for visual in PowerBI Desktop

we have recently started using Power BI embedded. 我们最近开始使用Power BI Embedded。 Our basic need is to embed a single visual in a web page. 我们的基本需求是在网页中嵌入单个图像。 I found the GetVisuals() method that list the visual and then, given the [Name] property, we can easily set that visual HIDDEN or VISIBLE: 我找到了列出视觉对象的GetVisuals()方法,然后在给定[Name]属性的情况下,可以轻松地将该视觉对象设置为HIDDEN或VISIBLE:

The main issue is : How can I set the visual name when I create the report in PBI Desktop ? 主要问题是:在PBI Desktop中创建报表时,如何设置视觉名称?

Thanks ALberto 谢谢阿尔贝托

You can't set the visual name, but if you change the visual title to be different from the default title, then getVisuals() will also return the title: 您不能设置视觉名称,但是如果将视觉标题更改为与默认标题不同,则getVisuals()还将返回标题:

[
  {
    "name": "16d4ed6901e80ab46280",
    "type": "lineChart",
    "title": "Total SalesAmount by Color",
    "layout": {
      "x": 10,
      "y": 20,
      "z": 1,
      "width": 280,
      "height": 280,
      "displayState": {
        "mode": 0
      }
    }
  }
]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM