Coder Social home page Coder Social logo

Comments (3)

Helphs avatar Helphs commented on May 29, 2024 1

Hi, thank you for the clarification, as you suggested I ended up doing my on visual.

from powerbi-visuals-html-content.

dm-p avatar dm-p commented on May 29, 2024

Situations like this are one of the many reasons we can't reliably support JS in the visual (And why we officially don't). I have expanded on some of the challenges of this in #28 and #56. You can also refer to this comment for more details on how the DOM is updated by Power BI any time something happens on the canvas or outside the visual. Essentially, we can't stop things from being re-rendered, so you can't really maintain state across updates.

If you're trying to build something with JS, it's really a use case for building a proper custom visual, as you can define your own logic and statefulness within your visual's JS that is easier to manage than in a generic visual such as this one.

from powerbi-visuals-html-content.

dm-p avatar dm-p commented on May 29, 2024

Glad to hear you got your own visual working! I'll close this now that you have a resolution.

from powerbi-visuals-html-content.

Related Issues (20)

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.