Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dimmuboy/f089f15a504cded67f6dbbcc8b2e5e71 to your computer and use it in GitHub Desktop.
Save dimmuboy/f089f15a504cded67f6dbbcc8b2e5e71 to your computer and use it in GitHub Desktop.
Change charts layout to side by side layout
// ==UserScript==
// @name UiPath Automation Hub - Automation Program Performance
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Change charts layout to side by side layout
// @author You
// @match https://cloud.uipath.com/nidecga/Nidec_GA/automationhub_/dashboard/performance
// @match https://cloud.uipath.com/nidecga/Production/automationhub_/dashboard/performance
// @icon https://www.google.com/s2/favicons?sz=64&domain=uipath.com
// @grant none
// ==/UserScript==
function changeChart(){
var leftChart = document.getElementsByClassName('ADPPipelineStackedBarChart');
var rightChart = document.getElementsByClassName('ADPPipelinePieChart');
leftChart[0].style.minWidth = '0';
leftChart[0].style.width = '59%';
rightChart[0].style.minWidth = '0';
rightChart[0].style.width = '40%';
}
(function() {
'use strict';
setTimeout(changeChart, 5000);
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment