Bar Charts

These all inherit from the Bar Base object (charts/BarBase.as). So all bar charts have the following style attributes:

this.style = {
    values:        [],
    colour:        '#3030d0',
    text:          '',		// <-- default not display a key
    'font-size':   12,
    tip:           '#val#<br>#x_label#',
    alpha:         0.6,
    'on-click':    null,
    'axis':        'left'
};

So your basic chart would look like this:

{
    "elements":[
    {
      "type":      "bar",
      "alpha":     0.5,
      "colour":    "#9933CC",
      "text":      "Page views",
      "font-size": 10,
      "values" :   [9,6,7,9,5,7,6,9,7]
    }
    ]
}

Notice how we use the JSON to override the default style of the bar chart.