cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-762889%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETime%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762889%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAmong%20other%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FLearning-Center%2FGraphing-Improvements-New-in-JMP-16%2Fm-p%2F417273%23U417273%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-tkb-thread%20lia-fa-icon%20lia-fa-tkb%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EGraphing%20Improvements%20-%20New%20in%20JMP%2016%3C%2FA%3E%26nbsp%3B%2C%20the%20new%20Time%20Bin%20(%26amp%3BWrap)%20option%20is%20extremely%20useful%3A%3CBR%20%2F%3EContinuous%20values%20are%20binned%20and%20%3CSTRIKE%3Erepresented%20as%20ordinal%20values%3C%2FSTRIKE%3E.%20%5Bedited%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1717775636621.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1717775636621.png%22%20style%3D%22width%3A%20373px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1717775636621.png%22%20style%3D%22width%3A%20373px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64993i96D5D23E0955D0A8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1717775636621.png%22%20alt%3D%22hogi_0-1717775636621.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20only%20issue%3A%3CBR%20%2F%3EThe%20axis%20and%20grid%20look%20a%20bit%20chaotic%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_5-1717775960472.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_5-1717775960472.png%22%20style%3D%22width%3A%20266px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_5-1717775960472.png%22%20style%3D%22width%3A%20266px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64998i5614A19A0F612225%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_5-1717775960472.png%22%20alt%3D%22hogi_5-1717775960472.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20prefer%20a%20more%20structured%20view%20like%20this%20one%26nbsp%3B%20-%20with%20%3CSTRONG%3Elong%20divider%3C%2FSTRONG%3E%20and%20lower%20frame%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_6-1717776081956.png%22%20style%3D%22width%3A%20260px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_6-1717776081956.png%22%20style%3D%22width%3A%20260px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_6-1717776081956.png%22%20style%3D%22width%3A%20260px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64999i2D4807CE2166C77E%2Fimage-dimensions%2F260x52%3Fv%3Dv2%22%20width%3D%22260%22%20height%3D%2252%22%20role%3D%22button%22%20title%3D%22hogi_6-1717776081956.png%22%20alt%3D%22hogi_6-1717776081956.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20the%20settings%20for%20Tick%20labels%20and%20grids%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_2-1717775754495.png%22%20style%3D%22width%3A%20203px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1717775754495.png%22%20style%3D%22width%3A%20203px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1717775754495.png%22%20style%3D%22width%3A%20203px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64995iA4EE7C9076A53128%2Fimage-dimensions%2F203x150%3Fv%3Dv2%22%20width%3D%22203%22%20height%3D%22150%22%20role%3D%22button%22%20title%3D%22hogi_2-1717775754495.png%22%20alt%3D%22hogi_2-1717775754495.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E...%20are%26nbsp%3B%20missing%20in%20the%20GUI%20for%20Axis%20with%20Time%20Bin%20settings%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_3-1717775857585.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1717775857585.png%22%20style%3D%22width%3A%20290px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1717775857585.png%22%20style%3D%22width%3A%20290px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64996i863EAE8B4D7D3A2E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_3-1717775857585.png%22%20alt%3D%22hogi_3-1717775857585.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-762889%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EData%20Exploration%20and%20Visualization%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762929%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3ERe%3A%20Time%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762929%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EIf%20the%20user%20wants%20to%20bin%20by%20week%20-%20to%20get%20Plots%20for%20Year%20%26amp%3B%20week%2C%20there%20is%20another%20issue%20(%232)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eby%20default%2C%20JMP%20creates%20the%20binned%20date%20with%20the%20format%20DD%20%2F%20MM%20%2F%20YYYY.%3C%2FP%3E%3CP%3ESo%2C%20instead%20of%20%3CSTRONG%3Eweek%3C%2FSTRONG%3E%2C%20still%20dates%20(with%20day%20and%20month)%20is%20used%20up%20as%20axis%20labels.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20how%20to%20tell%20JMP%20that%20the%20week%20should%20be%20used.%3CBR%20%2F%3EPlan%20A%3A%26nbsp%3B%3CBR%20%2F%3E-%20adjust%20the%20Format%20of%20the%20current%20axis%20-%20to%20use%20Week%20instead%20of%20day%20and%20month.%20and%20indeed%2C%20it%20works%20-%20but%20the%20user%20has%20to%20do%20the%20job%20for%20every%20single%20plot%20he%20wants%20to%20adjust.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EBetter%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EThe%20user%20can%20directy%20change%20the%20Format%20of%20the%20column%20(see%20code%20below)%20-%20then%20the%20%3CSTRONG%3Eweek%3C%2FSTRONG%3E%26nbsp%3Balso%20gets%20into%20the%20axis%20labels%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_2-1717851678064.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1717851678064.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65015i09313D64705478A1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_2-1717851678064.png%22%20alt%3D%22hogi_2-1717851678064.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eeven%20cooler%3A%20If%20the%20user%20enables%20nesting%20on%20the%20axis%2C%20JMP%20automatically%20shows%20the%20week%20AND%20the%20year%20-%20nested.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20wait%20-%20label%20nesting%20seems%20to%20have%20an%20issue%20with%20ISO%20Dates%20%2C%20Argh%20!!!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1717851022835.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1717851022835.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65013iD4D14F7556A0658A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1717851022835.png%22%20alt%3D%22hogi_0-1717851022835.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20does%20the%20center%20plot%20show%202022%20instead%20of%202023%3F!%3F%3F!%3C%2FP%3E%3CP%3EConverting%20Week%20and%20Week2%20to%20Format%20%22Best%22%20shows%3A%20both%20columns%20have%20the%20same%20entries.%20So%2C%20it's%20not%20an%20issue%20of%20the%20column%2C%20right%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENew%20Table(%20%22test%22%2C%0A%09Add%20Rows(%202%20)%2C%0A%09Compress%20File%20When%20Saved(%201%20)%2C%0A%09New%20Column(%20%22date%22%2C%0A%09%09Format(%20%22d%2Fm%2Fy%22%2C%2010%20)%2C%0A%09%09Set%20Values(%20%5B3768422400%2C%203797366400%5D%20)%0A%09)%2C%0ANew%20Column(%20%22Week%5Bdate%5D%22%2C%0A%09Format(%20%22Format%20Pattern%22%2C%20%22%3CYYYY%3E%20cw%3CWW%3E%22%2C%2015%20)%2C%0A%09Formula(%20Date%20Increment(%20%3Adate%2C%20%22Week%22%2C%200%20)%20)%0A)%2C%0ANew%20Column(%20%22Week%5Bdate%5D_2%22%2C%0A%09Format(%20%22Format%20Pattern%22%2C%20%22%3CDL%3E%3CDD%3E.%3CMM%3E.%3CYYYY%3E%22%2C%2015%20)%2C%0A%09Formula(%20Date%20Increment(%20%3Adate%2C%20%22Week%22%2C%200%20)%20)%0A)%0A)%3B%0A%0AGraph%20Builder(%0A%09Variables(%20X(%20%3Adate%20)%2C%20X(%20%3A%22Week%5Bdate%5D%22n%20)%2CX(%20%3A%22Week%5Bdate%5D_2%22n%20)%20)%2C%0A%09Elements(%20Position(%201%2C%201%20)%2C%20Points(%20X%20)%20)%2C%0A%09Elements(%20Position(%202%2C%201%20)%2C%20Points(%20X%20)%20)%2C%0A%09Elements(%20Position(%203%2C%201%20)%2C%20Points(%20X%20)%20)%2C%0A%09SendToReport(%0A%09%09Dispatch(%20%7B%7D%2C%20%22date%22%2C%20ScaleBox%2C%20%7BLabel%20Row%20Nesting(%202%20)%7D%20)%2C%0A%09%09Dispatch(%20%7B%7D%2C%20%22Week%5Bdate%5D%22%2C%20ScaleBox%2C%20%7BLabel%20Row%20Nesting(%202%20)%7D%20)%2C%0A%09%09Dispatch(%20%7B%7D%2C%20%22Week%5Bdate%5D_2%22%2C%20ScaleBox%2C%20%7BLabel%20Row%20Nesting(%202%20)%7D%20)%0A%09)%0A)%3B%26nbsp%3B%3CP%3E%3CBR%20%2F%3E-%26gt%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2Fsome-improvements-bugfixes-for-nested-binned-time-date-axes%2Fm-p%2F762949%23U762949%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3Esome%20improvements%20%2B%20bugfixes%20for%20nested%20binned%20time%2Fdate%20axes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FYYYY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Time%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAn%20Issue%20(1)%3A%26nbsp%3B%3CBR%20%2F%3EThe%20below%20code%20generates%20a%20graph%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1717848274119.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1717848274119.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1717848274119.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65012i8AD5B913238B428F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1717848274119.png%22%20alt%3D%22hogi_0-1717848274119.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%20the%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EDate%20Increment(.%2C%20%22Week%22%2C%200)%20%3D%2001Jan0000%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eruins%20the%20scale%20on%20the%20x%20axis.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EOpen(%20%22%24SAMPLE_DATA%2FAircraft%20Incidents.jmp%22%20)%3B%0A%0A%3AEvent%20Date%5B1%5D%20%3D%20.%3B%0A%0AGraph%20Builder(%0A%09Transform%20Column(%0A%09%09%22Week%5BEvent%20Date%5D%22%2C%0A%09%09Format(%20%22Format%20Pattern%22%2C%20%22%3CMM%3E%3C%2FMM%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3C%2FMM%3E%3C%2FDD%3E%3CDD%3E%3CYYYY%3E%22%2C%2015%20)%2C%0A%09%09Formula(%20Date%20Increment(%20%3AEvent%20Date%2C%20%22Week%22%2C%200%20)%20)%0A%09)%2C%0A%09Variables(%20X(%20%3A%22Week%5BEvent%20Date%5D%22n%20)%20)%2C%0A%09Elements(%20Bar(%20X%2C%20Legend(%204%20)%20)%20)%0A)%3B%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...%20so%2C%20one%20has%20to%20fix%20the%20formula%20manually%20via%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EIf(is%20missing(%3AEvent%20Date)%2C%20.%2C%20Date%20Increment(%20%3AEvent%20Date%2C%20%22Week%22%2C%200%20))%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FYYYY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762914%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Time%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762914%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFor%20some%20seconds%20I%20thought%20that%20going%20via%20Time%20Bin%20could%20fix%20the%20issue%20with%20the%20too%20dynamic%20adjustment%20of%20the%20tick%20spacing%20in%20Graph%20builder%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FHeatmap-option-fixed-Tick-spacing-aggregation-area%2Fm-p%2F571486%23U571486%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EHeatmap%20-%20option%3A%20fixed%20Tick%20spacing%20(aggregation%20area)%3C%2FA%3E%26nbsp%3B.%3CBR%20%2F%3EBut%20clear%3A%20if%20it's%20just%20a%20transform%20column%20-%20and%20there%20is%20still%20the%20continuous%20axis%20scale%2C%20which%20is%20affected%20by%20the%20rescale%20bug.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Time%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20seems%20like%20that%20is%20the%20only%20option%20you%20currently%20have%20(I%20haven''t%20tried%20if%20you%20could%20force%20those%20by%20scripting).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Time%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20are%20right%2C%20besides%20being%20quite%20%22ordinal%22%2C%20the%20values%20stay%20%22continuous%22%20-%20displayed%20on%20a%20continuous%20time%20scale.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20say%3A%26nbsp%3B%3CSPAN%3E%3CEM%3E%3CSTRONG%3Etick%20labels%20are%20for%20continuous%20variables%3C%2FSTRONG%3E%3C%2FEM%3E%20as%20well%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_1-1717783793755.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_1-1717783793755.png%22%20style%3D%22width%3A%20339px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_1-1717783793755.png%22%20style%3D%22width%3A%20339px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65002iC17C44CE178B8439%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_1-1717783793755.png%22%20alt%3D%22hogi_1-1717783793755.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...%20but%20quite%20unfortunately%2C%20the%20cool%20tick%20label%20settings%20to%20adjust%20the%20graph%20are%20missing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20the%20only%20way%20it%20to%20manually%20change%20the%20modeling%20type%20to%20ordinal%2Fnominal%20of%20the%20created%20transform%20column.%3C%2FP%3E%3CP%3EBut%20then%3A%3CBR%20%2F%3E-%20I%20lose%20the%20%3CSTRONG%3ELabel%20row%20nesting%3C%2FSTRONG%3E%20functionality%3C%2FP%3E%3CP%3E%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Acara_de_decepci%C3%B3n%3A%22%3E%3C%2FLI-EMOJI%3E-%20months%20with%20missing%20data%20will%20just%20be%20removed%20from%20the%20plot%20(%20at%20least%20till%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FColumn-Property-Inclusive-Values%2Fm-p%2F730865%23U730865%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%3CLI-EMOJI%20id%3D%22lia_folded-hands%22%20title%3D%22%3Amanos_unidas_para_la_oraci%C3%B3n%3A%22%3E%3C%2FLI-EMOJI%3E%20Column%20Property%3A%20Inclusive%20Values%3C%2FA%3E%26nbsp%3B%20is%20available%20...)%20(*)%3CBR%20%2F%3E%3CBR%20%2F%3EAt%20the%20moment%2C%20I%20think%20the%20only%20way%20is%3A%3C%2FP%3E%3CP%3Egenerate%20Year%20and%20month%20manually%20as%20ordinal%20values%20and%20then%20nest%20them%20on%20the%20x%20axis.%20%5Bwith%20issue%20(*)%5D%3C%2FP%3E%3CP%3Eright%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762892%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Time%20binning%20-%20how%20to%20change%20the%20Tick%20labels%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762892%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHave%20you%20made%20sure%20your%20columns%20are%20nominal%2Fordinal%20(I%20think%20tick%20labels%20are%20for%20categorical%20variables)%3F%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2Findex.shtml%23page%2Fjmp%2Fcustomize-axes-and-axis-labels-in-graphs.shtml%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2Findex.shtml%23page%2Fjmp%2Fcustomize-axes-and-axis-labels-in-graphs.shtml%23%3C%2FA%3E%20%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FDD%3E%3C%2FDL%3E%3C%2FWW%3E%3C%2FYYYY%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
hogi
Level XII

