mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
e2acecee3e
* Add survey data * Add survey results pages with recharts for plots Some simple cross year comparisons have been added too where data was available for the inspection of trends. Signed-off-by: Charlie Egan <charlie_egan@apple.com>
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
import BarChart from './BarChart';
|
|
import StackedBarChart from './StackedBarChart';
|
|
import TextList from './TextList';
|
|
import HorizontalBarChart from './HorizontalBarChart';
|
|
|
|
export const chartRegistry = {
|
|
'bar': BarChart,
|
|
'stacked-bar': StackedBarChart,
|
|
'text-list': TextList,
|
|
'horizontal-bar': HorizontalBarChart,
|
|
};
|
|
|
|
export function getChartComponent(chartType) {
|
|
return chartRegistry[chartType] || null;
|
|
}
|