- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Packed Chart
For Graph Builder/Bar/Packed chart, how can I change the way how items are selected as "primary labels"?
By default the highest values of the first framebox are used, right?
Can I change it to: highest values summed over all frameboxes?
e.g.for cars data
dt = Open( "$SAMPLE_DATA/Cars.jmp" );
gb = Graph Builder(
Variables( X( :Make ), Group X( :Year ), Color( :Make ) ),
Elements(
Bar(
X,
Legend( 6 ),
Bar Style( "Packed" ),
Packed Primaries( 5 ),
Packed Primary Labels( "On axis" ),
Summary Statistic( "Max" )
)
)
);
there are many entries with :Make==Toyota, but the first FrameBox (year= 87) just contains 4 x Toyota - and T comes too late in the alphabet. So Dodge and Hyundai win "the race":
dt << select where(:Make == "Toyota");
(gb << xpath("//FrameBox")) << Fill Selection Mode( "Selected Outlined" )
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Packed Chart
Created:
Dec 28, 2024 12:35 PM
| Last Modified: Dec 28, 2024 9:37 AM
(259 views)
| Posted in reply to message from hogi 12-28-2024
Using Column properties / value order, I can adjust the order - to manually get Toyota into the primary labels:
:make << Set Property( "Value Order", {Custom Order( {"Toyota"} )} )
.. . at position #4.
If I want to apply the same trick for Mitsubishi, it fails - too few entries in 1987:
:make << Delete Property( "Value Order" ) << Set Property( "Value Order", {Custom Order( {"Mitsubishi"} )} )