The following example is often on the top results when searching for Mapbox GL JS examples:
It seems that the "circle-radius" property is still using a legacy "function" syntax, which is confusing for newcomers as expressions always use arrays:
'circle-radius': {
'base': 1.75,
'stops': [
[12, 2],
[22, 180]
]
}
'circle-radius': [
'interpolate',
['exponential', 1.75],
['zoom'],
12, 2,
22, 180
],