ChartAudioGraph
public sealed class ChartAudioGraphConfiguration for chart-level audio graph / sonification export.
Swift Charts equivalent: AXChartDescriptorRepresentable conformance
and the audioGraph modifier.
Remarks
Section titled “Remarks”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.
Methods
Section titled “Methods”
Sonify(IReadOnlyList, Vector2)
Section titled “Sonify(IReadOnlyList, Vector2)”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}
DescribeTrend(IReadOnlyList)
Section titled “DescribeTrend(IReadOnlyList)”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
Constructors
Section titled “Constructors”
ChartAudioGraph()
Section titled “ChartAudioGraph()”public ChartAudioGraph()Properties
Section titled “Properties”
Options
Section titled “Options”public SonificationOptions Options { get; set; }Returns
ChartGuru.SonificationOptions
AudioSource
Section titled “AudioSource”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