add_background_image
add_background_image
Functions
Name | Description |
---|---|
add_background_img | Add a background image to a dashboard page |
add_background_img
add_background_image.add_background_img(
dashboard_path,
page_id,
img_path,=100,
alpha='Fit',
scaling_method )
Add a background image to a dashboard page
:param str dashboard_path: The path where the dashboard files are stored. (This is the top level directory containing the .pbip file and Report and SemanticModel folders). :param str page_id: The unique id for the page you want to add the chart to. If you used this package’s functions it will be in the format page1, page2, page3, page4, etc. If you manually created the page it will be a randomly generated UUID. To find a page’s page id, consult the report > definition> pages > page.json file and look in the page order list. :param str img_path: The path to the image you want to add. (Can be a relative path because the image is copied to the report folder). Allowed image types are whatever PBI allows manually, so probably at least jpeg and png :param int alpha: The transparency of the background image. Must be a whole integer between 1 and 100. :param str scaling_method: The method used to scale the image available options include [“Fit”, ]