Time binning - how to change the Tick labels?

Among other  , the new Time Bin (&Wrap) option is extremely useful:
Continuous values are binned and represented as ordinal values. [edited]

 

hogi_0-1717775636621.png

 

The only issue:
The axis and grid look a bit chaotic:

hogi_5-1717775960472.png

 

I'd prefer a more structured view like this one  - with long divider and lower frame:

hogi_6-1717776081956.png

 

but the settings for Tick labels and grids:
hogi_2-1717775754495.png


... are  missing in the GUI for Axis with Time Bin settings:

hogi_3-1717775857585.png

 

Why?

6 REPLIES 6
jthi
Super User

Re: Time binning - how to change the Tick labels?

Have you made sure your columns are nominal/ordinal (I think tick labels are for categorical variables)?

https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/customize-axes-and-axis-labels-in-grap...

 

 

-Jarmo
hogi
Level XII

Re: Time binning - how to change the Tick labels?

You are right, besides being quite "ordinal", the values stay "continuous" - displayed on a continuous time scale.

 

I would say: tick labels are for continuous variables as well:

hogi_1-1717783793755.png

 

... but quite unfortunately, the cool tick label settings to adjust the graph are missing.

 

So, the only way it to manually change the modeling type to ordinal/nominal of the created transform column.

