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%20Comment%20mettre%20un%20num%C3%A9ro%20(%C3%A9tiquette)%20sur%20des%20graphiques%20lin%C3%A9aires%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%3EBonjour%20les%20amis%2C%20j'ai%20besoin%20d'aide.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Ej'ai%20trac%C3%A9%20le%3CSTRONG%3E%20Graphique%20en%20ligne%3C%2FSTRONG%3E%20et%3CSTRONG%3E%3CEM%3E%20Le%20manuel%20a%20activ%C3%A9%20l'%C3%A9tiquette%20dans%20la%20source%20de%20donn%C3%A9es.%20%C3%87a%20fonctionne%20bien.%20%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3ECependant%2C%20lorsque%20j'ai%20re%C3%A7u%20le%20code%20JSL%20pour%20cela%2C%20le%20trac%C3%A9%20lin%C3%A9aire%20et%20j'ai%20ex%C3%A9cut%C3%A9%20le%20code%20JSL%2C%3CSTRONG%3E%20la%20lecture%20(valeur%20des%20donn%C3%A9es%20pour%20l'axe%20Y)%20a%20disparu%26nbsp%3B!%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(Je%20viens%20de%20recevoir%20seulement%20une%20ligne%20sans%20num%C3%A9ro%20de%20valeur)%3CBR%20%2F%3E%3CBR%20%2F%3E%20Je%20ne%20sais%20pas%20si%20nous%20avons%20une%20commande%20JSL%20pour%20activer%20l'%C3%A9tiquette%20(valeur%20des%20donn%C3%A9es)%20et%20%C3%A9galement%20comment%20d%C3%A9finir%20un%20nombre%20d%C3%A9cimal%20sur%20certains%20chiffres%20(2%20ou%203%20chiffres)%20au%20niveau%20du%20code%26nbsp%3B%3FN'importe%20qui%2C%20s'il%20vous%20pla%C3%AEt%2C%20aide%20%C3%A0%20ce%20sujet.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3ELe%20c%C3%B4t%C3%A9%20gauche%20est%20le%20graphique%20lin%C3%A9aire%20que%20je%20veux%20pour%20moi%20et%20le%20c%C3%B4t%C3%A9%20droit%20est%20le%20graphique%20CSV%20des%20donn%C3%A9es%20brutes.%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%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%3CBR%20%2F%3E%3CSTRONG%3EMerci%20beaucoup%20pour%20toute%20solution.%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%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eles%20fen%C3%AAtres%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%20Comment%20mettre%20un%20num%C3%A9ro%20(%C3%A9tiquette)%20sur%20des%20graphiques%20lin%C3%A9aires%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDans%20votre%20cas%20(un%20seul%20point%20par%20valeur%20de%20l'axe%20X)%2C%20vous%20devriez%20pouvoir%20demander%20%C3%A0%20JMP%20d'enregistrer%20un%20script%20pour%20vous%20et%20de%20l'utiliser.%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%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%2FP%3E%0A%3CP%3EUne%20option%20plus%20robuste%20consisterait%20%C3%A0%20ajouter%20un%20deuxi%C3%A8me%20trac%C3%A9%20%C3%A0%20votre%20graphique%20(graphique%20%C3%A0%20barres%20flottantes%20avec%20une%20largeur%20de%20ligne%20de%200)%20et%20%C3%A0%20l'%C3%A9tiqueter.%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%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%2FP%3E%0A%3CP%3EScript%20que%20vous%20pouvez%20ex%C3%A9cuter%20pour%20tester%20comment%20cela%20se%20fait%20et%20%C3%A0%20quoi%20cela%20ressemble%20dans%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%20Comment%20mettre%20un%20num%C3%A9ro%20(%C3%A9tiquette)%20sur%20des%20graphiques%20lin%C3%A9aires%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESalut%20Jthi%2C%3C%2FP%3E%3CP%3EMerci%20beaucoup.%20Laissez-moi%20essayer%20et%20vous%20dire%20si%20cela%20fonctionne%20pour%20moi.%3C%2FP%3E%3CP%3EQuoi%20qu'il%20en%20soit%2C%20merci%20encore.%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.