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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
- Public interaction helper types: `SCChartSelectionState`, `SCChartInspectionOverlay`, `SCChartScrollBehavior`, `SCChartGestureConfiguration`, and `SCChartHoverState`.
23
23
- Viewport coordination helpers for centered, clamped, and zoomed visible-window updates.
24
24
- Focused tests for the interaction-helper slice, including interaction helper state, wrapper configuration, and viewport utilities.
25
+
- Zoomable navigation helpers: `SCChartTimeViewport`, `SCChartZoomBehavior`, and `SCChartNavigationCoordinator`.
26
+
- Viewport-driven zoom support for `SCScrollableLineChart` and `SCScrollableTimeSeriesChart`, including focused tests for indexed and time-series navigation state.
25
27
- Helper-style annotation presets for caption, badge, and formatted value-label rendering via `SCChartAnnotation`.
26
28
- Availability-gated `SCSelectableSectorChart` and `SCSelectableDonutChart` wrappers for `SectorMark` angle-selection workflows on newer OS versions.
27
29
- Focused tests for selectable sector/donut wrapper configuration and annotation helper presets.
@@ -33,6 +35,8 @@
33
35
- Visible-domain and scroll-behavior presets for analytics- and finance-style windows.
34
36
- Focused tests for inspection-wrapper configuration and time-series selection state.
35
37
- A new `docs/tutorials/` learning path with sequenced tutorials for first chart setup, helper-first data construction, interactions, time-series, composed charts, and legacy migration.
38
+
- A first-party `SimpleChart.docc` catalog with package overview and focused articles for getting started, wrapper selection, interactive charts, and legacy migration.
39
+
- A contributor-facing `docs/editor-support.md` guide covering Xcode Quick Help, local DocC builds, and `sourcekit-lsp` usage.
- Availability-gated function and parametric plot wrappers: `SCNativeFunctionLinePlotChart`, `SCNativeParametricLinePlotChart`, and `SCNativeFunctionAreaPlotChart`.
38
42
- Availability-gated 3D wrappers and helpers: `SCChart3DPoint`, `SCChart3DPoseStyle`, `SCChart3DSeriesStyle`, `SCNative3DPointChart`, `SCNative3DRectangleChart`, `SCNative3DRuleChart`, and `SCNativeSurfacePlotChart`.
@@ -47,7 +51,8 @@
47
51
48
52
### Changed
49
53
50
-
- Added Xcode Quick Help documentation to the first-discovery public API surface so the core models, styles, composition entrypoints, and primary wrappers are easier to explore directly from Xcode.
54
+
- Added Xcode Quick Help documentation across the full exposed package API surface, including the native wrapper/helper layer and the deprecated compatibility layer, so every public type and entry point is easier to discover directly from Xcode.
55
+
- Added richer Quick Help coverage for the zoom/navigation surface, including `SCChartTimeViewport`, `SCChartScrollBehavior`, `SCChartZoomBehavior`, and the scrollable interactive wrappers.
51
56
- Raised minimum supported platform versions to Swift Charts baselines:
52
57
- iOS 16+
53
58
- macOS 13+
@@ -66,7 +71,9 @@
66
71
- Refactored composed-chart annotation rendering and sector-selection overlays to use the shared `SCChartAnnotationLabelView` helper path.
67
72
- Refactored selection and hover inspection rendering to share the same callout and value-label helper path.
68
73
- Reworked the documentation entrypoint around a real quick-start flow, with dedicated getting-started and chart-selection guides for new users.
74
+
- Added repository-level documentation discovery links for the DocC catalog and editor support guide, plus a CI docbuild path for keeping the package documentation healthy.
69
75
- Expanded the README wrapper catalog and coverage/status sections to include the vectorized plot and 3D chart surface.
76
+
- Updated the scrolling and time-series docs to show viewport-based zoom configuration for indexed and date-based interactive wrappers.
-[Migration from the legacy API](#migration-from-the-legacy-api)
17
19
18
20
## Platform requirements
@@ -41,10 +43,10 @@ The native layer is built around a small shared model surface:
41
43
-`SCChartSectorSegment` for sector and donut charts
42
44
-`SCChartBarGroup` and `SCChartStackSegment` for grouped and stacked bars
43
45
-`SCChartTimePoint` for time-series datasets
44
-
-`SCChartVisibleDomain`and `SCChartViewport` for scroll-window helpers
46
+
-`SCChartVisibleDomain`, `SCChartViewport`, and `SCChartTimeViewport` for scroll-window helpers
45
47
-`SCChartNumericValueFormat` and `SCChartDateValueFormat` for helper-style axis formatting
46
48
-`SCChartSelection` for wrapper-managed chart selection state
47
-
-`SCChartSelectionState`, `SCChartInspectionOverlay`, `SCChartScrollBehavior`, `SCChartGestureConfiguration`, and `SCChartHoverState` for reusable interaction configuration
49
+
-`SCChartSelectionState`, `SCChartInspectionOverlay`, `SCChartScrollBehavior`, `SCChartZoomBehavior`, `SCChartGestureConfiguration`, and `SCChartHoverState` for reusable interaction configuration
48
50
-`SCChartMark` for composed mark-based chart definitions
49
51
-`SCChartAnnotationStyle`, `SCChartAnnotation`, `SCChartOverlay`, `SCChartScale`, and `SCChartComposition` for reusable composed-chart helpers
50
52
@@ -163,6 +165,14 @@ let scrollBehavior = SCChartScrollBehavior.continuous(.points(7))
163
165
let timeWindow = SCChartScrollBehavior.timeWindow(hours: 24)
164
166
let analyticsScroll = SCChartScrollBehavior.analytics(points: 21)
165
167
let financeScroll = SCChartScrollBehavior.finance(tradingDays: 10)
168
+
let timeViewport = SCChartTimeViewport.starting(
169
+
at: Date(timeIntervalSince1970: 1_700_000_000),
170
+
duration: 60*60*24
171
+
)
172
+
let zoomBehavior =SCChartZoomBehavior(
173
+
minimumVisibleLength: 3,
174
+
maximumVisibleLength: 14
175
+
)
166
176
let gestures = SCChartGestureConfiguration.interactive
0 commit comments