Possible new configuration styles

RGraph will possibly get new configuration styles in addition to the existing one. Your opinions are invited (put any feedback in the forum)

Whilst the .set) method has served RGraph well for many years I'm now looking at adding a new option to it that will, in addition, allow an extra way to configure your charts. The two potential new methods are similar - one has a more nested tree-like style and the other is flat and uses camel-case notation. Of the two I'm leaning towards the former. Any opinions or thoughts that you have can be put in the forum Here are the two possible styles:

Flat list style object

var bar = new RGraph.Bar('cvs', [4,8,6,5,3,5,6,4])
    .set({ // Reuse/overload the .set() method
        gutterLeft: 45,                          // gutter.left
        gutterTop: 60,                           // gutter.top
        backgroundGrid: true,                    // background.grid
        backgroundGridAutofitNumhlines: 5,       // background.grid.autofit.numhlines
        backgroundGridAutofitNumvlines: 0,       // background.grid.autofit.numvlines
        backgroundColor: 'rgba(255,255,255,0.8', // background.color
        backgroundImage: '/images/logo.png',     // background.image
        backgroundImageX: 0,                     // background.image.x
        backgroundImageY: 0                      // background.image.y

Still object based but tree structure

var bar = new RGraph.Bar('cvs', [4,8,6,5,3,5,6,4])
    .conf({ // New method for parsing the configuration
        gutter: {
            left: 45, // gutter.left
            top: 60   // gutter.top
        background: {
            grid: {
                autofit: {
                    numvlines: 0, // background.grid.autofit.numvlines
                    numhlines: 5  // background.grid.autofit.numhlines
            color: 'rgba(255,255,255,0.8)', // background.color
            image: ['/images/logo.png',{    // background.image
                x: 0,                       // background.image.x
                y: 0                        // background.image.y

It's important to remember though - these are currently only ideas and neither may be implemented.