The drawing API background object

The drawing API background object which can be added to your charts and provides a way for you to give your charts a 'manual' background. Useful when you're manipulating the axes and the built-in charts 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 are clickable this is one way that you can do that.


Usage example

<script>
    var background = new RGraph.Drawing.Background({
        id: 'cvs',
        options: {
            title: 'The background object',
            titleSize: 18,
            marginTop: 55,
            textSize: 14
        }
    }).draw();
</script>

Properties