But then:
- I lose the Label row nesting functionality

- months with missing data will just be removed from the plot ( at least till🙏 Column Property: Inclusive Values  is available ...) (*)

At the moment, I think the only way is:

generate Year and month manually as ordinal values and then nest them on the x axis. [with issue (*)]

right?

jthi
Super User

Re: Time binning - how to change the Tick labels?

It seems like that is the only option you currently have (I haven''t tried if you could force those by scripting).

-Jarmo
hogi
Level XII

Re: Time binning - how to change the Tick labels?

For some seconds I thought that going via Time Bin could fix the issue with the too dynamic adjustment of the tick spacing in Graph builder: Heatmap - option: fixed Tick spacing (aggregation area) .
But clear: if it's just a transform column - and there is still the continuous axis scale, which is affected by the rescale bug.

hogi
Level XII

Re: Time binning - how to change the Tick labels?

An Issue (1): 
The below code generates a graph like this:

hogi_0-1717848274119.png

 

Unfortunately the

Date Increment(., "Week", 0) = 01Jan0000;

ruins the scale on the x axis.

 

Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );

:Event Date[1] = .;

Graph Builder(
	Transform Column(
		"Week[Event Date]",
		Format( "Format Pattern", "<MM></><DD></><YYYY>", 15 ),
		Formula( Date Increment( :Event Date, "Week", 0 ) )
	),
	Variables( X( :"Week[Event Date]"n ) ),
	Elements( Bar( X, Legend( 4 ) ) )
);

 

