How to configure y axis range from 10gb to 1000gb in ui builder using script

kishorkumar
Tera Contributor

Hi Folks, 

       I have a requirement to customize the Y axis from 10gb to 1000gb in Data visualization type "Area" using script functionality can any one help me with requirement.

 

 

 

 

kishorkumar_0-1696255871459.png

 

Here we need use the script functionality I am unable to find out the requirement 

kishorkumar_1-1696255914402.png

 

 

Thanks in Advance

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I don't think you need a script. If you want the y axis to run from 10gb to 1000gb you can use the axis from and to range. If you're looking to something different or make it configurable by the end user, please provide more info around  EXACTLY what you're looking to do.

Hi Brad,

    

kishorkumar_0-1696304598176.png

In table data is coming in bytes i need to show in the graph (gb) format based on byte length.

Using Axis range i cant add the 10gb or 1000gb, because that field only accepting integer value. So that am checking is there any possibility through script as well.

 

The script option just lets you determine the value of the property in a more complex use case, but it's not going to allow you to set different types of values if that makes sense.