| b ds labels | b := RTGrapher new. b extent: 300 @ 200. ds := RTStackedDataSet new. ds points: { 2 . 2.3 . 1.2 }. ds barShape width: 40. b add: ds. labels := #(x y z - -). b axisX numberOfLabels:labels size-1. b axisX numberOfTicks:labels size-1. b axisX labelConvertion: [ :item | labels at:item +1]. b build. ^ b view
The code above writes the x 2 times. I just want an x, y and z under each one of the bars. Also, I havo to do the 'item+1' thing because it somehow starts at 0, and smalltalk arrays start at 1...
Thanks!