TenunChart constructor
const
TenunChart({
- Key? key,
- BaseChartConfig? config,
- Map<
String, dynamic> ? jsonConfig, - double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- bool validatePayload = false,
- bool strictValidation = false,
- int validationReportMaxIssues = 3,
- TenunDiagnosticFallbackOptions diagnosticFallbackOptions = const TenunDiagnosticFallbackOptions(),
- void onValidationResult(
- ValidationResult result
- void onPayloadNormalizationResult(
- PayloadNormalizationResult result
- void onRuntimeDiagnostics(
- ChartRuntimeDiagnostics diagnostics
- ChartRuntimePerformancePolicy runtimePerformancePolicy = ChartRuntimePerformancePolicy.defaults,
- ChartRenderErrorHandler? onRenderError,
- Widget validationErrorBuilder(
- BuildContext context,
- ValidationResult result
- ChartRenderErrorBuilder? renderErrorBuilder,
- bool catchRenderErrors = false,
- bool autoNormalizePayload = false,
- bool sanitizeTradingPayload = true,
- bool dropUnsupportedSampling = true,
- int? normalizeDefaultThreshold,
- ChartDataMode normalizeDefaultMode = ChartDataMode.auto,
- PayloadNormalizationOptions? normalizationOptions,
Implementation
const TenunChart({
super.key,
this.config,
this.jsonConfig,
this.width,
this.height,
this.padding,
this.validatePayload = false,
this.strictValidation = false,
this.validationReportMaxIssues = 3,
this.diagnosticFallbackOptions = const TenunDiagnosticFallbackOptions(),
this.onValidationResult,
this.onPayloadNormalizationResult,
this.onRuntimeDiagnostics,
this.runtimePerformancePolicy = ChartRuntimePerformancePolicy.defaults,
this.onRenderError,
this.validationErrorBuilder,
this.renderErrorBuilder,
this.catchRenderErrors = false,
this.autoNormalizePayload = false,
this.sanitizeTradingPayload = true,
this.dropUnsupportedSampling = true,
this.normalizeDefaultThreshold,
this.normalizeDefaultMode = ChartDataMode.auto,
this.normalizationOptions,
});