Skip to content

Commit

Permalink
Merge pull request #75 from cphelefu/'adding-container-to-geochart'
Browse files Browse the repository at this point in the history
adding container to geochart
  • Loading branch information
jolevesq authored Jun 25, 2024
2 parents a3f626f + 504fdca commit 7f60d79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export interface TypeChartChartProps<
TData extends GeoDefaultDataPoint<TType> = GeoDefaultDataPoint<TType>,
TLabel = string
> {
//container element
container?: HTMLElement,
// The schemas validator object
schemaValidator: SchemaValidator;

Expand Down Expand Up @@ -145,6 +147,7 @@ export function GeoChart<
} = cgpv.ui.elements;
const {
sx: elStyle,
container: containerElement,
schemaValidator,
inputs: parentInputs,
datasource: parentDatasource,
Expand Down Expand Up @@ -1556,6 +1559,7 @@ export function GeoChart<
return (
<Box>
<Select
container={containerElement}
sx={sxClasses.datasourceSelector}
label={t('geochart.feature')}
onChange={handleDatasourceChanged}
Expand Down Expand Up @@ -1593,6 +1597,7 @@ export function GeoChart<

return (
<Select
container={containerElement}
sx={sxClasses.uiOptionsStepsSelector}
label={t('geochart.steps')}
onChange={handleStepsSwitcherChanged}
Expand Down

0 comments on commit 7f60d79

Please sign in to comment.