Hiding x-axis

(3 posts) (2 voices)
  1. cris, Member

    Hello,

    When I try to hide the x-axis using the code below, the actual x-axis line gets lighter, but the 'a', 'b', 'c' labels remain visible. Is this by design? How do I hide the 'a', 'b', 'c' labels? I think I'm missing something obvious.

    Thanks,
    Cris

    select 'dbr.chart', 'Column', 'Test', 600,275; SELECT 'dbr.chart.options','imagechart'; select 'dbr.chart.options', 'hide', 'xaxis';

    select 'a', 1 union select 'b', 2 union select 'c', 3;

  2. myDBR Team, Key Master

    Cris,
    the axis gets hidden, just that the grid is shown.

    To hide the labels, you can set the label color to transparent.

    select 'dbr.chart.options', 'chartdirector', '$c->xAxis->setLabelStyle("", 8, Transparent);';

    --
    myDBR Team

  3. cris, Member

    Works perfectly. Thank you


Reply

You must log in to post.