How to set dynamic items with numericMenu?

I am using WordPress plugin for Algolia search. There I have a requirement to show price in group. So I thought numericMenu would be the good option. So for that I am using the widget like this

instantsearch.widgets.numericMenu({

        container: '#price',

        attribute: 'product_price',

        sortBy: ['isRefined:desc', 'name:asc'],

        limit: 50,

        items: [

          { label: 'All' },

          { label: 'Less than 500$', end: 500 },

        ],

        templates: {

          header: '',

        }

      }),

But here I am not sure how to set the items? As of now I am using the static label and value but its not working.

So can someone tell me how to get this working? Any help and suggestions would be really appreciable.