223N/A margin:10px 10px 10px 10px;
223N/A<p>This example shows how to explicitly define the axes and series for a `Chart`.</p>
223N/A{{>charts-objectstyles-source}}
223N/A<h3>Defining the axes and series for a `Chart` instance</h3>
223N/A<p>As we have seen from previous examples, the `Chart` class allows you to create and customize multiple chart types with very little code. Sometimes you'll want more control
223N/Aover the `Chart`. Suppose you want to place your value axis on the right or you need different series types in the same chart. Charts allows you to explicitly define your series and axes objects. You can either declare
223N/Aan axis or series directly or define them with an object literal and allow the `Chart` instance to build them for you. In this example, we are going to define our axes and series with
223N/Aobject literals. This will allow us to place our value axis on the right and build a chart with columns and lines.</p>
3996N/AYUI().use('charts', function (Y)
223N/A {date:"1/1/2010", miscellaneous:2000, expenses:3700, revenue:2200},
223N/A {date:"2/1/2010", miscellaneous:5000, expenses:9100, revenue:100},
2350N/A {date:"3/1/2010", miscellaneous:4000, expenses:1900, revenue:1500},
223N/A {date:"4/1/2010", miscellaneous:3000, expenses:3900, revenue:2800},
223N/A {date:"5/1/2010", miscellaneous:500, expenses:7000, revenue:2650},
223N/A {date:"6/1/2010", miscellaneous:3000, expenses:4700, revenue:1200}
2350N/A //Define our axes for the chart.
3661N/A keys:["miscellaneous", "revenue", "expenses"],
223N/A var seriesCollection = [
223N/A yDisplayName:"Miscellaneous",
yDisplayName:"Deductions",
dataProvider:myDataValues,
seriesCollection:seriesCollection,
horizontalGridlines: true,