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-672465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJSL%20Come%20inserire%20il%20numero%20(etichetta)%20sui%20grafici%20a%20linee%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CSTRONG%3ECiao%20amici%2C%20ho%20bisogno%20di%20aiuto.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EHo%20tracciato%20il%3CSTRONG%3E%20Grafico%20a%20linee%3C%2FSTRONG%3E%20E%3CSTRONG%3E%3CEM%3E%20il%20manuale%20ha%20attivato%20l'etichetta%20nell'origine%20dati.%20Funziona%20bene.%20%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3ETuttavia%2C%20quando%20ho%20ottenuto%20il%20codice%20JSL%20per%20questo%20grafico%20della%20linea%20ed%20ho%20eseguito%20il%20codice%20JSL%2C%3CSTRONG%3E%20la%20lettura%20(valore%20dati%20per%20l'asse%20Y)%20%C3%A8%20scomparsa!%3C%2FSTRONG%3E%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Acara_de_decepci%C3%B3n%3A%22%3E%3C%2FLI-EMOJI%3E%20(Ho%20appena%20ricevuto%20solo%20la%20riga%20senza%20numero%20di%20valore)%3CBR%20%2F%3E%3CBR%20%2F%3E%20Non%20sono%20sicuro%20se%20disponiamo%20del%20comando%20JSL%20per%20attivare%20l'etichetta%20(valore%20dati)%20e%20anche%20come%20impostare%20il%20numero%20decimale%20su%20alcune%20cifre%20(2%20o%203%20cifre)%20a%20livello%20di%20codice%3FQualcuno%20per%20favore%20aiutami%20su%20questo.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EIl%20lato%20sinistro%20%C3%A8%20il%20grafico%20a%20linee%20che%20desidero%20tracciare%20JSL%20per%20me%20e%20il%20lato%20destro%20%C3%A8%20il%20CSV%20dei%20dati%20grezzi.%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F56101iCC95DD2F9DE4CCCE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20alt%3D%222023-08-30%2014_51_02-Book1%20-%20Excel.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSTRONG%3EAnticipo%20grazie%20mille%20per%20l'eventuale%20soluzione.%2F%5C%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-672465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomazione%20e%20scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efinestre%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-672477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20JSL%20Come%20inserire%20il%20numero%20(etichetta)%20sui%20grafici%20a%20linee%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENel%20tuo%20caso%20(solo%20un%20singolo%20punto%20per%20valore%20dell'asse%20X)%20dovresti%20essere%20in%20grado%20di%20fare%20in%20modo%20che%20JMP%20ti%20registri%20uno%20script%20e%20lo%20usi%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1693383397581.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F56102iC8A4A441B1F39AFC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1693383397581.png%22%20alt%3D%22jthi_0-1693383397581.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EUn'opzione%20pi%C3%B9%20efficace%20sarebbe%20quella%20di%20aggiungere%20un%20secondo%20grafico%20al%20grafico%20(grafico%20a%20barre%20mobili%20con%20larghezza%20di%20linea%200)%20ed%20etichettarlo%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1693383513379.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F56103i6553C190B0165B3F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_1-1693383513379.png%22%20alt%3D%22jthi_1-1693383513379.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EScript%20che%20puoi%20eseguire%20per%20testare%20come%20%C3%A8%20fatto%20e%20come%20appare%20in%20JMP%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Size(769%2C%20776)%2C%0A%20Variables(X(%3Aname)%2C%20Y(%3Aweight))%2C%0A%20Elements(%0A%20%20Points(X%2C%20Y%2C%20Legend(3)%2C%20Summary%20Statistic(%22Mean%22))%2C%0A%20%20Line(X%2C%20Y%2C%20Legend(4))%2C%0A%20%20Bar(X%2C%20Y%2C%20Legend(5)%2C%20Bar%20Style(%22Float%22)%2C%20Label(%22Label%20by%20Value%22))%0A%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%7B%22Line%22%7D%2C%20%22%22%2C%20OutlineBox%2C%20%7BClose(0)%7D)%2C%0A%20%20Dispatch(%7B%22Bar%22%7D%2C%20%22%22%2C%20OutlineBox%2C%20%7BClose(0)%7D)%2C%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22400%22%2C%0A%20%20%20ScaleBox%2C%0A%20%20%20%7BLegend%20Model(5%2C%20Properties(0%2C%20%7BLine%20Width(0)%7D%2C%20Item%20ID(%22Mean%22%2C%201)))%7D%0A%20%20)%2C%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22Graph%20Builder%22%2C%0A%20%20%20FrameBox%2C%0A%20%20%20%7BDispatchSeg(BarSeg(1)%2C%20%7BSet%20Width%20Proportion(-1)%7D)%7D%0A%20%20)%0A%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-672891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20JSL%20Come%20inserire%20il%20numero%20(etichetta)%20sui%20grafici%20a%20linee%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%20Jthi%2C%3C%2FP%3E%3CP%3EMolte%20grazie.%20Fammi%20provare%20e%20ti%20faccio%20sapere%20se%20funziona%20per%20me.%3C%2FP%3E%3CP%3EComunque%2C%20grazie%20ancora.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
cpbatman
Level II

JSL How to put number(label) on line charts

Hello friends, need some help. 

I plotted the Line Chart and manual did turn on Label at Data Source. It works fine. However when I got the JSL code for this the Line plot, and run code JSL, the reading (Data Value for Y-Axis) is gone!    (I just got only line without number of value) 

I am not sure if do we have JSL command to turn on the label (Data Value) and also how to set decimal number to some digits (2 or 3 digits) in code level?  Anyone please help on this. 

Left side is Line chart that I want JSL plot for me and right side is raw data CSV.

2023-08-30 14_51_02-Book1 - Excel.jpg
Advance thanks a lot for any solution.  /\

2 REPLIES 2
jthi
Super User

Re: JSL How to put number(label) on line charts

In your case (only single point per X-axis value) you should be able to get JMP to record a script to you and use that

jthi_0-1693383397581.png

More robust option would be to add second plot to your graph (float bar chart with 0 line width) and label that

jthi_1-1693383513379.png

Script you can run to test out how it is done and how it looks like in JMP

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Size(769, 776),
	Variables(X(:name), Y(:weight)),
	Elements(
		Points(X, Y, Legend(3), Summary Statistic("Mean")),
		Line(X, Y, Legend(4)),
		Bar(X, Y, Legend(5), Bar Style("Float"), Label("Label by Value"))
	),
	SendToReport(
		Dispatch({"Line"}, "", OutlineBox, {Close(0)}),
		Dispatch({"Bar"}, "", OutlineBox, {Close(0)}),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(5, Properties(0, {Line Width(0)}, Item ID("Mean", 1)))}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(BarSeg(1), {Set Width Proportion(-1)})}
		)
	)
)
-Jarmo
cpbatman
Level II

Re: JSL How to put number(label) on line charts

Hi jthi,

Thanks a lot. Let me try and let you know if it work for me. 

Anyway, thanks again.