... so, one has to fix the formula manually via 

If(is missing(:Event Date), ., Date Increment( :Event Date, "Week", 0 ))
hogi
Level XII

Re: Time binning - how to change the Tick labels?

If the user wants to bin by week - to get Plots for Year & week, there is another issue (#2):

 

by default, JMP creates the binned date with the format DD / MM / YYYY.

So, instead of week, still dates (with day and month) is used up as axis labels.

 

So, how to tell JMP that the week should be used.
Plan A: 
- adjust the Format of the current axis - to use Week instead of day and month. and indeed, it works - but the user has to do the job for every single plot he wants to adjust.

 

Better:
The user can directy change the Format of the column (see code below) - then the week also gets into the axis labels:

hogi_2-1717851678064.png

 

even cooler: If the user enables nesting on the axis, JMP automatically shows the week AND the year - nested.

 

but wait - label nesting seems to have an issue with ISO Dates , Argh !!!

hogi_0-1717851022835.png

 

Why does the center plot show 2022 instead of 2023?!??!

Converting Week and Week2 to Format "Best" shows: both columns have the same entries. So, it's not an issue of the column, right?

New Table( "test",
	Add Rows( 2 ),
	Compress File When Saved( 1 ),
	New Column( "date",
		Format( "d/m/y", 10 ),
		Set Values( [3768422400, 3797366400] )
	),
New Column( "Week[date]",
	Format( "Format Pattern", "<yyyy> cw<ww>", 15 ),
	Formula( Date Increment( :date, "Week", 0 ) )
),
New Column( "Week[date]_2",
	Format( "Format Pattern", "<DD>.<MM>.<YYYY>", 15 ),
	Formula( Date Increment( :date, "Week", 0 ) )
)
);

Graph Builder(
	Variables( X( :date ), X( :"Week[date]"n ),X( :"Week[date]_2"n ) ),
	Elements( Position( 1, 1 ), Points( X ) ),
	Elements( Position( 2, 1 ), Points( X ) ),
	Elements( Position( 3, 1 ), Points( X ) ),
	SendToReport(
		Dispatch( {}, "date", ScaleBox, {Label Row Nesting( 2 )} ),
		Dispatch( {}, "Week[date]", ScaleBox, {Label Row Nesting( 2 )} ),
		Dispatch( {}, "Week[date]_2", ScaleBox, {Label Row Nesting( 2 )} )
	)
); 


-> some improvements + bugfixes for nested binned time/date axes