Hi all,
I am a newbie here. I was trying to build a barchart where the X- axis (bar categories) is a categorical column in my table and Y-axis (bar height) is the count of unique values in another column. Code for troubleshooting:
// Make data table
t = New Table( "test", Add Rows( 5 ),
New Column( "Customer", Character, "Nominal",
Set Values( {"A", "A", "B", "B", "B", "C", "D", "E","E"} ) ),
New Column( "OrderID", Character, "Nominal",
Set Values( {"1", "2", "3", "4", "5", "6", "7", "8","9"} ) ),
New Column( "Prime member", Character,"Nominal",
Set Values( {"Non-Prime", "Non-Prime", "Prime", "Prime", "Prime", "Non-Prime", "Non-Prime", "Prime","Prime"} ) ),
);
Please see the screenshots for what I'm looking for. My data table:
![Capture.PNG Capture.PNG](https://community.jmp.com/t5/image/serverpage/image-id/15137i74586245C2EC78B4/image-size/large?v=v2&px=999)
What I want:
![Capture2.PNG Capture2.PNG](https://community.jmp.com/t5/image/serverpage/image-id/15138i85EDE434CF1198A6/image-dimensions/406x378?v=v2)