# Multiple Axes in FlexChart

Learn how to define multiple axes using Wijmo's chart components in this documentation topic

## Content

Most charts have two axes, X and Y. This works well as long as all the data on the chart has the same nature and can share the same scale. But some charts contain series that show different types of data, with different units and scales. Plotting all the series against a single Y axis squeezes the first two series against the bottom of the chart.

The easiest way to solve this problem and still using a single chart is to create a secondary Y axis and assign it to the __axisY__ property of the second series. Follow these steps to configure a second Y axis:

1. Create new instance of __Axis__ class and
2. Configure its __position__, __title__, and other axis properties as needed.
3. Assign the new axis to the series __axisY__ property.


The chart example below has two series that represent amounts (sales and expenses) and one that represents quantities (downloads). The 'Downloads' series is plotted against a second Y axis.

```JavaScript
import * as chart from '@mescius/wijmo.chart';

// create and apply extra Y axis for 'Downloads' series
var axisY2 = new chart.Axis();
axisY2.position = 'Right';
axisY2.title = 'Downloads (k)';
axisY2.format = 'n0,';
axisY2.min = 0;
axisY2.axisLine = true;
myChart.series[2].axisY = axisY2;
```
![Multiple Axes](https://cdn.mescius.io/document-site-files/images/3c7113e2-10b3-45ed-8f3b-9fb1e0af2b74/chart/chart-multiple-axes.png)