Skip to content

Conversation

abey-thomas
Copy link
Collaborator

@abey-thomas abey-thomas commented Oct 3, 2025

SCAL-271696 feat: add axis-driven chart config support with validation

Add support for axis-driven chart config dimensions alongside existing
column-driven configs. This enables more structured chart configurations
with flat, merged, and dual axis types.

Changes:

  • Add new AxisType enum (FLAT, MERGED, DUAL) and related config types
  • Add ChartConfigMode enum (COLUMN_DRIVEN, AXIS_DRIVEN) to support both modes
  • Implement chart config utility functions to extract query columns from both modes
  • Add validation functions to ensure chart config consistency
  • Integrate validation into CustomChartContext initialization
  • Add comprehensive test coverage (681 lines) for all config modes
  • Update mock implementations to use new utility functions
  • Export new utility functions in main index

Breaking Changes:

  • Version bump to 2.6.0 due to new API surface area
  • ChartConfigDimension now supports both column-driven and axis-driven modes

The new axis-driven mode allows for more complex chart configurations
including merged columns (multiple columns in one axis slot) and dual
axes (primary/secondary axis configurations).

@mnk-blr
Copy link

mnk-blr commented Oct 3, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

Copy link

github-actions bot commented Oct 3, 2025

File Coverage
All files 88%
src/main/custom-chart-context.ts 87%
src/main/logger.ts 88%
src/main/post-message-event-bridge.ts 72%
src/react/use-custom-chart-context.tsx 86%
src/react/mocks/custom-chart-context-mock.ts 96%
src/utils/chart-config.ts 82%
src/utils/date-formatting.ts 82%
src/utils/formatting-util.ts 89%
src/utils/conditional-formatting/conditional-formatting.ts 92%
src/utils/globalize-Initializer/globalize-utils.ts 95%
src/utils/number-formatting/number-formatting-utils.ts 98%
src/utils/number-formatting/number-formatting.ts 90%

Minimum allowed coverage is 0%

Generated by 🐒 cobertura-action against ec10c93

@abey-thomas abey-thomas force-pushed the SCAL-271696 branch 2 times, most recently from 3cd97d3 to b167e33 Compare October 3, 2025 12:40
@abey-thomas abey-thomas force-pushed the SCAL-271696 branch 5 times, most recently from ac7d276 to 2b09953 Compare October 12, 2025 15:41
@abey-thomas abey-thomas changed the title [SCAL-271696] update CustomChartDimension definition [SCAL-271696] feat: add axis-driven chart config support with validation Oct 12, 2025
Add support for axis-driven chart config dimensions alongside existing
column-driven configs. This enables more structured chart configurations
with flat, merged, and dual axis types.

Changes:
- Add new AxisType enum (FLAT, MERGED, DUAL) and related config types
- Add ChartConfigMode enum (COLUMN_DRIVEN, AXIS_DRIVEN) to support both modes
- Implement chart config utility functions to extract query columns from both modes
- Add validation functions to ensure chart config consistency
- Integrate validation into CustomChartContext initialization
- Add comprehensive test coverage (681 lines) for all config modes
- Update mock implementations to use new utility functions
- Export new utility functions in main index

Breaking Changes:
- Version bump to 2.6.0 due to new API surface area
- ChartConfigDimension now supports both column-driven and axis-driven modes

The new axis-driven mode allows for more complex chart configurations
including merged columns (multiple columns in one axis slot) and dual
axes (primary/secondary axis configurations).
Copy link
Collaborator

@rahul-jain-ts rahul-jain-ts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abey-thomas abey-thomas merged commit d5ae1d8 into main Oct 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants