autoql-fe-utils 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -531,6 +531,8 @@ declare const AXIS_TITLE_BORDER_PADDING_LEFT = 5;
531
531
  declare const AXIS_TITLE_BORDER_PADDING_TOP = 3;
532
532
  declare const LOAD_MORE_DROPDOWN_PADDING_BOTTOM = 10;
533
533
  declare const MINIMUM_TITLE_LENGTH = 10;
534
+ declare const MINIMUM_INNER_WIDTH = 50;
535
+ declare const MINIMUM_INNER_HEIGHT = 50;
534
536
  declare const LABEL_FONT_SIZE = 10;
535
537
  declare const TITLE_FONT_SIZE = 12;
536
538
  declare const LEGEND_BORDER_PADDING = 15;
@@ -1065,7 +1067,7 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
1065
1067
  width: number;
1066
1068
  aggregated: boolean;
1067
1069
  }) => any;
1068
- declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, }: {
1070
+ declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, }: {
1069
1071
  axis: string;
1070
1072
  columns: Column$1[];
1071
1073
  columnIndex: number;
@@ -1075,6 +1077,7 @@ declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickVa
1075
1077
  units?: string;
1076
1078
  dataFormatting?: DataFormatting;
1077
1079
  changeNumberColumnIndices?: Function;
1080
+ changeColumnIndices?: Function;
1078
1081
  changeAggConfig?: Function;
1079
1082
  enableAxisDropdown?: boolean;
1080
1083
  stacked?: boolean;
@@ -1251,7 +1254,8 @@ declare const adjustBottomTitleToFit: (titleElement: any, { labelsBBox, innerWid
1251
1254
  outerWidth?: number;
1252
1255
  deltaX?: number;
1253
1256
  chartPadding?: number;
1254
- }) => void;
1257
+ CSS_PREFIX?: string;
1258
+ }, CSS_PREFIX?: string) => void;
1255
1259
  declare const adjustTopTitleToFit: (titleElement: any, { labelsBBox, innerWidth, }?: {
1256
1260
  labelsBBox?: any;
1257
1261
  innerWidth?: number;
@@ -1259,16 +1263,46 @@ declare const adjustTopTitleToFit: (titleElement: any, { labelsBBox, innerWidth,
1259
1263
  declare const adjustVerticalTitleToFit: (titleElement: any, { deltaY, chartPadding, }?: {
1260
1264
  deltaY?: number;
1261
1265
  chartPadding?: number;
1262
- }) => void;
1263
- declare const adjustTitleToFit: (titleElement: any, orient: string, options?: {
1266
+ }, CSS_PREFIX?: string) => void;
1267
+ declare const adjustTitleToFit: (titleElement: any, orient: string, options: {
1264
1268
  labelsBBox?: any;
1265
1269
  innerWidth?: number;
1266
1270
  outerWidth?: number;
1267
1271
  deltaX?: number;
1268
1272
  deltaY?: number;
1269
1273
  chartPadding?: number;
1270
- }) => void;
1274
+ }, CSS_PREFIX: any) => void;
1271
1275
 
1276
+ declare const getPointObj: ({ columns, yScale, xScale, columnIndexConfig, activeKey, dataFormatting, d, index, legendColumn, chartColors, }: {
1277
+ columns: any;
1278
+ yScale: any;
1279
+ xScale: any;
1280
+ columnIndexConfig: any;
1281
+ activeKey: any;
1282
+ dataFormatting: any;
1283
+ d: any;
1284
+ index: any;
1285
+ legendColumn: any;
1286
+ chartColors: any;
1287
+ }) => {
1288
+ key: string;
1289
+ class: string;
1290
+ cx: any;
1291
+ cy: any;
1292
+ r: number;
1293
+ style: {
1294
+ fill: any;
1295
+ };
1296
+ drilldownData: {
1297
+ groupBys: any;
1298
+ supportedByAPI: boolean;
1299
+ row: any;
1300
+ activeKey: any;
1301
+ stringColumnIndex: any;
1302
+ column: any;
1303
+ };
1304
+ tooltip: any;
1305
+ };
1272
1306
  declare const getBubbleObj: ({ columns, yScale, xScale, columnIndexConfig, activeKey, dataFormatting, colIndex, radiusScale, i, d, index, legendLabels, legendColumn, chartColors, }: {
1273
1307
  columns: any;
1274
1308
  yScale: any;
@@ -1865,4 +1899,4 @@ declare function color(): {
1865
1899
  on(): any;
1866
1900
  };
1867
1901
 
1868
- export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column$1 as Column, Column as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PRECISION_TYPES, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QueryData, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, Scale, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addUserToProjectRule, adjustBottomTitleToFit, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSuggestions, fetchTopics, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinLinearScale, getBubbleObj, getChartColorVars, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramScale, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryParams, getRadiusScale, getRangeForAxis, getRowNumberListForPopover, getSVGBase64, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, invertArray, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setSorterFunction, setTickSize, setTickValues, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supports2DCharts, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, usePivotDataForChart, validateExpression };
1902
+ export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column$1 as Column, Column as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PRECISION_TYPES, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QueryData, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, Scale, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addUserToProjectRule, adjustBottomTitleToFit, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSuggestions, fetchTopics, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinLinearScale, getBubbleObj, getChartColorVars, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramScale, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryParams, getRadiusScale, getRangeForAxis, getRowNumberListForPopover, getSVGBase64, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, invertArray, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setSorterFunction, setTickSize, setTickValues, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supports2DCharts, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, usePivotDataForChart, validateExpression };
@@ -14989,6 +14989,8 @@
14989
14989
  var AXIS_TITLE_BORDER_PADDING_TOP = 3;
14990
14990
  var LOAD_MORE_DROPDOWN_PADDING_BOTTOM = 10;
14991
14991
  var MINIMUM_TITLE_LENGTH = 10;
14992
+ var MINIMUM_INNER_WIDTH = 50;
14993
+ var MINIMUM_INNER_HEIGHT = 50;
14992
14994
  var LABEL_FONT_SIZE = 10;
14993
14995
  var TITLE_FONT_SIZE = 12;
14994
14996
  var LEGEND_BORDER_PADDING = 15;
@@ -16354,7 +16356,7 @@
16354
16356
  if (!isNaN(elementNumber)) {
16355
16357
  const p = elementNumber / 100;
16356
16358
  formattedElement = new Intl.NumberFormat(languageCode, {
16357
- style: "PERCENT" /* PERCENT */,
16359
+ style: "percent",
16358
16360
  minimumFractionDigits: 2,
16359
16361
  maximumFractionDigits: 2
16360
16362
  }).format(p);
@@ -16511,7 +16513,7 @@
16511
16513
  if (Number(d) || Number(d) === 0) {
16512
16514
  const p = Number(d) / 100;
16513
16515
  formattedLabel = new Intl.NumberFormat(languageCode, {
16514
- style: "PERCENT" /* PERCENT */,
16516
+ style: "percent",
16515
16517
  minimumFractionDigits: 1,
16516
16518
  maximumFractionDigits: 1
16517
16519
  }).format(p);
@@ -21895,6 +21897,7 @@
21895
21897
  disableAutoScale = false,
21896
21898
  dataFormatting = dataFormattingDefault,
21897
21899
  changeNumberColumnIndices,
21900
+ changeColumnIndices,
21898
21901
  changeAggConfig,
21899
21902
  enableAxisDropdown,
21900
21903
  height,
@@ -21941,7 +21944,7 @@
21941
21944
  scale.isScaled = isScaled;
21942
21945
  scale.aggregated = aggregated;
21943
21946
  scale.allowMultipleSeries = allowMultipleSeries;
21944
- scale.changeColumnIndices = changeNumberColumnIndices;
21947
+ scale.changeColumnIndices = changeColumnIndices != null ? changeColumnIndices : changeNumberColumnIndices;
21945
21948
  scale.changeAggConfig = changeAggConfig;
21946
21949
  scale.colorScale = colorScale;
21947
21950
  scale.toggleScale = () => {
@@ -22738,10 +22741,12 @@
22738
22741
  axis2.tickSizeOuter(0);
22739
22742
  if (axis2.orient === "left" && innerWidth) {
22740
22743
  axis2.tickSizeInner(-innerWidth);
22744
+ } else if (axis2.orient === "right" && innerWidth) {
22745
+ axis2.tickSizeInner(innerWidth);
22741
22746
  } else if (axis2.orient === "bottom" && innerHeight) {
22742
22747
  axis2.tickSizeInner(innerHeight);
22743
- } else {
22744
- axis2.tickSizeInner(0);
22748
+ } else if (axis2.orient === "top") {
22749
+ axis2.tickSizeInner(-innerHeight);
22745
22750
  }
22746
22751
  };
22747
22752
  var setTickValues = ({
@@ -22836,7 +22841,7 @@
22836
22841
  outerWidth,
22837
22842
  deltaX,
22838
22843
  chartPadding = 0
22839
- } = {}) => {
22844
+ } = {}, CSS_PREFIX = "react-autoql") => {
22840
22845
  var _a, _b, _c;
22841
22846
  if (!titleElement || !labelsBBox || !innerWidth || !outerWidth) {
22842
22847
  console.warn("Unable to adjust bottom title - one of the following were not provided", {
@@ -22851,8 +22856,9 @@
22851
22856
  const xLabelX = innerWidth / 2;
22852
22857
  const xLabelY = labelBBoxBottom + AXIS_TITLE_PADDING_TOP;
22853
22858
  select_default2(titleElement).attr("x", xLabelX).attr("y", xLabelY);
22859
+ const textElement = select_default2(titleElement).select(`.${CSS_PREFIX}-axis-title`);
22854
22860
  const chartContainerWidth = outerWidth - 2 * chartPadding;
22855
- select_default2(titleElement).attr("textLength", null);
22861
+ textElement.attr("textLength", null);
22856
22862
  const xTitleBBox = titleElement.getBBox();
22857
22863
  const xTitleWidth = ((_c = xTitleBBox.width) != null ? _c : 0) + 2 * AXIS_TITLE_BORDER_PADDING_LEFT;
22858
22864
  if (xTitleWidth > chartContainerWidth) {
@@ -22860,7 +22866,7 @@
22860
22866
  if (textLength < 0) {
22861
22867
  textLength = MINIMUM_TITLE_LENGTH;
22862
22868
  }
22863
- select_default2(titleElement).attr("textLength", textLength);
22869
+ textElement.attr("textLength", textLength);
22864
22870
  }
22865
22871
  const xTitleBBoxAfterTextLength = titleElement.getBBox();
22866
22872
  const xTitleRight = xTitleBBoxAfterTextLength.x + xTitleBBoxAfterTextLength.width + deltaX + AXIS_TITLE_BORDER_PADDING_LEFT;
@@ -22886,40 +22892,90 @@
22886
22892
  var adjustVerticalTitleToFit = (titleElement, {
22887
22893
  deltaY,
22888
22894
  chartPadding = 0
22889
- } = {}) => {
22895
+ } = {}, CSS_PREFIX = "react-autoql") => {
22890
22896
  var _a;
22891
- if (!deltaY || !titleElement) {
22897
+ if (deltaY === void 0 || !titleElement) {
22898
+ console.log("deltaY or titleElement missing...", { deltaY, titleElement });
22892
22899
  return;
22893
22900
  }
22901
+ const textElement = select_default2(titleElement).select(`.${CSS_PREFIX}-axis-title`);
22894
22902
  const chartContainerHeight = outerHeight - 2 * chartPadding;
22895
- select_default2(titleElement).attr("textLength", null);
22903
+ textElement.attr("textLength", null);
22896
22904
  const yTitleBBox = titleElement.getBBox();
22897
- const yTitleHeight = ((_a = yTitleBBox.width) != null ? _a : 0) + 2 * AXIS_TITLE_BORDER_PADDING_LEFT;
22905
+ const yTitleHeight = ((_a = yTitleBBox.height) != null ? _a : 0) + 2 * AXIS_TITLE_BORDER_PADDING_LEFT;
22898
22906
  if (yTitleHeight > chartContainerHeight) {
22907
+ console.log("text is too long for chart height....");
22899
22908
  let textLength = Math.floor(chartContainerHeight) - 2 * AXIS_TITLE_BORDER_PADDING_LEFT;
22900
22909
  if (textLength < 0) {
22901
22910
  textLength = MINIMUM_TITLE_LENGTH;
22902
22911
  }
22903
- select_default2(titleElement).attr("textLength", textLength);
22912
+ textElement.attr("textLength", textLength);
22904
22913
  }
22905
22914
  const yTitleBBoxAfterTextLength = titleElement.getBBox();
22906
- const yTitleTop = -1 * (yTitleBBoxAfterTextLength.x + yTitleBBoxAfterTextLength.width) + deltaY - AXIS_TITLE_BORDER_PADDING_LEFT - chartPadding;
22915
+ const yTitleTop = yTitleBBoxAfterTextLength.y + deltaY - AXIS_TITLE_BORDER_PADDING_LEFT - chartPadding;
22907
22916
  if (yTitleTop < 0) {
22908
- const overflow = -yTitleTop;
22909
- select_default2(titleElement).attr("transform", `rotate(-90) translate(${-overflow}, 0)`);
22917
+ console.log("title just needs to be shifted down....", { yTitleTop });
22918
+ select_default2(titleElement).attr("transform", `translate(0, ${-yTitleTop})`);
22910
22919
  }
22911
22920
  };
22912
- var adjustTitleToFit = (titleElement, orient, options = {}) => {
22921
+ var adjustTitleToFit = (titleElement, orient, options = {}, CSS_PREFIX) => {
22913
22922
  if (orient === "bottom") {
22914
- adjustBottomTitleToFit(titleElement, options);
22923
+ adjustBottomTitleToFit(titleElement, options, CSS_PREFIX);
22915
22924
  } else if (orient === "top") {
22916
22925
  adjustTopTitleToFit(titleElement, options);
22917
22926
  } else if (orient === "left" || orient === "right") {
22918
- adjustVerticalTitleToFit(titleElement, options);
22927
+ adjustVerticalTitleToFit(titleElement, options, CSS_PREFIX);
22919
22928
  }
22920
22929
  };
22921
22930
 
22922
22931
  // src/Charts/chartElementArrays.ts
22932
+ var getPointObj = ({
22933
+ columns,
22934
+ yScale,
22935
+ xScale,
22936
+ columnIndexConfig,
22937
+ activeKey,
22938
+ dataFormatting,
22939
+ d,
22940
+ index,
22941
+ legendColumn,
22942
+ chartColors
22943
+ }) => {
22944
+ const { numberColumnIndex, numberColumnIndex2 } = columnIndexConfig;
22945
+ const rawValueX = d[numberColumnIndex];
22946
+ const valueNumberX = Number(rawValueX);
22947
+ const valueX = !isNaN(valueNumberX) ? valueNumberX : 0;
22948
+ const rawValueY = d[numberColumnIndex2];
22949
+ const valueNumberY = Number(rawValueY);
22950
+ const valueY = !isNaN(valueNumberY) ? valueNumberY : 0;
22951
+ const color0 = chartColors[0];
22952
+ const color1 = chartColors[1];
22953
+ const key = getKey(numberColumnIndex, index);
22954
+ return {
22955
+ key,
22956
+ class: `square${activeKey === key ? " active" : ""}`,
22957
+ cx: xScale(valueX),
22958
+ cy: yScale(valueY),
22959
+ r: activeKey === key ? 6 : 3,
22960
+ style: { fill: activeKey === key ? color1 : color0 },
22961
+ drilldownData: getDrilldownData({
22962
+ row: d,
22963
+ columns,
22964
+ colIndex: numberColumnIndex,
22965
+ activeKey: key,
22966
+ columnIndexConfig,
22967
+ legendColumn
22968
+ }),
22969
+ tooltip: getTooltipContent({
22970
+ row: d,
22971
+ columns,
22972
+ colIndex: numberColumnIndex,
22973
+ colIndex2: numberColumnIndex2,
22974
+ legendColumn,
22975
+ dataFormatting
22976
+ })
22977
+ };
22978
+ };
22923
22979
  var getBubbleObj = ({
22924
22980
  columns,
22925
22981
  yScale,