runtimePerformancePolicy property

ChartJsonOptionSchema get runtimePerformancePolicy

Implementation

static ChartJsonOptionSchema
get runtimePerformancePolicy => ChartJsonOptionSchema(
  name: runtimePerformancePolicyName,
  description:
      'Runtime performance thresholds used for diagnostics and recommendations.',
  acceptedContainers: const [
    r'$',
    'runtimePerformancePolicy',
    'performancePolicy',
    'diagnostics',
    'diagnostics.performancePolicy',
    'diagnostics.runtimePerformancePolicy',
    'runtimeDiagnostics',
    'runtimeDiagnostics.performancePolicy',
    'runtimeDiagnostics.runtimePerformancePolicy',
  ],
  fields: ChartRuntimePerformancePolicyFields.schemaJson(),
  examplePayload: const {
    'diagnostics': {
      'performancePolicy': {
        'largeDatasetPointThreshold': 10000,
        'cachePressureWarningThreshold': 0.9,
        'lowRenderCacheHitRateThreshold': 0.25,
        'lowRenderCacheMinRequests': 20,
      },
    },
  },
  exampleChartPayload: const {
    'type': 'line',
    'diagnostics': {
      'performancePolicy': {
        'largeDatasetPointThreshold': 10000,
        'cachePressureWarningThreshold': 0.9,
        'lowRenderCacheHitRateThreshold': 0.25,
        'lowRenderCacheMinRequests': 20,
      },
    },
    'series': [
      {
        'name': 'Revenue',
        'data': [12, 18, 11, 24],
      },
    ],
  },
);