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%20So%20platzieren%20Sie%20Zahlen%20(Beschriftungen)%20in%20Liniendiagrammen%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%3EHallo%20Freunde%2C%20ich%20brauche%20Hilfe.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIch%20habe%20das%20geplottet%3CSTRONG%3E%20Liniendiagramm%3C%2FSTRONG%3E%20Und%3CSTRONG%3E%3CEM%3E%20Im%20Handbuch%20wurde%20die%20Beschriftung%20bei%20Datenquelle%20aktiviert.%20Es%20funktioniert%20gut.%20%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3EAls%20ich%20jedoch%20den%20JSL-Code%20f%C3%BCr%20dieses%20Liniendiagramm%20erhielt%20und%20den%20JSL-Code%20ausf%C3%BChrte%2C%3CSTRONG%3E%20der%20Messwert%20(Datenwert%20f%C3%BCr%20Y-Achse)%20ist%20weg!%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(Ich%20habe%20gerade%20nur%20eine%20Zeile%20ohne%20Wertzahl%20erhalten)%3CBR%20%2F%3E%3CBR%20%2F%3E%20Ich%20bin%20mir%20nicht%20sicher%2C%20ob%20wir%20einen%20JSL-Befehl%20haben%2C%20um%20die%20Beschriftung%20(Datenwert)%20zu%20aktivieren%2C%20und%20wie%20ich%20die%20Dezimalzahl%20auf%20Codeebene%20auf%20einige%20Ziffern%20(2%20oder%203%20Ziffern)%20festlegen%20kann.Bitte%20helfen%20Sie%20mir%20dabei.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EAuf%20der%20linken%20Seite%20befindet%20sich%20das%20Liniendiagramm%2C%20das%20ich%20als%20JSL-Diagramm%20verwenden%20m%C3%B6chte%2C%20und%20auf%20der%20rechten%20Seite%20sind%20die%20Rohdaten%20im%20CSV-Format.%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%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%3CBR%20%2F%3E%3CSTRONG%3EVielen%20Dank%20im%20Voraus%20f%C3%BCr%20jede%20L%C3%B6sung.%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%3EAutomatisierung%20und%20Skripterstellung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%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%3EBetreff%3A%20JSL%20Wie%20man%20Zahlen%20(Beschriftungen)%20in%20Liniendiagramme%20einf%C3%BCgt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIn%20Ihrem%20Fall%20(nur%20ein%20einzelner%20Punkt%20pro%20X-Achsenwert)%20sollten%20Sie%20JMP%20dazu%20bringen%20k%C3%B6nnen%2C%20ein%20Skript%20f%C3%BCr%20Sie%20aufzuzeichnen%20und%20dieses%20zu%20verwenden%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%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%2FP%3E%0A%3CP%3EEine%20robustere%20Option%20w%C3%A4re%2C%20Ihrem%20Diagramm%20ein%20zweites%20Diagramm%20hinzuzuf%C3%BCgen%20(Float-Balkendiagramm%20mit%20einer%20Linienbreite%20von%200)%20und%20dieses%20zu%20beschriften%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%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%2FP%3E%0A%3CP%3ESkript%2C%20das%20Sie%20ausf%C3%BChren%20k%C3%B6nnen%2C%20um%20zu%20testen%2C%20wie%20es%20gemacht%20wird%20und%20wie%20es%20in%20JMP%20aussieht%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%3EBetreff%3A%20JSL%20Wie%20man%20Zahlen%20(Beschriftungen)%20in%20Liniendiagramme%20einf%C3%BCgt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20jthi%2C%3C%2FP%3E%3CP%3EVielen%20Dank.%20Lassen%20Sie%20mich%20versuchen%2C%20Ihnen%20mitzuteilen%2C%20ob%20es%20bei%20mir%20funktioniert.%3C%2FP%3E%3CP%3EWie%20auch%20immer%2C%20nochmals%20vielen%20Dank.%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.