In this post we will explain how to add Y axis labels for various widgets.
Having Y Axis labels clearly explains what data is being shown in the dashboard. This is especially important when there are two Y axes.
Create a widget that has both X and Y axes (bar graph, line graph, etc.).
Open the widget editor (pencil), edit script (options). Paste the pieces of code below into the script editor. Be sure to change the font within the single quotes to the labels you want for each axis.
//The first one is for the main, left Y axis
se.queryResult.yAxis.title.text = 'This is the left Y Axis';
//This script is for the secondary, right Y axis
se.queryResult.yAxis.title.text = 'This is the right Y Axis';
Hit Save. Refresh the page. Hit Apply.
Please sign in to leave a comment.