MockChartDataSource
public sealed class MockChartDataSource : ChartDataSourceGenerates 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.
Methods
Section titled “Methods”
Refresh()
Section titled “Refresh()”public override void Refresh()Regenerates the data and publishes it.
Regenerate()
Section titled “Regenerate()”public void Regenerate()Regenerates the whole data set and publishes it.
StartStreaming()
Section titled “StartStreaming()”public void StartStreaming()Starts emitting rows at the configured rhythm.
StopStreaming()
Section titled “StopStreaming()”public void StopStreaming()Stops emitting rows.
ToggleStreaming()
Section titled “ToggleStreaming()”public void ToggleStreaming()Starts or stops streaming.
Emit()
Section titled “Emit()”public void Emit()Emits one batch of rows immediately.
Constructors
Section titled “Constructors”
MockChartDataSource()
Section titled “MockChartDataSource()”public MockChartDataSource()Properties
Section titled “Properties”
public MockDataShape Shape { get; set; }Returns
ChartGuru.MockDataShape
Pattern
Section titled “Pattern”public SeriesPattern Pattern { get; set; }Returns
MockMagic.SeriesPattern
SeriesCount
Section titled “SeriesCount”public int SeriesCount { get; set; }Returns
System.Int32
PointsPerSeries
Section titled “PointsPerSeries”public int PointsPerSeries { get; set; }Returns
System.Int32
MinValue
Section titled “MinValue”public float MinValue { get; set; }Returns
System.Single
MaxValue
Section titled “MaxValue”public float MaxValue { get; set; }Returns
System.Single
NoiseFactor
Section titled “NoiseFactor”public float NoiseFactor { get; set; }Returns
System.Single
LabelPreset
Section titled “LabelPreset”public LabelPreset LabelPreset { get; set; }Returns
MockMagic.LabelPreset
DataLocaleId
Section titled “DataLocaleId”public string DataLocaleId { get; set; }Configured row-label locale. Changes made while streaming apply when the stream is restarted.
Returns
System.String
ActiveLocale
Section titled “ActiveLocale”public MockLocale ActiveLocale { get; }Immutable locale captured by a running stream, or null while stopped.
Returns
MockMagic.MockLocale
ActiveLocaleId
Section titled “ActiveLocaleId”public string ActiveLocaleId { get; }Locale identifier captured by a running stream, or null while stopped.
Returns
System.String
SeriesNames
Section titled “SeriesNames”public string[] SeriesNames { get; set; }Returns
System.String[]
DataMode
Section titled “DataMode”public MockDataMode DataMode { get; set; }Returns
ChartGuru.MockDataMode
Rhythm
Section titled “Rhythm”public StreamRhythm Rhythm { get; set; }Returns
MockMagic.StreamRhythm
EmissionInterval
Section titled “EmissionInterval”public float EmissionInterval { get; set; }Returns
System.Single
PointsPerEmission
Section titled “PointsPerEmission”public int PointsPerEmission { get; set; }Returns
System.Int32
MaxDataPoints
Section titled “MaxDataPoints”public int MaxDataPoints { get; set; }Returns
System.Int32
IsStreaming
Section titled “IsStreaming”public bool IsStreaming { get; }True while rows are being streamed.
Returns
System.Boolean