Blondeau Vincent wrote
I experienced some kind of bug with the scales of the chart...
Maybe related? The following script starts the first x value way off to the right, even though I thought #stackX just uses 1, 2, 3... ============ data := { { Date yesterday. '3' }. { Date today. '30' } }.
"Charting the data" b := RTCharterBuilder new. b extent: 500 @ 400. b interaction popupText: [ :row | row date julianDayNumber ]. b points: data. b connectDotColor: Color green. b allY: [ :r | r second asNumber ]. b allX: [ :d | d first julianDayNumber ]. b stackX. b axisY. b build. b view. ============ 3 tested scenarios: - #stackX and then #axisX - the two x values span from about 3.0 - 4.0, with the axis labeled only from 0.0 to 2.0. - #axisX and then #stackX - the labels are up to the first date point x value, but the point itself is still shifted more to the right - only #stackX - no labels, but first point shifted way to right from origin
Then as a sanity check, I manually put -43000 into the first x data point, with only #stackX and it still showed the first point to the right of the origin.
----- Cheers, Sean -- View this message in context: http://forum.world.st/Charter-axes-scale-tp4772485p4773884.html Sent from the Moose mailing list archive at Nabble.com.