nullValueAlias

nullValueAlias

Description

The nullValueAlias property allows you to customize the "No values" label you see when rendering a chart.

Currently this property is only available for the following chart types:

  • Area Chart
  • Bar Charts
  • Line Chart
  • Combo Chart

Types

nullValueAlias?: (params: { dataSetId: string; fieldId: string }) => string | null | undefined;
<Vizzly.Dashboard
  nullValueAlias={({ dataSetId, fieldId }) => {
    // Customize label for a specific field
    if (fieldId === 'field-id' && dataSetId === "data-set-id") {
      return `Custom No Value`;
    }
  }}
  // ... rest of the props
/>