TenunChart constructor

const TenunChart({
  1. Key? key,
  2. BaseChartConfig? config,
  3. Map<String, dynamic>? jsonConfig,
  4. double? width,
  5. double? height,
  6. EdgeInsetsGeometry? padding,
  7. bool validatePayload = false,
  8. bool strictValidation = false,
  9. int validationReportMaxIssues = 3,
  10. TenunDiagnosticFallbackOptions diagnosticFallbackOptions = const TenunDiagnosticFallbackOptions(),
  11. void onValidationResult(
    1. ValidationResult result
    )?,
  12. void onPayloadNormalizationResult(
    1. PayloadNormalizationResult result
    )?,
  13. void onRuntimeDiagnostics(
    1. ChartRuntimeDiagnostics diagnostics
    )?,
  14. ChartRuntimePerformancePolicy runtimePerformancePolicy = ChartRuntimePerformancePolicy.defaults,
  15. ChartRenderErrorHandler? onRenderError,
  16. Widget validationErrorBuilder(
    1. BuildContext context,
    2. ValidationResult result
    )?,
  17. ChartRenderErrorBuilder? renderErrorBuilder,
  18. bool catchRenderErrors = false,
  19. bool autoNormalizePayload = false,
  20. bool sanitizeTradingPayload = true,
  21. bool dropUnsupportedSampling = true,
  22. int? normalizeDefaultThreshold,
  23. ChartDataMode normalizeDefaultMode = ChartDataMode.auto,
  24. 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,
});