The drawing API background object

The drawing API background object that can be added to your charts and provides a way for you to give your charts a 'manual' background. It's useful when you're manipulating the grid and the built-in background options do not suffice.

[No canvas support]

The background object allows you to add a background to your charts should you need to. An example use might be when you want the background grid to be clickable (ie have a tooltip). In this case you can use the Background drawing API object (and its own margin settings) to make a grid that spans the whole of the desired area.

The Background object can have its own tooltip and also its own click/mousemove events so if you want to make the whole chart area clickable this is one way that you can do that.


Usage example

<script>
    new RGraph.Drawing.Background({
        id: 'cvs',
        options: {
            title: 'The background object',
            marginTop: 55,
            tooltips: ['The drawing API background object'],
            textSize: 14
        }
    }).draw();
</script>

Properties