# MultiFormat Formatter Examples

## Example 1

```jsx
<ChoroplethSvg
        context={{
            areaColorsFormat: {
                nameField: 'pathIds',
                valueField: 'values',
                formatters: {
                    id1: {
                        type: 'matchValue',
                        config: [{
                            match: 100,
                            value: '#FF0000'
                        }]
                    },
                    id2: {
                        type: 'rangeValue',
                        config: [
                            {
                                to: 100,
                                value: '#00FF00'
                            }
                            {
                                from: 100,
                                value: '#0000FF'
                            }
                        ]
                    }
                }
            }
        }}
        options={{
            areaIds: '> primary | seriesByName("pathIds")', // returns ['id1', 'id2']
            areaValues: '> primary | seriesByName("values")', // returns [100, 200]
            areaColors: '> primary | multiFormat(areaColorsFormat)' // returns ['#FF0000', '#0000FF']
        }}
        dataSources={{
            primary: {
                data: {
                    columns: [['id1', 'id2'], [100, 200]]
                    fields: [{ name: 'pathIds' }, { name: 'values' }]
                }
            }
        }}
    />
```
