Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create switch to render line charts using vega-lite #3106

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ const getXAxisId = (dimensions: any, columns: OpenSearchDashboardsDatatableColum
return columns.filter((column) => column.name === dimensions.x.label)[0].id;
};

const cleanString = (rawString: string): string => {
export const cleanString = (rawString: string): string => {
return rawString.replaceAll('"', '');
};

const formatDataTable = (
export const formatDataTable = (
datatable: OpenSearchDashboardsDatatable
): OpenSearchDashboardsDatatable => {
datatable.columns.forEach((column) => {
Expand All @@ -49,7 +49,7 @@ const formatDataTable = (
return datatable;
};

const createSpecFromDatatable = (
export const createSpecFromDatatable = (
datatable: OpenSearchDashboardsDatatable,
visParams: VisParams,
dimensions: VislibDimensions
Expand Down