Forum Discussion
Issues with Analytics Pane in Custom Visual
Hi,
I am trying to add the analystics-pane to my custom visual but i do have some issues.
I hope some one here can help me with these issues.
In the GIF below you can see that the Constant line in the analytics pane is created and displayed in my visual.
Constant line in Analytics Pane
I do have the following questions:
- How can I add another Constant line to the visual ? (as you can see I do NOT get another "+Add" below the added constant line)
- Is it possible to prevent the redraw of the Constant line-pane each time I make a change to it ? (This does not happen in the native visuals that are using the analytics pane).
I have created a very basic custom visual showing a bar chart to have not such a large amount of code.
You can find the code on the following repository on Git Hub: Github Repo This repo is specifically created to show the issues.
It would be nice if someone can help me with these questions, because I do get the same behavior when using the code from the Sample Bar Chart where an Average Line is implemented. (https://github.com/microsoft/PowerBI-visuals-sampleBarChart)
Thanks in advance!
Paul
I've gone ahead and raised an issue on the github repo.
https://github.com/microsoft/PowerBI-visuals-tools/issues/351
16 Replies
- nikitagrachevMicrosoft Employee
It should be fixed already. Please check it again.
- paul-maessenResolver I
- paul-maessenResolver I
I tested it and it is solved indeed. Thanks.
I also noticed that the issue on Github us closed.
Regards
Paul
- AnonymousNot applicable
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-maessenResolver 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-pSuper 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
- IlonaSimakovaMicrosoft Employee
Good afternoon, paul-maessen !
Please check and let me know if the issue with the Analytics Pane is still relevant, thanks!Ilona
Microsoft PBI Custom Visuals- paul-maessenResolver I
Yes this issue is still relevant.
The issue on GitHub is also still open: https://github.com/microsoft/PowerBI-visuals-tools/issues/351
Regards,
Paul