SlopChart RViz: Power BI Custom Visual

Posted by on Dec 14, 2017 in RVIZ | No Comments


SlopChartViz is a custom visual for showing the trend between two times.  There is a possibility to zoom in an zoom out in this chart.

This custom visual needs:

1-      First Variable: a group (categorical variable)

2-      Second Variable: Value related to first time

3-      Third Variable: Value related to the second time

To use this chart, you need to have

1-      One R version in your machine

2-      Automatically, some of the packages like “plotly,” “ggplot2”, and “htmlwidgets” will install.

3-      If these packages do not install automatically, then we need to install them in Rstudio using below commands:




In the below example, I have shown that how we can compare increase or decrease trend between two times for each group. The below data is related to the GPD in 2014 and 1015 for some countries.

Leila Etaati
Dr. Leila Etaati is Principal Data Scientist, BI Consultant, and Speaker. She has over 10 years’ experience working with databases and software systems. She was involved in many large-scale projects for big sized companies. Leila has PhD of Information System department, University of Auckland, MS and BS in computer science. Leila is Microsoft Data Platform MVP.

Leave a Reply

Your email address will not be published. Required fields are marked *