cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-209809%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EGraph%20Builder%3A%20X%20Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209809%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20zusammen%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIch%20habe%20eine%20Tabelle%20mit%20einer%20Gruppierungsspalte%20und%20mehreren%20Antwortvariablen.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENew%20Table(%20%22Test%22%2C%0A%20Add%20Rows(%207%20)%2C%0A%20New%20Column(%20%22GROUP%22%2C%0A%20%20Character%2C%0A%20%20%22Nominal%22%2C%0A%20%20Set%20Values(%20%7B%22a%22%2C%20%22b%22%2C%20%22c%22%2C%20%22d%22%2C%20%22e%22%2C%20%22f%22%2C%20%22g%22%7D%20)%0A%20)%2C%0A%20New%20Column(%20%22Y%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22Best%22%2C%2012%20)%2C%0A%20%20Set%20Values(%20%5B7%2C%20.%2C%206%2C%20.%2C%204%2C%20.%2C%202%5D%20)%0A%20)%2C%0A%20New%20Column(%20%22Y%202%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22Best%22%2C%2012%20)%2C%0A%20%20Set%20Values(%20%5B7%2C%206%2C%202%2C%203%2C%20.%2C%20.%2C%20.%5D%20)%2C%0A%20%20Set%20Display%20Width(%2049%20)%0A%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIch%20m%C3%B6chte%20ein%20Balkendiagramm%20mit%20einem%20Spaltenumschalter%20erstellen.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0A%20Size(%20527%2C%20448%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%0A%20%20X(%20%3AGROUP%2C%20Order%20By(%20%3AY%2C%20Ascending%2C%20Order%20Statistic(%20%22Mean%22%20)%20)%20)%2C%0A%20%20Y(%20%3AY%20)%0A%20)%2C%0A%20Elements(%20Bar(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%2C%0A%20Column%20Switcher(%20%3AY%2C%20%7B%3AY%2C%20%3AY%202%7D%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EMein%20Problem%20ist%2C%20dass%20ich%20keine%20Ebenen%20ohne%20Daten%20anzeigen%20m%C3%B6chte.%20Mit%20anderen%20Worten%2C%20ich%20m%C3%B6chte%20die%20Ebenen%20%E2%80%9Eb%E2%80%9C%2C%20%E2%80%9Ed%E2%80%9C%20und%20%E2%80%9Ef%E2%80%9C%20f%C3%BCr%20Y%20und%20die%20Ebenen%20%E2%80%9Ee%E2%80%9C%2C%20%E2%80%9Ef%E2%80%9C%2C%20%E2%80%9Eg%E2%80%9C%20f%C3%BCr%20Y2%20nicht%20sehen.%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%22Image1.png%22%20style%3D%22width%3A%20766px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Image1.png%22%20style%3D%22width%3A%20766px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Image1.png%22%20style%3D%22width%3A%20766px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17362i8BA7CA5F300E175C%2Fimage-dimensions%2F766x486%3Fv%3Dv2%22%20width%3D%22766%22%20height%3D%22486%22%20role%3D%22button%22%20title%3D%22Image1.png%22%20alt%3D%22Image1.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%3EIch%20habe%20versucht%2C%20eine%20%E2%80%9Ewhere%E2%80%9C-Klausel%20zu%20verwenden%2C%20aber%20leider%20wird%20diese%20vom%20Column%20Switcher%20nicht%20ber%C3%BCcksichtigt.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHaben%20Sie%20eine%20Idee%2C%20wie%20wir%20das%20machen%20k%C3%B6nnten%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDank%20im%20Voraus!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212611%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212611%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6884%22%20target%3D%22_blank%22%3E%20%40geoffrey_mann%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVielen%20Dank%20f%C3%BCr%20Ihr%20Engagement%20und%20die%20zus%C3%A4tzlichen%20Informationen.%3C%2FP%3E%3CP%3EIch%20werde%20damit%20beginnen%2C%20die%20Funktion%20bei%20meinen%20Kollegen%20bekannt%20zu%20machen%2C%20um%20Stimmen%20zu%20erhalten!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWas%20das%20Skript%20angeht%2C%20bevorzuge%20ich%20es%2C%20die%20aktuelle%20Tabelle%20nicht%20zu%20beeinflussen%2C%20daher%20halte%20ich%20den%20lokalen%20Datenfilter%20f%C3%BCr%20eine%20gute%20Option!%20Ich%20werde%20diese%20M%C3%B6glichkeit%20genauer%20untersuchen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F750%22%20target%3D%22_blank%22%3E%20%40anne_sa%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIch%20bin%20so%20froh%2C%20dass%20das%20geholfen%20hat.%20Das%20ist%20etwas%2C%20was%20ich%20schon%20seit%20einiger%20Zeit%20tun%20wollte%2C%20und%20Sie%20haben%20mir%20die%20Motivation%20dazu%20gegeben.%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%0A%3CP%3EAu%C3%9Ferdem%20stimme%20ich%20Ihnen%20zu%20und%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2610%22%20target%3D%22_blank%22%3E%20%40vince_faller%3C%2FA%3E%20dass%20ein%20Listener%20oder%20eine%20M%C3%B6glichkeit%20zum%20benutzerdefinierten%20Verhalten%20rund%20um%20den%20Spaltenumschalter%20im%20Allgemeinen%20f%C3%BCr%20diejenigen%20n%C3%BCtzlich%20w%C3%A4re%2C%20die%20ihre%20eigenen%20Add-Ins%20programmieren%20oder%20das%20Verhalten%20%C3%A4ndern.%20Wir%20machen%20das%20st%C3%A4ndig%20in%20JMP%20Clinical%20und%20JMP%20Genomics%2C%20weshalb%20ich%20es%20lobend%20erw%C3%A4hnt%20habe%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5937%22%20target%3D%22_blank%22%3E%20%40kelci_miclaus%3C%2FA%3E%20Und%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4867%22%20target%3D%22_blank%22%3E%20%40drewfoglia%3C%2FA%3E%20f%C3%BCr%20den%20Code%2C%20den%20ich%20ausgeliehen%20habe.%3C%2FP%3E%0A%3CP%3EWenn%20wir%20nur%20einen%20JMP-Produktmanager%20kennen%20w%C3%BCrden%2C%20der%20dabei%20helfen%20k%C3%B6nnte%2C%20dies%20zu%20erreichen.%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%20Bitte%20stimmen%20Sie%20beide%20f%C3%BCr%20die%20Funktion%2C%20sie%20hilft%20bei%20der%20Begr%C3%BCndung.%3C%2FP%3E%0A%3CP%3EWas%20die%20endg%C3%BCltigen%20%C3%84nderungen%20betrifft%2C%20sollten%20Sie%20die%20Kontrolle%20%C3%BCber%20den%20von%20Ihnen%20geschriebenen%20Wrapper-Code%20haben.%20Die%20API-Aufrufe%20sollen%20lediglich%20die%20X-%20und%20Y-Variablen%20ersetzen.%20Ich%20werde%20diese%20Funktionen%20weiterhin%20erweitern%2C%20um%20Programmierern%20dabei%20zu%20helfen%2C%20das%20Wrapping%20von%20GraphBuilder%20zu%20vereinfachen%2C%20damit%20sie%20Add-Ins%20schneller%20erstellen%20k%C3%B6nnen.%20Was%20ich%20hier%20sagen%20m%C3%B6chte%2C%20ist%2C%20nur%20Funktionen%20hinzuzuf%C3%BCgen%2C%20um%20GraphBuilder%20in%20der%20API-Datei%20zu%20aktualisieren%2C%20sodass%20jede%20von%20Ihnen%20verwendete%20%E2%80%9ETreiber%E2%80%9C-Datei%20das%20Auswahlverhalten%20aufweist.%20Beachten%20Sie%2C%20dass%20ich%20dt%20%26lt%3B%26lt%3B%20clearrowstates()%3B%20Rufen%20Sie%20unterhalb%20der%20%E2%80%9EReplaceGB...%E2%80%9C-Aufrufe%20auf%2C%20um%20die%20%C3%84nderung%20von%20Zeilenzust%C3%A4nden%20in%20der%20Tabelle%20an%20einer%20Stelle%20zu%20organisieren.%20Beachten%20Sie%20au%C3%9Ferdem%2C%20dass%20dieser%20Code%20die%20Zeilenzust%C3%A4nde%20der%20Hauptdatentabelle%20%C3%A4ndert%2C%20anstatt%20einen%20lokalen%20Filter%20zum%20%C3%84ndern%20des%20GraphBuilder-Berichts%20zu%20verwenden.%20M%C3%B6glicherweise%20m%C3%B6chten%20Sie%20Ihren%20Ansatz%20%C3%A4ndern%2C%20wenn%20Sie%20mehrere%20Berichte%20der%20Datentabelle%20w%C3%BCnschen.%20Dies%20sind%20jedoch%20nur%20Notizen%20und%20dienen%20als%20zus%C3%A4tzliche%20Informationen%20f%C3%BCr%20zuk%C3%BCnftige%20Apps%2C%20die%20Sie%20m%C3%B6glicherweise%20mit%20JMP%20erstellen.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBeachten%20Sie%20die%20Clearrowstates%20in%20Ihrer%20Treiberdatei%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%20%20dt%20%26lt%3B%26lt%3B%20clearrowstates()%3B%0A%20%20%20newvarname%20%3D%20lb%26lt%3B%3CGETSELECTED%3E%3C%2FGETSELECTED%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EBasierend%20auf%20meinem%20%E2%80%9Evereinfachten%E2%80%9C%20Verst%C3%A4ndnis%20dessen%2C%20was%20Sie%20tun%20m%C3%B6chten%2C%20empfehle%20ich%20Ihnen%2C%20einfach%20dt%20%26lt%3B%26lt%3B%20clearrowstates()%3B%20zu%20ersetzen.%20mit%20dt%20%26lt%3B%26lt%3B%3CSPAN%3E%20ausschlie%C3%9Fen%3C%2FSPAN%3E%20()%3B%20Lassen%20Sie%20mich%20wissen%2C%20ob%20Sie%20dieses%20Verhalten%20bevorzugen%20oder%20ob%20es%20komplexer%20ist.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212287%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212287%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Eich%20stimme%20dir%20vollkommen%20zu%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2610%22%20target%3D%22_blank%22%3E%20%40vince_faller%3C%2FA%3E%20%2C%20es%20w%C3%A4re%20ein%20sehr%20sch%C3%B6nes%20Feature%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EIch%20denke%2C%20ich%20werde%20es%20zur%20JMP-Wunschliste%20hinzuf%C3%BCgen!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212286%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212286%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVielen%20Dank%20f%C3%BCr%20diese%20Skripte%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6884%22%20target%3D%22_blank%22%3E%20%40geoffrey_mann%3C%2FA%3E%3C%2FP%3E%3CP%3EEs%20ist%20definitiv%20sauberer%20als%20das%2C%20was%20ich%20gemacht%20habe!%3C%2FP%3E%3CP%3ENur%20eines%20m%C3%B6chte%20ich%20anpassen%3A%20Jedes%20Mal%2C%20wenn%20wir%20im%20Listenfeld%20eine%20neue%20Variable%20ausw%C3%A4hlen%2C%20wird%20der%20Zeilenstatus%20zur%C3%BCckgesetzt.%20Wenn%20also%20einige%20Punkte%20markiert%2Fausgeschlossen%2Ffarbig%20markiert%20wurden%2C%20gehen%20diese%20Informationen%20verloren%2C%20was%20%C3%A4rgerlich%20sein%20kann.%3C%2FP%3E%3CP%3EAnsonsten%20entspricht%20es%20meinen%20Erwartungen%2C%20also%20nochmals%20vielen%20Dank!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212046%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212046%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEs%20w%C3%A4re%20cool%2C%20wenn%20der%20Spaltenschalter%20eine%20%26lt%3B%3CSET%20function%3D%22%22%3E%3C%2FSET%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211884%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211884%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3C%2FLINGO-BODY%3E%3C%2FP%3E%3CP%3EHallo%20nochmal%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F750%22%20target%3D%22_blank%22%3E%20%40anne_sa%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3ETut%20mir%20leid%20f%C3%BCr%20die%20Verz%C3%B6gerung%2C%20ich%20hatte%20tats%C3%A4chlich%20ein%20paar%20Tage%20lang%20die%20Grippe%20und%20geriet%20etwas%20in%20Verzug.%3C%2FP%3E%0A%3CP%3EIch%20habe%20zwei%20Dateien%20angeh%C3%A4ngt.%20Die%20erste%20JSL-Datei%20(Beispielskript%20zum%20%C3%84ndern%20von%20Zeilenzust%C3%A4nden.jsl)%20ist%20die%20Treiberdatei%20und%20der%20Pfad%20in%20der%20zweiten%20Zeile%20ist%20der%20vollst%C3%A4ndige%20Pfad%20des%20Speicherorts%2C%20an%20dem%20Sie%20die%20zweite%20Datei%20(GraphBuilderJSLAPI.jsl)%20platzieren.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2FInclude%20script%20to%20modify%20GraphBuilder%20with%20some%20special%20functions%20defined%0Ainclude(ConvertFilePath(%22%2FUsers%2Fgemann%2FProjects%2FPrototypes%2FJSLClasses%2FGraphBuilderJSLAPI.jsl%22%2C%20absolute%2C%20windows))%3B%0A%0A%2F%2FCreate%20a%20sample%20table%0Adt%20%3D%20New%20Table(%20%22Test%22%2C%0A%20Add%20Rows(%207%20)%2C%0A%20New%20Column(%20%22GROUP%22%2C%0A%20%20Character%2C%0A%20%20%22Nominal%22%2C%0A%20%20Set%20Values(%20%7B%22a%22%2C%20%22b%22%2C%20%22c%22%2C%20%22d%22%2C%20%22e%22%2C%20%22f%22%2C%20%22g%22%7D%20)%0A%20)%2C%0A%20New%20Column(%20%22Y%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22Best%22%2C%2012%20)%2C%0A%20%20Set%20Values(%20%5B7%2C%20.%2C%206%2C%20.%2C%204%2C%20.%2C%202%5D%20)%0A%20)%2C%0A%20New%20Column(%20%22Y%202%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22Best%22%2C%2012%20)%2C%0A%20%20Set%20Values(%20%5B7%2C%206%2C%202%2C%203%2C%20.%2C%20.%2C%20.%5D%20)%2C%0A%20%20Set%20Display%20Width(%2049%20)%0A%20)%0A)%3B%0A%0A%2F%2FAdd%20a%20new%20window%20and%20build%20a%20listbox%20beside%20a%20graphbuilder%0ANew%20Window(%20%22CustomColumnSwitcher%20Window%22%2C%0A%20%2F%2FStart%20by%20getting%20all%20of%20the%20columns%20in%20the%20current%20datatable%0A%20CNames%20%3D%20dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names(%20Numeric%20)%3B%0A%20Show(%20CNames%20)%3B%0A%0A%20%2F%2FUser%20a%20horizontal%20layout%0A%20HListBox(%0A%20%20%2F%2FUse%20a%20ListBox%20as%20the%20new%20Column%20Switcher%0A%20%20lb%20%3D%20List%20Box(%20%0A%20%20%20CNames%2C%20%0A%20%20%20maxSelected(1)%2C%0A%20%20%20%2F%2FThe%20next%20lines%20specify%20the%20script%20that%20gets%20run%20when%20an%20item%20in%20listbox%20is%20selected%0A%20%20%20dt%20%26lt%3B%26lt%3B%20clearrowstates()%3B%0A%20%20%20newvarname%20%3D%20lb%26lt%3B%3CGETSELECTED%3E%3C%2FGETSELECTED%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EViel%20Gl%C3%BCck%20und%20lass%20es%20mich%20wissen%2C%20wenn%20du%20irgendwelche%20Probleme%20hast.%20Nat%C3%BCrlich%20sind%20diese%20Dateien%20nicht%20vollst%C3%A4ndig%20getestet!!!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211524%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211524%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6884%22%20target%3D%22_blank%22%3E%20%40geoffrey_mann%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIch%20habe%20etwas%20geschrieben%2C%20um%20grunds%C3%A4tzlich%20den%20Spaltenumschalter%20zu%20aktualisieren%20und%20die%20Achseneinstellung%20zu%20%C3%A4ndern%20(wie%20von%20vorgeschlagen).%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2026%22%20target%3D%22_blank%22%3E%20%40julianisch%3C%2FA%3E%20)%20jedes%20Mal%2C%20wenn%20wir%20eine%20neue%20Variable%20ausw%C3%A4hlen.%20Da%20es%20jedoch%20m%C3%B6glicherweise%20nicht%20sehr%20effizient%20ist%2C%20bin%20ich%20nat%C3%BCrlich%20sehr%20an%20Ihrer%20L%C3%B6sung%20interessiert!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211191%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211191%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20Anne%2C%3C%2FP%3E%0A%3CP%3EIch%20wollte%20noch%20einmal%20bei%20Ihnen%20nachfragen%2C%20ob%20Sie%20eine%20Codierungsl%C3%B6sung%20f%C3%BCr%20Ihr%20Problem%20gefunden%20haben.%20Es%20hat%20eine%20Weile%20gedauert%2C%20bis%20ich%20die%20Zeit%20gefunden%20habe%2C%20aber%20ich%20habe%20eine%20Codierungsl%C3%B6sung%2C%20falls%20Sie%20noch%20eine%20ben%C3%B6tigen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210672%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210672%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2026%22%20target%3D%22_blank%22%3E%20%40julianisch%3C%2FA%3E%20!%3C%2FP%3E%3CP%3EIch%20sch%C3%A4tze%20Ihre%20Bem%C3%BChungen%2C%20mein%20Problem%20zu%20l%C3%B6sen%2C%20sehr!%20Leider%20kann%20die%20Anzahl%20der%20nicht%20fehlenden%20Ebenen%20von%20Antwortvariable%20zu%20Antwortvariable%20unterschiedlich%20sein.%20Ihr%20letzter%20Beitrag%20kann%20jedoch%20durchaus%20f%C3%BCr%20die%20%E2%80%9ECodierungsl%C3%B6sung%E2%80%9C%20verwendet%20werden.%20Das%20%C3%84ndern%20der%20Achseneinstellungen%20basierend%20auf%20der%20Ebenennummer%20ist%20in%20der%20Tat%20eine%20gute%20M%C3%B6glichkeit%2C%20anzuzeigen%2C%20was%20erwartet%20wird.%20Ich%20werde%20in%20diese%20Richtung%20arbeiten.%20Vielen%20Dank%20f%C3%BCr%20Ihre%20Hilfe!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F750%22%20target%3D%22_blank%22%3E%20%40anne_sa%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3EIch%20verstehe%20genau%2C%20was%20du%20meinst.%20Es%20k%C3%B6nnte%20wirklich%20darauf%20hinauslaufen%2C%20etwas%20Benutzerdefiniertes%20zu%20programmieren%2C%20aber%20lassen%20Sie%20mich%20noch%20einen%20interaktiven%20Versuch%20unternehmen.%20Gibt%20es%20f%C3%BCr%20jedes%20Y%20immer%20nur%20vier%20(wenn%20auch%20unterschiedliche)%20Gruppenebenen%3F%20Wenn%20ja%2C%20dann%20ist%20hier%20ein%20m%C3%B6glicher%20Hack%3A%20Graph%20Builder%20beh%C3%A4lt%20die%20X-Achse%20beim%20Spaltenwechsel%20bei%2C%20und%20da%20Ihre%20Ebenen%20aufsteigend%20sortiert%20sind%20(also%20leere%20Ebenen%20immer%20am%20Ende%20stehen)%2C%20k%C3%B6nnten%20wir%20die%20Achse%20so%20anpassen%2C%20dass%20nur%20vier%20Ebenen%20angezeigt%20werden%20.%20Sie%20k%C3%B6nnen%20dies%20in%20den%20Achseneinstellungen%20tun%20(Rechtsklick%20auf%20die%20Achse%20%26gt%3B%20Achseneinstellungen)%20oder%20indem%20Sie%20einfach%20das%20Ende%20der%20Achse%20herausziehen%2C%20bis%20die%20fehlenden%20Ebenen%20ausgeblendet%20sind.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3AGROUP%2C%20Order%20By(%20%3AY%2C%20Ascending%2C%20Order%20Statistic(%20%22Mean%22%20)%20)%20)%2C%20Y(%20%3AY%20)%20)%2C%0A%20Elements(%20Bar(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%2C%0A%20Column%20Switcher(%20%3AY%2C%20%7B%3AY%2C%20%3AY%202%7D%20)%2C%0A%20SendToReport(%20Dispatch(%20%7B%7D%2C%20%22GROUP%22%2C%20ScaleBox%2C%20%7BMin(%20-0.5%20)%2C%20Max(%203.5%20)%2C%20Inc(%201%20)%2C%20Minor%20Ticks(%200%20)%7D%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22resize.gif%22%20style%3D%22width%3A%20794px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22resize.gif%22%20style%3D%22width%3A%20794px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22resize.gif%22%20style%3D%22width%3A%20794px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17424i9EB3D637716D6E5E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22resize.gif%22%20alt%3D%22resize.gif%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EVielleicht%20eine%20m%C3%B6gliche%20L%C3%B6sung%20in%20Ihrem%20Fall%3F%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2026%22%20target%3D%22_blank%22%3E%40julianisch%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210462%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210462%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDanke%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2026%22%20target%3D%22_blank%22%3E%20%40julianisch%3C%2FA%3E%20f%C3%BCr%20diesen%20Vorschlag!%20Tats%C3%A4chlich%20k%C3%B6nnen%20nur%20Ebenen%20mit%20Daten%20angezeigt%20werden.%3C%2FP%3E%3CP%3EDas%20einzige%20Problem%20(aber%20vielleicht%20verlange%20ich%20zu%20viel)%20ist%2C%20dass%20wir%20die%20Verbindung%20zwischen%20den%20Zeilen%20verlieren.%20Wenn%20ich%20beispielsweise%20f%C3%BCr%20Y%20die%20Ebene%20%E2%80%9Ea%E2%80%9C%20ausw%C3%A4hle%20und%20den%20entsprechenden%20Wert%20f%C3%BCr%20Y2%20sehen%20m%C3%B6chte%2C%20wird%20nichts%20hervorgehoben%2C%20wenn%20ich%20Y2%20mit%20dem%20lokalen%20Datenfilter%20ausw%C3%A4hle.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVielleicht%20ist%20die%20Codierung%20des%20erwarteten%20Verhaltens%20die%20L%C3%B6sung%20...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F750%22%20target%3D%22_blank%22%3E%20%40anne_sa%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3EWie%20Sie%20herausgefunden%20haben%2C%20beobachtet%20Graph%20Builder%20diese%20Kategorien%20Ihrer%20Gruppierungsvariablen%20und%20besteht%20darauf%2C%20sie%20grafisch%20darzustellen%20(was%20normalerweise%20eine%20gute%20Sache%20ist)%2C%20da%20es%20davon%20ausgeht%2C%20dass%20Sie%20einen%20Wert%20in%20ihnen%20finden%2C%20da%20Sie%20sie%20in%20Ihrer%20Tabelle%20behalten%20haben.%20In%20Ihrem%20Fall%20mit%20dem%20Spaltenumschalter%20ist%20es%20nicht%20so%20einfach%2C%20nur%20diese%20Zeilen%20zu%20l%C3%B6schen%2C%20da%20f%C3%BCr%20Ihre%20anderen%20Spalten%20bereits%20Daten%20vorhanden%20sind.%20Eine%20L%C3%B6sung%20besteht%20darin%2C%20Ihre%20Daten%20so%20umzustrukturieren%2C%20dass%20die%20fehlenden%20Zeilen%20entfernt%20werden%20k%C3%B6nnen.%20Ich%20w%C3%BCrde%20dies%20tun%2C%20indem%20ich%20Folgendes%20stapele%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETabellen%20%26gt%3B%20Stapel%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.00%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.00%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.00%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17414i8685967BBE3116FF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202019-05-23%20at%203.16.00%20PM.png%22%20alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.00%20PM.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EData%20Table(%20%22Test%22%20)%20%26lt%3B%26lt%3B%20Stack(%0A%20columns(%20%3AY%2C%20%3AY%202%20)%2C%0A%20Source%20Label%20Column(%20%22Label%22%20)%2C%0A%20Stacked%20Data%20Column(%20%22Data%22%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EDadurch%20wird%20eine%20Tabelle%20wie%20die%20folgende%20zur%C3%BCckgegeben%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.39%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.39%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.39%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17415i05ABD401BA2850D1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202019-05-23%20at%203.16.39%20PM.png%22%20alt%3D%22Screen%20Shot%202019-05-23%20at%203.16.39%20PM.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EEntfernen%20Sie%20die%20fehlenden%20Werte%2C%20indem%20Sie%20mit%20der%20rechten%20Maustaste%20auf%20eine%20der%20fehlenden%20Zellen%20klicken%20und%20die%20entsprechenden%20Werte%20ausw%C3%A4hlen.%20L%C3%B6schen%20Sie%20dann%20diese%20Zeilen.%20Dadurch%20wird%20die%20angeh%C3%A4ngte%20Tabelle%20zur%C3%BCckgegeben.%20Erstellen%20Sie%20nun%20Ihr%20Diagramm%2C%20verwenden%20Sie%20jedoch%20einen%20lokalen%20Datenfilter%20anstelle%20eines%20Spaltenumschalters%2C%20um%20auszuw%C3%A4hlen%2C%20was%20zuvor%20eine%20Antwort%20aus%20Ihrer%20Beschriftungsspalte%20war%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3AGROUP%20)%2C%20Y(%20%3AData%20)%20)%2C%0A%20Elements(%20Bar(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%2C%0A%20Local%20Data%20Filter(%0A%20%20Add%20Filter(%0A%20%20%20columns(%20%3ALabel%20)%2C%0A%20%20%20Where(%20%3ALabel%20%3D%3D%20%22Y%22%20)%2C%0A%20%20%20Display(%20%3ALabel%2C%20Size(%20160%2C%2017%20)%20)%0A%20%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ldf.gif%22%20style%3D%22width%3A%20874px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ldf.gif%22%20style%3D%22width%3A%20874px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ldf.gif%22%20style%3D%22width%3A%20874px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17416iF14E7BB8FCBC5869%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ldf.gif%22%20alt%3D%22ldf.gif%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDa%20keine%20Zeilen%20fehlen%2C%20zeigt%20Graph%20Builder%20nur%20die%20Gruppenebenen%20an%2C%20die%20mit%20Daten%20gef%C3%BCllt%20sind.Sie%20k%C3%B6nnen%20dies%20nat%C3%BCrlich%20auf%20eine%20beliebige%20Anzahl%20von%20Y-Ebenen%20verallgemeinern%20%E2%80%93%20stapeln%20Sie%20einfach%20alle%20im%20ersten%20Schritt.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIch%20hoffe%20das%20hilft!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2026%22%20target%3D%22_blank%22%3E%40julianisch%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-210408%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-210408%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EHallo%20Anne%2C%3CBR%20%2F%3E%20Ich%20sehe%20jetzt%20Ihr%20Problem%20und%20besch%C3%A4ftige%20mich%20immer%20noch%20damit.%20Ich%20glaube%2C%20dass%20hierf%C3%BCr%20ein%20wenig%20Codierung%20erforderlich%20ist.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-209837%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209837%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDanke%20f%C3%BCr%20deine%20Antwort%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6884%22%20target%3D%22_blank%22%3E%20%40geoffrey_mann%3C%2FA%3E%3C%2FP%3E%3CP%3ELeider%20ist%20es%20nicht%20genau%20das%2C%20was%20ich%20gerne%20h%C3%A4tte%2C%20denn%20wenn%20ich%20mit%20dem%20Spaltenumschalter%20eine%20neue%20Spalte%20ausw%C3%A4hle%2C%20basiert%20der%20lokale%20Datenfilter%20immer%20noch%20auf%20Y.%3C%2FP%3E%3CP%3ENat%C3%BCrlich%20ist%20es%20m%C3%B6glich%2C%20den%20lokalen%20Datenfilter%20manuell%20zu%20%C3%A4ndern%2C%20aber%20da%20ich%20eine%20recht%20gro%C3%9Fe%20Anzahl%20an%20Variablen%20haben%20kann%2C%20w%C3%A4re%20es%20gro%C3%9Fartig%2C%20wenn%20es%20eine%20automatische%20M%C3%B6glichkeit%20g%C3%A4be%2C%20dies%20zu%20tun%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-209835%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Graph%20Builder%3A%20X-Kategorien%20ohne%20Daten%20ausblenden%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209835%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20Anne%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIhre%20Vorstellung%2C%20dass%20Sie%20eine%20%E2%80%9EWhere%E2%80%9C-Klausel%20oder%20vielmehr%20einen%20Filter%20ben%C3%B6tigen%2C%20ist%20richtig.%20Versuchen%20Sie%2C%20die%20folgende%20Zeile%20zu%20Ihrem%20Graphbuilder-Skript%20hinzuzuf%C3%BCgen%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ELocal%20Data%20Filter(%20Add%20Filter(%20columns(%20%3AY%20)%2C%20Where(%20%3AY%20%26gt%3B%3D%202%20%26amp%3B%20%3AY%20%26lt%3B%3D%207%20)%20)%20)%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIch%20hoffe%2C%20dass%20ein%20lokaler%20Datenfilter%20in%20Ordnung%20ist%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0A%20Size(%20527%2C%20448%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%0A%20%20X(%20%3AGROUP%2C%20Order%20By(%20%3AY%2C%20Ascending%2C%20Order%20Statistic(%20%22Mean%22%20)%20)%20)%2C%0A%20%20Y(%20%3AY%20)%0A%20)%2C%0A%20Elements(%20Bar(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%2C%0A%20Column%20Switcher(%20%3AY%2C%20%7B%3AY%2C%20%3AY%202%7D%20)%2C%0A%20Local%20Data%20Filter(%20Add%20Filter(%20columns(%20%3AY%20)%2C%20Where(%20%3AY%20%26gt%3B%3D%202%20%26amp%3B%20%3AY%20%26lt%3B%3D%207%20)%20)%20)%0A%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
anne_sa
Level VI

Graph Builder: hide X categories with no data

Hello everyone,

 

I have a table with a grouping column and several response variables.

New Table( "Test",
	Add Rows( 7 ),
	New Column( "GROUP",
		Character,
		"Nominal",
		Set Values( {"a", "b", "c", "d", "e", "f", "g"} )
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, ., 6, ., 4, ., 2] )
	),
	New Column( "Y 2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, 6, 2, 3, ., ., .] ),
		Set Display Width( 49 )
	)
)

I would like to create a bar chart with a column switcher.

Graph Builder(
	Size( 527, 448 ),
	Show Control Panel( 0 ),
	Variables(
		X( :GROUP, Order By( :Y, Ascending, Order Statistic( "Mean" ) ) ),
		Y( :Y )
	),
	Elements( Bar( X, Y, Legend( 4 ) ) ),
	Column Switcher( :Y, {:Y, :Y 2} )
)

My problem is that I do not want to display levels with no data. In other words, I do not want to see levels "b", "d" and "f" for Y and levels "e", "f", "g" for Y2.

 

Image1.png

 

I tried to use a "where" clause but unfortunately it is not taken into acount by the Column Switcher.

 

Do you have any idea of how we could do that?

 

Thanks in advance!

15 REPLIES 15

Re: Graph Builder: hide X categories with no data

Hi again @anne_sa ,

Sorry for the delay, I actually caught the flu for a few days and got behind a little.

I have attached two files.  The first jsl file (Example Script for Changing row states.jsl) is the driver file and the path in the second line is the full path of the location that you place the second file (GraphBuilderJSLAPI.jsl).

 

//Include script to modify GraphBuilder with some special functions defined
include(ConvertFilePath("/Users/gemann/Projects/Prototypes/JSLClasses/GraphBuilderJSLAPI.jsl", absolute, windows));

//Create a sample table
dt = New Table( "Test",
	Add Rows( 7 ),
	New Column( "GROUP",
		Character,
		"Nominal",
		Set Values( {"a", "b", "c", "d", "e", "f", "g"} )
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, ., 6, ., 4, ., 2] )
	),
	New Column( "Y 2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, 6, 2, 3, ., ., .] ),
		Set Display Width( 49 )
	)
);

//Add a new window and build a listbox beside a graphbuilder
New Window( "CustomColumnSwitcher Window",
	//Start by getting all of the columns in the current datatable
	CNames = dt << Get Column Names( Numeric );
	Show( CNames );

	//User a horizontal layout
	HListBox(
		//Use a ListBox as the new Column Switcher
		lb = List Box( 
			CNames, 
			maxSelected(1),
			//The next lines specify the script that gets run when an item in listbox is selected
			dt << clearrowstates();
			newvarname = lb<<getselected();
			ReplaceGBXVariable(gb,"GROUP",newvarname);
			ReplaceGBYVariable(gb,newvarname);
			rs = dt << select where( IsMissing( Column(newvarname)[] ) );  
			dt << exclude();
		),
		//Build the original GraphBuilder
		gb = Graph Builder(
			Size( 527, 448 ),
			Show Control Panel( 0 ),
			Variables(
				X( :GROUP, Order By( :Y, Ascending, Order Statistic( "Mean" ) ) ),
				Y( :Y )
			),
			Elements( Bar( X, Y, Legend( 4 ) ) )
		);
		
		// This line is added for the special case of filtering values that are missing from the graph
		rs = currentdatatable() << select where(IsMissing(:Y));  
		dt << exclude();
	);
);

Good luck and let me know if you have any issues.  Of course these files are not fully tested!!!  :)

 

vince_faller
Super User (Alumni)

Re: Graph Builder: hide X categories with no data

It'd be cool if column switch has a <<Set Function() message, so you could get full capability out of it while still being able to add on to it. 

Vince Faller - Predictum
anne_sa
Level VI

Re: Graph Builder: hide X categories with no data

 I totally agree with you @vince_faller, it would be a very nice feature :)

I think I will add it to the JMP Wish List!

anne_sa
Level VI

Re: Graph Builder: hide X categories with no data

Thank you very much for these scripts @geoffrey_mann 

It is definitely cleaner than what I did!

There is just one thing that I would like to adapt: each time we select a new variable in the list box, the row status are reset. Thus if some points have been labelled / excluded / colored... we will loose this information and it can be annoying.

 Otherwise it matches my expectations so thanks again!

Re: Graph Builder: hide X categories with no data

Hi @anne_sa 

I'm so glad this helped.  It is something I have wanted to do for a while and you gave me the motivation.  :)

Also, I agree with you and @vince_faller that a listener or a way to custom behavior around column switcher would be generally useful to those programming their own addins or changing behavior.  We do this all of the time in JMP Clinical and JMP Genomics, which is why I gave credit to @kelci_miclaus and @drewfoglia for the code I borrowed.

If only we knew a JMP product manager who could help make this happen.  :)  Please both of you vote for the feature and it will help with the justification.

As to the final changes, you should have control in your wrapper code you wrote.  The API calls are simply meant to replace the X and Y variables.  I will keep adding to these functions to help programmers simplify wrapping GraphBuilder so that they may build addins faster.  What I am trying to say here is only add functios to update GraphBuilder in the API file so that any "driver" file you use has the selection behavior.  Note that I could have put the dt << clearrowstates(); call below the ReplaceGB... calls to organize the changing of row states to the table in one place.  Also note that this code is modifying the row states of the main data table instead of using a local filter to modify the GraphBuilder report.  You may want to change your approach if you want multiple reports of the data table.  But these are just notes and intended as extra information for the future apps you may build with JMP.

 

Notice the clearrowstates in your driver file:

 

			dt << clearrowstates();
			newvarname = lb<<getselected();
			ReplaceGBXVariable(gb,"GROUP",newvarname);
			ReplaceGBYVariable(gb,newvarname);
			rs = dt << select where( IsMissing( Column(newvarname)[] ) );  
			dt << exclude();

Based on my "simplistic" understanding of what you are trying to do I recommend you simply replace dt << clearrowstates(); with dt << unexclude();  Let me know if that is the behavior that you prefer or if it is more complex than that.

anne_sa
Level VI

Re: Graph Builder: hide X categories with no data

Hi @geoffrey_mann ,

 

Thank you for your involvement and the additional informations.

I will start advertising the feature to my colleagues to get votes! :)

 

Regarding the script, I prefer not affecting the current table so I think the local data filter is a good option! I will explore this possibility deeper.