Y-Axis scale: measure unit

Hi everyone!
I was wondering if is it possible to rescale a line-chart y-axis... I have values from 1,000,000 to 5,000,000 and the Y-axis labels I see are like these: 1,000K - 2,000K and so on.
Can I set a scale factor at the top of the axis (for example: x1000) and then see the labels all divided by this factor? I can't find anything in the DTD note!
Thanks so!
DrPlexi

Sorry... I just found what I was searching for!
I put this element into the <Y1Axis></Y1Axis> section:
<ViewFormat scaleFactor="SCALEFACTOR_THOUSANDS"
scaleFactorUsed ="true"
scaleDownThousandsUsed="true"
scaleDownThousands=""/>
I just can't write (x1000) on the top of the axis... well I think I'll write it into the Axis label...
DrPlexi

Similar Messages

  • Setting Scale and Units in a PDF document

    Hi,
    I have a batch of architectural plans in PDF format. They have been generated from Autocad.
    When I want to make measurements on them, I need to specify the scale in the dialog box.
    In the Preferences > 2D Measures, there is an option tu use the document scale and unit if available.
    My documents do not have them. How can I add a scale information to these plans ? (I have Acrobat 8 Pro).
    Thanks
    Astugev

    If you only have a few to change, use the information on Deepak's link. It tells you how to use the Edit Object tool.
    If you need to change a lot of them, you should really work on the original files - PDFs are not designed to be edited very easily. It's a simpler process in Acrobat XI but you still need to change each image by hand, one at a time.
    Bill suggests exporting to Word (File > Save As > Microsoft Word) - that will give you editable content but will remove anything interactive about the PDF file and tends to mess about with formatting. It's very much a last resort option.

  • Apex Chart - Y Axis Scale customization

    Hi all,
    For a chart in Apex, is it possible to have the Y-Axis scale customized? (Let's say to present all values form 2 and 2 units for instance).
    Thank you,
    Ana-Maria

    Hi Prashant Khadatkar,
    As per my understanding, you created a line chart, you added JobStartTime and JobEndTime to values area, and added JobStartDate to category groups. You want to display data of y axis from PM to AM. In order to improve the efficiency of troubleshooting, I
    need to ask several questions:
    What’s the data type of JobStartTime and JobEndTime?
    Is the data stored in database the same as you provided?
    What’s the state of report now? Please provide some more detailed information of the report. I would be appreciated it if you could provide sample data and screenshot of the report.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to change the Y-axis scale for 100% stacked column to percentage ?

    Hi,
    I add a 100% stacked column chart to a report in Crystal Report for Enterprise. As default, the Y-axis scale shows value from 0 to 1 and the data labels display absoluted data value. Now I want the Y-axis scale to show value from 0% to 100% and the data labels to display percentage value.
    Please tell me which option of the chart to adjust ?
    Thanks
    Mau Vu Huu
    The default is like screenshot below:
    I want it to display as screenshot below:
    thanks
    Mau Vu Huu

    Looks like a bug in CR for Enterprise.
    The same chart shows a scale from 0% to 100% in the CR 2011 designer whereas CR for Enterprise seems to show a number range from 0 to 1.
    Here's a workaround:
    1) Insert a Crosstab. 'Column' should be the field you wish to show on the 'X-axis'. 'Row' should be the field that you wish to stack up on the bars. Summary should be the measure field
    2) Next, right-click one of the summary cells on the Crosstab > Select Format Total > Total > Check 'Show as Percentage of' > Grand Total > Row
    3) Right-click the Crosstab > Select Create Chart from Crosstab Data
    4) Suppress the section that holds the Crosstab
    5) Right-click the chart > Edit Chart Type > Choose 'Stacked Column'
    6) Highlight one of the numbers of the Y-axis > Select Format Total (Y) axis > Format > Currency > Choose 'Fixed' under 'Symbol Format' > Replace '$' under Symbol to '%' > Change Symbol Position to '-123$'.
    -Abhilash

  • Setting currency and measurement unit for a field in an ALV report

    Plz give sample code to set currency and measurement unit for a field in an ALV report

    dear friend
    i am seanding you
    the display form
    if you need select form
    and process form also pls keep in touch.
    if help full rewards are expecting.
    yours
    vivek
    FORM build_field_catalog .
      DATA: w_dthigh(10).
      CLEAR fcat.
      fcat-fieldname = 'VBELN'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'COMMERCIAL INVOICE'.
      fcat-seltext_m = 'Commercial Invoice'.
      fcat-seltext_l = 'COMMERCIAL INVOICE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      fcat-hotspot = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'EXNUM'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'EXCISE INVOICE'.
      fcat-seltext_m = 'Excise Invoice'.
      fcat-seltext_l = 'EXCISE INVOICE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-hotspot = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'EXDAT'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'EXCISE DATE'.
      fcat-seltext_m = 'Excise Date'.
      fcat-seltext_l = 'EXCISE DATE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'D'.
      fcat-datatype = 'DATS'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'NAME1'.
      fcat-outputlen = 30.
      fcat-seltext_s = 'CUSTOMER'.
      fcat-seltext_m = 'Customer'.
      fcat-seltext_l = 'CUSTOMER'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'ZZPD'.
      fcat-outputlen = 15.
      fcat-seltext_s = 'COUNTRY'.
      fcat-seltext_m = 'COUNTRY'.
      fcat-seltext_l = 'COUNTRY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'WERKS'.
      fcat-outputlen = 4.
      fcat-seltext_s = 'PLANT'.
      fcat-seltext_m = 'Plant'.
      fcat-seltext_l = 'PLANT'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'ARKTX'.
      fcat-outputlen = 40.
      fcat-seltext_s = 'MATERIAL DESCRIPTION'.
      fcat-seltext_m = 'Material Description'.
      fcat-seltext_l = 'MATERIAL DESCRIPTION'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'FKART'.
      fcat-outputlen = 4.
      fcat-seltext_s = 'Billing type'.
      fcat-seltext_m = 'Billing type'.
      fcat-seltext_l = 'Billing type'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'INCO1'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'INCO TERMS'.
      fcat-seltext_m = 'INCO TERMS'.
      fcat-seltext_l = 'INCO TERMS'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'INCO2'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'INCO TERMS DES'.
      fcat-seltext_m = 'INCO TERMS DES'.
      fcat-seltext_l = 'INCO TERMS DES'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
    CLEAR fcat.
    fcat-fieldname = 'FKIMG'.
    fcat-outputlen = 14.
    fcat-seltext_s = 'QUANTITY'.
    fcat-seltext_m = 'Quantity'.
    fcat-seltext_l = 'QUANTITY'.
    fcat-ddictxt = 'M'.
    fcat-inttype = 'P'.
    fcat-datatype = 'QUAN'.
    APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'FKLMG'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'QUANTITY'.
      fcat-seltext_m = 'QUANTITY'.
      fcat-seltext_l = 'QUANTITY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'QUAN'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'MEINS'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'UNIT'.
      fcat-seltext_m = 'UNIT'.
      fcat-seltext_l = 'UNIT'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'KBETR'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'RATE'.
      fcat-seltext_m = 'Rate'.
      fcat-seltext_l = 'RATE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'NSR'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'Exmill'.
      fcat-seltext_m = 'Exmill'.
      fcat-seltext_l = 'Exmill'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'KURSK'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'EXCHANGE RATE'.
      fcat-seltext_m = 'Exchange Rate'.
      fcat-seltext_l = 'Exchange Rate'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'WAERK'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'CURRENCY'.
      fcat-seltext_m = 'Currency'.
      fcat-seltext_l = 'CURRENCY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CUKY'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'LCURR1'.
      fcat-outputlen = 14.
      fcat-seltext_s = 'GROSS AMT'.
      fcat-seltext_m = 'Gross Amt'.
      fcat-seltext_l = 'GROSS AMT'.
      fcat-ddictxt = 'L'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
    fcat-do_sum = 'X'.
      APPEND fcat.
    ================================= *****************
      fheader-typ = 'H'.
      SELECT SINGLE butxt
        FROM t001
        INTO fheader-info
       WHERE bukrs EQ '1000'.
      APPEND fheader.
      CLEAR fheader.
      fheader-typ = 'H'.
      fheader-info = 'Daily Shipments For Exp'.
      APPEND fheader.
      CLEAR fheader.
    Plant
      SORT s_werks BY low.
      READ TABLE s_werks INDEX 1.
      fheader-typ = 'S'.
      WRITE s_werks-low TO fheader-key.
      SORT s_werks BY high DESCENDING.
      READ TABLE s_werks INDEX 1.
      IF s_werks-high NE space.
        CONCATENATE fheader-key 'TO' s_werks-high INTO fheader-info
                                SEPARATED BY space.
      ELSE.
        WRITE fheader-key TO fheader-info.
      ENDIF.
      CLEAR fheader-key.
      fheader-key = 'PLANT : '.
      APPEND fheader.
      CLEAR fheader.
    Billing Typ
    SORT S_FKART BY LOW.
    READ TABLE S_FKART INDEX 1.
    FHEADER-TYP = 'S'.
    WRITE S_FKART-LOW TO FHEADER-KEY.
    SORT S_FKART BY HIGH DESCENDING.
    READ TABLE S_FKART INDEX 1.
    IF S_FKART-HIGH NE SPACE.
    CONCATENATE FHEADER-KEY 'TO' S_FKART-HIGH INTO FHEADER-INFO
                             SEPARATED BY SPACE.
    ELSE.
       WRITE FHEADER-KEY TO FHEADER-INFO.
    ENDIF.
    CLEAR FHEADER-KEY.
    FHEADER-KEY = 'DOCUMENT TYPE : '.
    APPEND FHEADER.
    CLEAR FHEADER.
    Date...
      fheader-typ = 'S'.
    FHEADER-KEY = S_FKDAT-LOW.
      WRITE s_fkdat-low  TO fheader-key.
      WRITE s_fkdat-high TO w_dthigh.
      CONCATENATE fheader-key 'TO' w_dthigh INTO fheader-info
                              SEPARATED BY space.
      CLEAR fheader-key.
      fheader-key = 'PERIOD : '.
      APPEND fheader.
      CLEAR fheader.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = fevents[]
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
      READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc = 0.
        fevents-form = 'TOPOFPAGE'.
        MODIFY fevents INDEX sy-tabix.
        CLEAR fevents.
      ENDIF.
      rptname = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                        EXPORTING
                          i_callback_program                = rptname
                          it_fieldcat                       = fcat[]
                          i_default                         = 'S'
                          it_events                         = fevents[]
                          i_save                            = 'X'
                         TABLES
                           t_outtab                          = it_output[]
                      EXCEPTIONS
                        PROGRAM_ERROR                     = 1
                        OTHERS                            = 2
    ENDFORM.                    " BUILD_FIELD_CATALOG

  • Inspection lot measure unit

    Hello,
    I am straggling to find out where  from the maintenance inspection lot (source 14) takes the "measure unit" to the inspection lot quantities tab?.
    I find that "The system always selects the base unit of measure from the material master as the unit of measure for the inspection lot quantity"
    But I works with inspection lot type 14 based on function location
    Our BW  team says that those units make them a lot of trouble
    Best regards
    eyal

    Hi,
    As per SAP help, system creates lot for maintenance order and for each piece of equipment.
    My understanding is ,system  always  takes measurement unit in Inspection lot as PC for Inspection type 14
    How ever for materials  i.e ROH , HALB, FERT with inspection types 01,03,04,08 etc etc  it takes from the material master as you mentioned.
    Regards,
    Nitin

  • Axis scale for scatter plots

    I'm trying to create a specialized scatter plot, which functions similar to Excel's scatter plot. I'm having problems determining what the min and max values should be for the axes. I would like the program to determine from the input data what the initial min and max values should be on the x- and y-axis, the user can adjust later.
    So, I don't want the program to just look at the maximum value imported and round up. For instance, data = {523.7, 514.4, 271.8, 128.5}. The max value is 523.7, round up to 524. Instead, I would like to program to make 600 the largest value on the axis, because that makes it nice round number for the user to view the dataset.
    Then, I thought it really depends on the range of the data. For instance, data = {523.4, 523.8, 523.2, 522.8, 523.9}. Here, the range is very small, so it doesn't make sense to have 600 the largest value on the scale. The largest value should be 524 or 525, and the small value on the axis scale should be 521 or 522.
    Has anyone else ever worked with this problem, or have a good solution? I would really appreciate it, I've spend way too many days working on this.
    Thank you,
    Joe

    This is off the top of my head and based on a slight variation of your data.
    data: 52.34, 52.38, 52.32, 52.28, 52.39
    min=52.28 max=52.39 range=0.11
    Looking at the range we see it is "on the order of" 0.1. Ie, it is closer to the next lower power of 10 (0.1) than it is to the next higher one (1.0). So we round min down to the next lowest multiple of 0.1 (52.2) and round max up (52.4). 52.2 and 52.4 can serve as the nice numbers.
    The range is just a little bigger than a power of 10, so it might be a good idea to check what happens when it's a little less.
    data: 135 226 141 143 etc
    min=135 max=226 range=91
    range is on the order of 100, and the nice numbers are 100 and 300.
    As a variation on this strategy if we always find the power of 10 below the range (10 in the second example) we get a tighter fit but the numbers are slightly less nice - 130 and 220.
    (I'm pretty sure I've seen - and used! - some java software from the Internet somewhere to find the best scale for axes, so it might pay to look around)
    Had to edit my second example and, while I was waiting, found what I have used for this sort of thing: http://geosoft.no/software/index.html (The NiceNumbers class - it finds numbers along a range suitable for major and minor "ticks" but, if memory serves me correctly it extends the range so that the ends are nice too.)

  • Distribute​d System Manager trend y-axis scale

    I've been trying to monitor some boolean shared variables in the Distributed System Manager.  I've been looking at the trend, but I can't find a way to change the y-axis scale from 0-100.  With that scale, I can't see if a value switches from 0 to 1. Is there a way to change the scale?
    Thanks!
    Emily
    LV2012

    Nevermind, I see that it auto-scales now, the one that I was looking at, I was expecting to change, but it wasn't...

  • Problems with insert EN-Text for an measurement unit

    Hi,
    i will give an own measurement unit (VE), which we have inserted
    in german and an german text (T006A), also an english text.
    I searched via spro but i don't find any customizing entry to do this.
    Isn't there any customizing for this??
    How can i solve it?
    Thanks.
    Regards, Dieter

    Simple solved by login in SAP with
    Language = 'EN' (normally in DE).
    Than i could enter the text in EN.
    But is'nt there any customizing-posibility?
    Regards, Dieter

  • Getting No measurement unit is assigned to ISO-Code in BAPI_SHIPMENT_CREATE

    I have been entering all the required value in order to create a new shipment number linked to a delivery number and am getting the return: No measurement unit is assigned to ISO-Code SEC
    Could someone please help me or guide me in another direction to create a shipment number?
    Thank you in advance

    Thx for the fast reply.
    I sent an OSS to SAP and they replied with this:
    If there is a different order price unit in the purchase order, the
    fields Quantity in order price unit (PO_PR_QNT) and Order price unit
    (PO_PR_UOM), or Order price unit in ISO code (PO_PR_UOM_ISO) must be
    filled as well.
    As in your case, 'Order Unit' and 'Order Price Unit' may not the same,
    you need to input the above mentioned fields as well.
    Can someone tell me where are the fields mentioned above? None of the parameters have these fields.
    Thanks in advance

  • No measurement unit is assigned to ISO-Code SEC

    hI ALL,,
    am getting this error No measurement unit is assigned to ISO-Code SEC when is use ny bapi bapi_shipment_create.
    to avoid this what i need to pass and where?
    Please advise.... am unable to create shipment because of this..

    u need to pass UOM ISO code as well. Pass ISO code value to below structure field.
    BAPISHIPMENTHDUNITEM-SALES_UNIT_ISO

  • MAM 3.0: Measurement units

    Hy everybody
    We are implementing MAM 3.0 with Laptop GUI. Now we have the following problem:
    When I try to creat a time confirmation the fields are filled with the datas of the activity in the order - also the measurement unit like hours or minutes. When I try to save the time confirmation I recieve an error: "Mearurement unit invalid". When I pic the same unit from the search help I do not recieve this error and I can save the confirmation....
    Anybody know was this could be? On a other MAM installation (other customer) i do not have this problem.
    Thanks and regards,
    Claudine

    Hi Claudine!
    It looks like it is some issue with the Measurement Unit Conversion(Internal Vs External).Pl verify table T006 for details in your Backend System.Especially the Int.Unit, Commercial Unit & Technical Unit and see which one is used when you fill in the data from your order & which one is used when you use the Drop Down Value.
    Also verify how the Unit is actually being displayed(output screen display in SAP) in your order and see if it matches the display in your dropdown.
    It is definitely Unit Conversion Issue between your Order and the dropdown value.
    Since it is happening correctly when you pick the Dropdown Values and incorrectly when you fill the data from ur order, I donot think there is any issue with the Time Format under device settings in your MAM Scenario.you may have to take a close look at your order because this fills in the Unit when you donot pick from the dropdown.
    Let me know the results.
    Thank You
    Gisk

  • When I upload large streams of high frequency data the x axis scales incorrectly

    I have data at 5 kHz for 20 seconds. when I upload this data into the report tab the x axis scales incorrectly and cuts off either the head or tail of the data. The x axis always rounds to the nearest second while i need it to start with the data. Any ideas?

    Hi wpruitt3,
    Take a look at this knowledge base article.
    Best,
    Kristen

  • AnyChart DateTime axis scale

    I'm trying to display the x-axis for a chart with a "fixed" scale of months within a given period, using a Line Series chart.
    My query is like
    select null link,
    to_char(sample_date, 'DD/MM/YYYY') label,
    water_temp value
    from my_table
    I've followed the documentation here: http://www.anychart.com/products/anychart/docs/users-guide/DateTime-Axes.html
    Sadly the markup in this guide vs the source displayed is different..ie, when you go to open the first bar chart there, the xml that is showed on the pop-up doesn't match the code in the main section, and it's missing the min/max values.
    I've set up the <locale> tag as follows:
    <locale>
               <date_time_format>
                 <format><![CDATA[%MM/%dd/%yyyy]]></format>
               </date_time_format>
          </locale>I've modified the x-axis <scale> tag
    <x_axis>
                <scale type="DateTime"  major_interval_unit="Month" minimum="01/01/1999" maximum="06/01/2012"/>
    </x_axis>But I can't seem to get the chart to pick up the min's and max. From what I can get from the docs, I should be able to set the scale up on the x-axis somewhat independently from the actual data points themselves.
    Is this supported and has anyone done this successfully?
    Thanks in advance.
    Edited by: jholoman on May 18, 2011 10:56 AM

    Hi Folks
    I'd like to ask if anyone has managed to get an AnyChart gauge working with date & time based axes and data values.
    My development colleagues have scoured the documentation and tried several times to get this to work without any success.
    The AnyChart documentation suggest that date & time based axes and data values can be used with certain chart types but is then vague about their use with the Gauge chart type.
    Any tips on how to make this work would be very welcome - and if it's simply not possible, we'd like to stop chasing this particular rainbow ;-)
    Many thanks
    Andy
    Edited by: Andy Smith on Jun 14, 2011 5:14 PM

  • Application measurement/unit preferences (picas vs pixels)

    Hello,
    I need to adjust the geometricbounds of an Image within a rectangle via a JS script. But when I get the Geometric bounds for my image, it is not using the pixels unit for measurement, its using picas. However, if I manually adjust the preferences in my Desktop Indesign to Pixels, the script runs correctly.
    How can I change the preferences to "Pixels" from within my script so that I don't have to check manually?
    Thanks in advance!!
    Lloyd

    It should be possible to test a document for its measurement units then use unit values to do the conversion… This was with a quick play NOT very well thought through I must admit but it may be the way to go on this…
    #target indesign
    app.activate();
    var docRef = app.activeDocument;
    with (docRef) {
         var uU = userUnits(docRef);
         $.writeln(uU);
         var rb = spreads[0].rectangles[0].geometricBounds;
         $.writeln(rb);
         // 9.99999999999999,9.99999999999999,80,110 as millimeters my prefs
         var a = new UnitValue(5,'pt');
         $.writeln(a.as(uU));
         // 1.76388888888889
         var nb = new Array(rb[0], rb[1], rb[2]+a.as(uU), rb[3]+a.as(uU));
         $.writeln(nb);
         // 9.99999999999999,9.99999999999999,81.7638888888889,111.763888888889
         spreads[0].rectangles[0].geometricBounds = nb;
    // I only bothered to check in one direction…
    function userUnits(doc) {
         switch (doc.viewPreferences.horizontalMeasurementUnits) {
              case 2054188905 : uU = 'pt' break;
              case 2054187363 : uU = 'pc' break;
              case 2053729891 : uU = 'inch' break;
              case 2053729892 : uU = 'inch' break;
              case 2053991795 : uU = 'mm' break;
              case 2053336435 : uU = 'cm' break;
              case 2053335395 : uU = 'ci' break;
              case 1131639917 : uU = '?????'; // What do with this?
         return uU;
    It would appear to give me the same results as using mixed measures in the GUI but I've not tested much…

Maybe you are looking for