Forum Discussion
Issues with Analytics Pane in Custom Visual
- 5 years ago
I've gone ahead and raised an issue on the github repo.
https://github.com/microsoft/PowerBI-visuals-tools/issues/351
HI paul-maessen,
After I check your 'renderConstantLine' function, I found you use the 'select' function to extract '.constant-line' elements.
As the document mentioned, the select function only returns the first match result, but 'Constantline' may contain multiple instances. I think you need to change these parts to handle multiple instance proceedings.
BTW, I attached the link of 'power bi visuals core' here, you can take a look at the old version of official visuals processings if helps:
Regards,
Xiaoxin Sheng
- paul-maessen5 years agoResolver I
Hi Anonymous ,
Thanks for your reply.
You are right about the "renderContantLine"-function. But in this case I am only able to create just one line because I do not get the "+Add" again once I created a constant line. In that case there is only one line...
One of my questions is now. How do I get this "+Add"-button to be able to create multiple lines?
Regards
Paul
- dm-p5 years agoSuper User
Hi paul-maessenn,
There's no multi instance support yet, so you currently cannot add further instances to an object. 1 is the limit 😞
Regards,
Daniel
- paul-maessen5 years agoResolver I
Hi dm-p , Anonymous
Indeed I completely missed the limitation about multi-instance support also.
Then there is just one issue left...
As you can see in the initial post the analytics pane is rerendered every time something is changed. Can this be solved?
Regards
Paul
- Anonymous5 years agoNot applicable
Hi paul-maessen,
Thanks for dm-p 's notice, it seems like I missed the document that lists the known limitations of adding an analysis line to custom visuals.
As the document mentions, currently you can't do multiple instance processing of constant line. For this scenario, perhaps you can consider submitting an idea to add support for this feature.
Regards,
Xiaoxin Sheng