Linear Meter - set background colour

(2 posts) (2 voices)
  1. ajdjackson, Member

    Hi

    I'd like to set the background of the linear meter to white instead of grey.

    I've tried the following without luck:

    select 'dbr.chart.options','chartdirector', '$c->setBackground(0xffffff);'; select 'dbr.chart.options','chartdirector', '$c->plotarea.setBackground(0xffffff);'; -- throws a PHP error select 'dbr.chart.options','background_color','#ffffff'; select 'dbr.chart.options','bgColor','#ffffff';

    Thanks for your help

    Jake

  2. myDBR Team, Key Master

    You can use the built-in meter themes ('black', 'white', or 'default') or create your own (see defaults.php).

    To select the white theme, use:

    select 'dbr.chart.options', 'meter.theme', 'white';

    --
    myDBR Team


Reply

You must log in to post.