cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
%3CLINGO-SUB%20id%3D%22lingo-sub-672465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJSL%20C%C3%B3mo%20poner%20un%20n%C3%BAmero%20(etiqueta)%20en%20gr%C3%A1ficos%20de%20l%C3%ADneas%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%3EHola%20amigos%2C%20necesito%20ayuda.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ETrac%C3%A9%20el%3CSTRONG%3E%20Gr%C3%A1fico%20de%20linea%3C%2FSTRONG%3E%20y%3CSTRONG%3E%3CEM%3E%20El%20manual%20activ%C3%B3%20la%20etiqueta%20en%20la%20fuente%20de%20datos.%20Funciona%20bien.%20%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3ESin%20embargo%2C%20cuando%20obtuve%20el%20c%C3%B3digo%20JSL%20para%20este%20diagrama%20de%20l%C3%ADneas%20y%20ejecut%C3%A9%20el%20c%C3%B3digo%20JSL%2C%3CSTRONG%3E%20%C2%A1La%20lectura%20(Valor%20de%20datos%20para%20el%20eje%20Y)%20desapareci%C3%B3!%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(Acabo%20de%20recibir%20solo%20una%20l%C3%ADnea%20sin%20n%C3%BAmero%20de%20valor)%3CBR%20%2F%3E%3CBR%20%2F%3E%20No%20estoy%20seguro%20de%20si%20tenemos%20el%20comando%20JSL%20para%20activar%20la%20etiqueta%20(Valor%20de%20datos)%20y%20tambi%C3%A9n%20c%C3%B3mo%20configurar%20el%20n%C3%BAmero%20decimal%20en%20algunos%20d%C3%ADgitos%20(2%20o%203%20d%C3%ADgitos)%20en%20el%20nivel%20de%20c%C3%B3digo.Alguien%20por%20favor%20ayude%20con%20esto.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EEl%20lado%20izquierdo%20es%20el%20gr%C3%A1fico%20de%20l%C3%ADneas%20que%20quiero%20que%20sea%20un%20gr%C3%A1fico%20JSL%20para%20m%C3%AD%20y%20el%20lado%20derecho%20es%20el%20CSV%20de%20datos%20sin%20procesar.%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%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%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSTRONG%3EDesde%20ya%20muchas%20gracias%20por%20cualquier%20soluci%C3%B3n.%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%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eventanas%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%3ERe%3A%20JSL%20C%C3%B3mo%20poner%20un%20n%C3%BAmero%20(etiqueta)%20en%20gr%C3%A1ficos%20de%20l%C3%ADneas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEn%20su%20caso%20(solo%20un%20punto%20por%20valor%20del%20eje%20X)%2C%20deber%C3%ADa%20poder%20hacer%20que%20JMP%20le%20grabe%20un%20script%20y%20lo%20use.%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%3EUna%20opci%C3%B3n%20m%C3%A1s%20s%C3%B3lida%20ser%C3%ADa%20agregar%20un%20segundo%20gr%C3%A1fico%20a%20su%20gr%C3%A1fico%20(gr%C3%A1fico%20de%20barras%20flotantes%20con%20ancho%20de%20l%C3%ADnea%200)%20y%20etiquetarlo%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%20que%20puedes%20ejecutar%20para%20probar%20c%C3%B3mo%20se%20hace%20y%20c%C3%B3mo%20se%20ve%20en%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%3ERe%3A%20JSL%20C%C3%B3mo%20poner%20un%20n%C3%BAmero%20(etiqueta)%20en%20gr%C3%A1ficos%20de%20l%C3%ADneas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%20jthi%2C%3C%2FP%3E%3CP%3EMuchas%20gracias.%20D%C3%A9jame%20intentarlo%20y%20te%20digo%20si%20funciona%20para%20m%C3%AD.%3C%2FP%3E%3CP%3EDe%20todos%20modos%2C%20gracias%20de%20nuevo.%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.