Skip to content

ChartAudioGraph

ClassChartGuruChartGuru
public sealed class ChartAudioGraph

Configuration for chart-level audio graph / sonification export. Swift Charts equivalent: AXChartDescriptorRepresentable conformance and the audioGraph modifier.

This type translates mark data into a sequence of ChartGuru.SonificationNote values that can be played through Unity’s AudioSource system or exported as a description string for external assistive-technology bridges.

public List<SonificationNote> Sonify(IReadOnlyList<DataPoint> points, Vector2 yDomain)

Converts chart mark data into a sequence of sonification notes. Each data point maps to a note whose pitch is proportional to the normalised Y value within the given domain.

Parameters

Name Type
points System.Collections.Generic.IReadOnlyList{ChartGuru.DataPoint}
yDomain UnityEngine.Vector2

Returns

System.Collections.Generic.List{ChartGuru.SonificationNote}

public string DescribeTrend(IReadOnlyList<DataPoint> points)

Generates a human-readable description of the data trend for assistive technology. Returns a string like “3 data points, trending upward from 10 to 42”.

Parameters

Name Type
points System.Collections.Generic.IReadOnlyList{ChartGuru.DataPoint}

Returns

System.String

public ChartAudioGraph()

public SonificationOptions Options { get; set; }

Returns

ChartGuru.SonificationOptions

public AudioSource AudioSource { get; set; }

Optional ChartGuru.ChartAudioGraph.AudioSource used for playback. When null the audio graph is available as data only (for export / custom players).

Returns

UnityEngine.AudioSource