For some reason I cannot make the x-axis labels (individual years) show on my charts view here - http://oti2.dev.fourstudio.co.uk/who-we-are/our-performance/statistics

The years are shown in the callout - so are being output, but I would like them to sit under each bar. I have seen other similar issues, and have added the rotation to the label as someone suggested, but still haven't met with any luck.

Is there anything else I could be missing?

Thanks for your help.

Comments

mrded’s picture

Try to use following:

$chart['xaxis'] = array(
    '#type' => 'chart_xaxis',
    '#labels' => array(2001, 2002, 2003, 2004),
  );
joecanti’s picture

Did you get anywhere with this? I think I'm getting this problem because I'm trying to plot fields from the same nodes.

If you managed tl use field labels please let me know!!

Thanks, Joe

andileco’s picture

Status: Active » Closed (outdated)