Skip to content

update data label formating to work for axis annotations also#825

Open
IGvaleries wants to merge 130 commits into25.1from
toolbar-testing
Open

update data label formating to work for axis annotations also#825
IGvaleries wants to merge 130 commits into25.1from
toolbar-testing

Conversation

@IGvaleries
Copy link
Copy Markdown
Collaborator

No description provided.

@IGvaleries IGvaleries requested a review from gmurray81 March 27, 2025 21:05
@HUSSAR-mtrela HUSSAR-mtrela changed the base branch from 24.2.x to 25.1 March 31, 2025 16:13
@HUSSAR-mtrela HUSSAR-mtrela added the status: 🛠️ in-development things that are not finished label Jul 30, 2025
gmurray81 and others added 30 commits March 31, 2026 10:22
Remove Json.NET types from GTK handlers and split Desktop.cs into pla…
The Swift handler was casting args.item to NSDictionary, but iOS passes
the data item as the internal generic DictionaryDataItem<String?, Any?>
(the Swift analog of the C# DictionaryDataItem<string, object> used for
composite-data rows). The as? NSDictionary cast silently failed, so the
label never got reformatted and the test assertion for "A-V-20" / "B-V-40"
etc. couldn't find its callouts.

Cast to DictionaryDataItem\$2<String?, Any?> directly and subscript it,
and emit the Double value as an Int when it is whole (so "20" not "20.0"
to match the Desktop handler's "label + "-V-" + value" format).

Resolves CategoryChartCalloutLayerCanUpdateAutoCalloutLabelsInCalloutUpdatingEvent
on iOS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The Swift handler was casting JsonDictionaryValue.value straight to String for
the Thickness field, then parsing that string with Double.init. iOS's JSON
parser delivers numeric fields as Double, not String, so the cast failed and
the test's ShapeThickness=3 override was never applied — the shape kept its
default 1.5.

Accept either the native Double value or the stringified form as a fallback
(matching how JSON.NET on WPF returns "3"/"NaN" for Value<string>()).

Resolves DataChartSliceAnnotationsStylingCanStyleSingleSliceOnlyUsingStylingEvents
on iOS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: 🛠️ in-development things that are not finished

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants