Skip to content

MockChartDataSource

ClassChartGuruChartGuru
public sealed class MockChartDataSource : ChartDataSource

Generates realistic sample data with Mock Magic patterns and publishes it as a frame, optionally streaming new rows over time. Pick the shape that matches the chart; hosts map its columns.

public override void Refresh()

Regenerates the data and publishes it.

public void Regenerate()

Regenerates the whole data set and publishes it.

public void StartStreaming()

Starts emitting rows at the configured rhythm.

public void StopStreaming()

Stops emitting rows.

public void ToggleStreaming()

Starts or stops streaming.

public void Emit()

Emits one batch of rows immediately.

public MockChartDataSource()

public MockDataShape Shape { get; set; }

Returns

ChartGuru.MockDataShape

public SeriesPattern Pattern { get; set; }

Returns

MockMagic.SeriesPattern

public int SeriesCount { get; set; }

Returns

System.Int32

public int PointsPerSeries { get; set; }

Returns

System.Int32

public float MinValue { get; set; }

Returns

System.Single

public float MaxValue { get; set; }

Returns

System.Single

public float NoiseFactor { get; set; }

Returns

System.Single

public LabelPreset LabelPreset { get; set; }

Returns

MockMagic.LabelPreset

public string DataLocaleId { get; set; }

Configured row-label locale. Changes made while streaming apply when the stream is restarted.

Returns

System.String

public MockLocale ActiveLocale { get; }

Immutable locale captured by a running stream, or null while stopped.

Returns

MockMagic.MockLocale

public string ActiveLocaleId { get; }

Locale identifier captured by a running stream, or null while stopped.

Returns

System.String

public string[] SeriesNames { get; set; }

Returns

System.String[]

public MockDataMode DataMode { get; set; }

Returns

ChartGuru.MockDataMode

public StreamRhythm Rhythm { get; set; }

Returns

MockMagic.StreamRhythm

public float EmissionInterval { get; set; }

Returns

System.Single

public int PointsPerEmission { get; set; }

Returns

System.Int32

public int MaxDataPoints { get; set; }

Returns

System.Int32

public bool IsStreaming { get; }

True while rows are being streamed.

Returns

System.Boolean