Object literal - adding items
<p>I have this in my code:-</p>

<pre><code>var chartOptions = {
      series: {
               bars: { show: true }
              }
};
</code></pre>

<p>Is there a way I could add another item to the chartOptions object through code so that it was added an item to the series part, like this:-</p>

<pre><code>series: {
    bars: {show: true, fillColor="Red"}
}
</code></pre>

<p>How would I go about doing this?  I was expecting something like:-</p>

<pre><code>chartOptions["series"]["bars"]["fillColor"] = "Red"
</code></pre>

<p>But that doesn't work.  I'm pretty new to this so any help would be greatly appreciated.</p>

<p>Matt</p>
