Hi!
I have two x-variables:
Meeting.# is numeric ordinal (just the Row())
Meeting.ID is character nominal (can be date or some other text descriptor)
I need to plot attendance (X_2-X_8) against Meeting.# so that I can get a trend. But I want to display Meeting.ID as the x-axis labels.
I tried this approach: https://community.jmp.com/t5/Discussions/How-to-Add-Value-Labels-to-a-Column-through-JSL/td-p/41604
But had issues with type-mismatch.
There are other applications of this problem: Experiment.# and Experiment.Description
Thanks!
Greetings Mark,
Here is what I did to get to the solution that I believe you need
Below are the results I got using your Meeting Attendance BarChart with the column that I generated
I have attached the data table I used
Mark, Jim's solution is a good one, and simpler to implement.
This is an FYI regarding your label script. Below is a script that will provide you with the labels you want. The value labels are assigned to :Meeting.#. Note, since :Meeting.# is numeric it does not require the "1" = "V1_0" but 1 = "V1_0".
Names Default To Here( 1 );
meetID = column("Meeting.#");
textID = column("X__10");
NamesValuesList = {};
For( i = 1, i <= nitems(meetID << get values ), i++,
Insert Into(
NamesValuesList,
Parse(
Char( meetID[i] ) || " = \!"" || textID[i] || "\!""
)
)
);
meetID << Set Property( "Value Labels", Eval( NamesValuesList ) );
Greetings Mark,
Here is what I did to get to the solution that I believe you need
Below are the results I got using your Meeting Attendance BarChart with the column that I generated
I have attached the data table I used
Mark, Jim's solution is a good one, and simpler to implement.
This is an FYI regarding your label script. Below is a script that will provide you with the labels you want. The value labels are assigned to :Meeting.#. Note, since :Meeting.# is numeric it does not require the "1" = "V1_0" but 1 = "V1_0".
Names Default To Here( 1 );
meetID = column("Meeting.#");
textID = column("X__10");
NamesValuesList = {};
For( i = 1, i <= nitems(meetID << get values ), i++,
Insert Into(
NamesValuesList,
Parse(
Char( meetID[i] ) || " = \!"" || textID[i] || "\!""
)
)
);
meetID << Set Property( "Value Labels", Eval( NamesValuesList ) );
Thanks! From your script I know see why mine did not work:
Parse( "\!"" || Char(ValuesList[i]) || "\!" = \!"" || LabelsList[i] || "\!"" ) )
Hello,
Is there an elegant way to add the value of each bar in the graph, prefereably vertically on the bar?
Thanks!
Thanks! Guess I can't use "Bullet" and Value labels together.
Jim:
Thanks for the elegant solution!