When text of vertical labels (angle=90) has descender letters (like g, j, p, q) the labels are not centered (shifted to the left). Info on descender letters: http://en.wikipedia.org/wiki/Descender
Consider next example (the labels with mentioned above letters are shifted to the left, this is best visible with bigger text font):
p = Rdata.new
p.add_point([1,2,4,8,6,5,3],"Serie1")
p.add_point(["a","j","p","e","g","z","q"],"Serie2")
p.add_serie("Serie1")
p.set_abscise_label_serie("Serie2")
p.set_serie_name("January","Serie1")
ch = Rchart.new(700,230)
ch.set_font_properties("tahoma.ttf",18)
ch.set_graph_area(50,30,680,200)
ch.draw_filled_rounded_rectangle(7,7,693,223,5,240,240,240)
ch.draw_rounded_rectangle(5,5,695,225,5,230,230,230)
ch.draw_graph_area(255,255,255,true)
ch.draw_scale(p.get_data,p.get_data_description,Rchart::SCALE_NORMAL,150,150,150,true,90,2,true)
ch.draw_grid(4,true,230,230,230,50)
ch.set_font_properties("tahoma.ttf",6)
ch.draw_treshold(0,143,55,72,true,true)
Bar Graph
ch.draw_bar_graph(p.get_data,p.get_data_description)
ch.set_font_properties("tahoma.ttf",8)
ch.draw_legend(596,150,p.get_data_description,255,255,255)
ch.set_font_properties("tahoma.ttf",10)
ch.draw_title(50,22,"Example 9",50,50,50,585)
ch.render_png("example9.png")
When text of vertical labels (angle=90) has descender letters (like g, j, p, q) the labels are not centered (shifted to the left). Info on descender letters: http://en.wikipedia.org/wiki/Descender
Consider next example (the labels with mentioned above letters are shifted to the left, this is best visible with bigger text font):
p = Rdata.new
p.add_point([1,2,4,8,6,5,3],"Serie1")
p.add_point(["a","j","p","e","g","z","q"],"Serie2")
p.add_serie("Serie1")
p.set_abscise_label_serie("Serie2")
p.set_serie_name("January","Serie1")
ch = Rchart.new(700,230)
ch.set_font_properties("tahoma.ttf",18)
ch.set_graph_area(50,30,680,200)
ch.draw_filled_rounded_rectangle(7,7,693,223,5,240,240,240)
ch.draw_rounded_rectangle(5,5,695,225,5,230,230,230)
ch.draw_graph_area(255,255,255,true)
ch.draw_scale(p.get_data,p.get_data_description,Rchart::SCALE_NORMAL,150,150,150,true,90,2,true)
ch.draw_grid(4,true,230,230,230,50)
ch.set_font_properties("tahoma.ttf",6)
ch.draw_treshold(0,143,55,72,true,true)
Bar Graph
ch.draw_bar_graph(p.get_data,p.get_data_description)
ch.set_font_properties("tahoma.ttf",8)
ch.draw_legend(596,150,p.get_data_description,255,255,255)
ch.set_font_properties("tahoma.ttf",10)
ch.draw_title(50,22,"Example 9",50,50,50,585)
ch.render_png("example9.png")