You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be a discrepancy between the documentation and the actual TypeScript interface for AgChartTheme. The official documentation shows an example using a params property to customize theme properties like background color and font settings, but this property is not defined in the TypeScript interface, causing type errors.
Current Behavior
When attempting to use the params property as shown in the documentation:
Object literal may only specify known properties, and 'params' does not exist in type 'AgChartTheme'.ts(2353)
Importantly, this error only occurs when importing AgChartTheme from ag-charts-enterprise. When importing from ag-charts-community, the TypeScript error does not appear. This suggests there might be a difference in type definitions between the enterprise and community versions.
Expected Behavior
Since the params property is shown in the official documentation, it should either:
Be included in the AgChartTheme TypeScript interface, or
The documentation should be updated to show the correct way to customize these theme properties
The type definitions in ag-charts-enterprise should match those in ag-charts-community
Questions
What is the correct way to set theme properties like background color and font settings?
If the params property is deprecated, what is the current recommended approach?
Why is there a difference in type definitions between enterprise and community versions?
Environment
"react": "^19.0.0",
"react-dom": "^19.0.0"
"ag-charts-react": "^11.1.1",
"ag-grid-enterprise": "^33.1.1"
"typescript": "^5.7.3"
Additional Context
This issue affects developers trying to customize chart themes according to the official documentation. Would appreciate clarification on the correct approach to implement these customizations.
The discrepancy between enterprise and community versions makes it unclear which is the correct implementation, and which should be updated to match the other.
Version
11.1.1
Does the issue occur for a specific framework only?
React
Is the issue only observable on a specific browser?
All browsers
The text was updated successfully, but these errors were encountered:
Link to reproducible scenario
https://ag-grid.com/charts/react/themes/
Describe the bug
There appears to be a discrepancy between the documentation and the actual TypeScript interface for
AgChartTheme
. The official documentation shows an example using aparams
property to customize theme properties like background color and font settings, but this property is not defined in the TypeScript interface, causing type errors.Current Behavior
When attempting to use the
params
property as shown in the documentation:TypeScript raises the following error:
Importantly, this error only occurs when importing
AgChartTheme
fromag-charts-enterprise
. When importing fromag-charts-community
, the TypeScript error does not appear. This suggests there might be a difference in type definitions between the enterprise and community versions.Expected Behavior
Since the
params
property is shown in the official documentation, it should either:AgChartTheme
TypeScript interface, orag-charts-enterprise
should match those inag-charts-community
Questions
params
property is deprecated, what is the current recommended approach?Environment
Additional Context
This issue affects developers trying to customize chart themes according to the official documentation. Would appreciate clarification on the correct approach to implement these customizations.
The discrepancy between enterprise and community versions makes it unclear which is the correct implementation, and which should be updated to match the other.
Version
11.1.1
Does the issue occur for a specific framework only?
React
Is the issue only observable on a specific browser?
All browsers
The text was updated successfully, but these errors were encountered: