Coder Social home page Coder Social logo

global19 / powerbi-visuals-html-content Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dm-p/powerbi-visuals-html-content

0.0 2.0 0.0 1.66 MB

Visualise column or measure values as HTML in your Power BI reports. Intended as a spiritual successor to the OG HTML Viewer custom visual, with some extra stuff thrown in.

TypeScript 77.47% JavaScript 3.37% Less 19.15%

powerbi-visuals-html-content's Introduction

HTML Content for Power BI

By Daniel Marsh-Patrick

github.png dm-p       twitter.png @the_d_mp       linkedin.png daniel-m-p       www.coacervo.co | [email protected]


Home | Release Notes | Usage | Privacy Policy


Because there is a delay in publishing to the marketplace, a standalone copy of the latest version of the visual is available from the repository's releases page. Note that standalone versions do not stay in sync with the Marketplace version so you will need to manually upgrade them in any reports. Unless you're wanting to adopt features early, it's recommended you stick with the Marketplace version.

You can get the latest standalone version for download here.

Only the current marketplace version and the latest release version are supported, so if you wish to create an issue, please check if you are on either of these, and consider switching across before you proceed.

About the Visual

This visual is intended to be a spiritual successor to the HTML Viewer visual, which has recently been removed from the Power BI Marketplace.

There are some worked examples of how to approach this visual if you haven't used the previous one on the Usage page.

What's Different from the Original?

There are some additional features that the original doesn't have:

  • You can use HTML generated from measures.
  • You can opt to see the raw HTML rather than rendered HTML for debugging purposes.
  • By default, hyperlinks wouldn't work due to custom visual limitations, but in this version you can opt to delegate URL requests to Power BI, which will provide the user with a prompt and request their approval. Please note that if in the Service, URLs will open in a new tab. This is how URLs need to work inside custom visuals.

Refer to the Usage page for a guided example using these new features.

Are there Still Limitations to What I Can Do with HTML in this Visual?

Yes.

A lot of the limitations that the original HTML Viewer visual had will still exist in this one; this is specifically to do with a number of restrictions imposed upon custom visual permissions by Power BI.

While the visual will have a good go at rendering the HTML content you supply, it only only passes your content into the DOM on your behalf. Therefore, you will need to bear the following in mind:

  • The browser(s) you are intending for your HTML content to be rendered in:

    • You will need to manage browser-specific behaviors if doing anything particularly complicated.
    • Note that Power BI Desktop is not a fully-functional web browser so may not render content in the same way as when reports are published to the Service.
  • Restrictions imposed upon the visual by Power BI:

    • Custom visuals run in a sandbox with the least amount of privilege.
    • Any content hosted inside the visual that needs elevated privileges will likely not work correctly.
    • This sandboxing also removes the domain from any custom visuals, so they can't impersonate powerbi.com.
    • Therefore, accessing services or embedding content from sites that have CORS restrictions will not work inside the visual.
    • These CORS restrictions are set by the target server and cannot be overridden from the client (our visual).

Is there A Privacy Policy?

Yes.

Is there A Roadmap?

Not a firm one. For the moment, my intention has been to provide something to fill the current gap left by the original visual for makers and end-users.

If there is an appetite for something specific - that can be implemented within the current custom visual security constraints - feel free to create an issue for it and I'll see if I can accommodate.

This visual is developed in my free time and released free of charge, so if you're grateful for my community contributions, or want dedicated or specific support, please consider a sponsorship tier - you'll be helping to allow me to spend more time focusing on open source development.

Thanks for stopping by!

powerbi-visuals-html-content's People

Contributors

dependabot[bot] avatar dm-p avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.