Last active
January 23, 2023 13:38
-
-
Save dimmuboy/f089f15a504cded67f6dbbcc8b2e5e71 to your computer and use it in GitHub Desktop.
Change charts layout to side by side layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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