# Interface: DataMappingOptionsObject

## Highcharts. DataMappingOptionsObject

Options for `dataMapping`. The data mapping options allow you to define how data from a data table should be mapped to series points. The object keys refer to the point property that should be mapped, and the values refer to the `dataTable` and `column` that should be used for the mapping.

Values can be either a string pointing directly to a column in the first data table, or an object with `dataTable` and `column` properties to specify the mapping in more detail.

Since:
  - 13.0.0

### Example

    Highcharts.chart('container', {
        dataTable: {
            columns: {
                Year: [2020, 2021, 2022, 2023],
                Cost: [11, 13, 12, 14],
                Revenue: [12, 15, 14, 18]
            }
        },
        plotOptions: {
            series: {
                // Mapping to a shared column goes in plotOptions
                dataMapping: {
                    x: 'Year'
                }
            }
        },
        series: [{
            dataMapping: {
                y: 'Cost'
            }
        }, {
            dataMapping: {
                y: 'Revenue'
            }
        }]
    });