Ruby Chang Posted September 25, 2023 Share Posted September 25, 2023 I'm using the Gauge Mod in Spotfire, and not able to find the option to hide the Gauge / Value axis in the visualization, so I used JavaScript to hide them as below: var css=`.text .label { opacity: 0 !important; display: none !important;}`;$("<style/>").text(css).appendTo($("#styleDiv"));And it seemed to work, see the screenshot. But when I want to export the page as pdf, the axis shows again. Is there anyway to also remove the axis in prepared report.Thanks in advance. Link to comment Share on other sites More sharing options...
Erik Brandin 2 Posted September 27, 2023 Share Posted September 27, 2023 Hi Ruby,In the installed Analys client there is the possible to hide the axes for all visualization, the Gauge chart included. That will have affect in the exported version as well. This configuration is unfortunately currently not available in the web client, but changes made in the Analyst client will affect the web client as well.Alternetively there is the option to download the Spotfire Mods repo from GitHub and build your own version of the Gauge Mod. The only modification required is to set "placement": "none" on the gauge and value axes in mod-manifest.json.The solution you are using is not recommended as changing the HTML of Spotfire may break at any time when upgrading to a new version.Hope that helps. Link to comment Share on other sites More sharing options...
Ruby Chang Posted September 29, 2023 Author Share Posted September 29, 2023 Hi Erik,Thanks for your answer. I used the hide "Gauge Axis Selector" and "Value Axis Selector" in the installed Analytics Client, that helps me to hide the axis in editing mode. However, when I want to export the page to PDF, the axis just show again in the PDF. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now