Function useParamColumns

  • Returns the columns associated with with the chart's config.param property.

    This will be used in the context of an initialized chart - which means that we assert that all columns are loaded, so consumers of this hook should be off-the-hook in terms of checking the data property.

    this assertion is tested internally and we throw an exception if not true

    but the underlying logic should be evaluated, particularly with regard to

    • 'live virtual column queries'
    • in general, anything that involves changing config.param during the life of a chart.

    The current intention is to implement such features in a way that by the time param is mutated, the new columns are loaded; this should help check that, or highlight whether that logic should be altered.

    Returns LoadedDataColumn<DataType>[]