Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 51369

Re: Adding a Second Measure to Custom Visual

$
0
0

Hi .,

Thanks very much - I can get the code to compile now.

Looks like you're trying something like a bullet chart?

If so, I'd suggest creating specific data roles for each measure as they each have an intended purpose. This will make your code easier to manage rather than using a single data role with multiple measures and more intuitive to the end-user. Using the same data role with multiple measures will cause a challenge in that they will all have the same role type, processing the data view and assigning the measures to the appropriate bar will depend on the order they're added by the end user.

I'll proceed on the basis that we want two distinct measure roles - for the sake of illustration, I'll call them actual and budget and provide you with the changes required to make that work. Does that sounds like a good approach to you? If you want to stick with the existing approach, let me know and I'll provide you with a solution as per your requirements.

Thanks,

Daniel


Viewing all articles
Browse latest Browse all 51369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>