Types

All Types Available


interface Cell {
    colspan: number | string;
    view?: BarChart | PieChart;
}
  
interface Row {
   heading: string;
   cells: Cell[];
}
  
interface Dashboard {
   rows: Row[];
}
  
type BarChart = {
    id: string;
    title: string;
    metricFields: string[];
    groupByFields: string[];
};
  
type PieChart = {
    id: string;
    title: string;
    metricField: string;
    groupByFieldId: string;
};