Forum Discussion

mpo's avatar
mpo
Icon for Helper II rankHelper II
9 years ago
Solved

developing Custom Visual with Table Data Binding

I am slightly struggling with custom visual development. Any help is very appreciated. Also asked this on stackoverflow.     I am trying to change the sampleBarChart visual to use the "table" dat...
  • Mcburn's avatar
    9 years ago

    Hey MPO,

     

    my answer for the first question:

    There are not so many Examples, from the scratch. The API GitHub Page has one.

    Some Blogs get Examples too: 

    https://sharepointforum.org/threads/build-your-custom-visuals-in-power-bi-step-by-step.61069/

     

    And in the End maybe some Older Custom Visuals from this site:

    https://app.powerbi.com/visuals/

    Do you need WinRar or something similiar.

     

    All this possibilites are not satisfying, the best way is try and error.

     

    That direct me to the second question:

     

    Here you can see, i do not use the columns. Power BI select my three categorys to one and set the two measure values behind them. I need some experiance too and iam not sure that will works for you. But you can try it out and maybe that will help.

     

    "table":{
                    "rows": {
                        "select": [
                            {
                                "for": { "in": "Date"}
                            },
                            {
                                "for": { "in": "ProjectColor"}
                            },
                            {
                                "for": { "in": "ProjectID"}
                            },
                            {
                                "for": { "in": "X"}
                            },
                            {
                                "for": { "in": "Size"}
                            }
                        ]
                    }
                }

     

    When i get a better solution i will post it under your stackoverflow post.

     

    To your last question: 

    I think without the browser, debugging is very hard. My workaround is the Chrome Javascript Console to debug my Visual.

    That would work with the package too.