jQuery Chart Change Options Dynamically

To change any of the widget options dynamically you need to get the initial options, change the desired properties and call the widget refresh(options) method, passing the new values.
This is demonstrated in the code below:

<script type="text/javascript">
    backgroundColor: '#000000',
    dataSeries: [{
      seriesType: 'area',
      data: [2,4,1,3,7,1,9]
function changeOptions() {
    var chart = $("#chart").swidget(),
    options = chart.initialOptions;
    options.backgroundColor = '#FAFAFA';