schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-06/schema#',
  r'$id': '$id',
  r'$comment':
      'https://pub.dev/documentation/charts_common/latest/common/SeriesLegend-class.html',
  'title': 'SeriesLegend',
  'type': 'object',
  'additionalProperties': false,
  'properties': {
    'cellPadding': SchemaHelper.objectSchema(EdgeInsetsGeometrySchema.id),
    'defaultHiddenSeries': SchemaHelper.anySchema,
    'desiredMaxColumns': SchemaHelper.numberSchema,
    'desiredMaxRows': SchemaHelper.numberSchema,
    'horizontalFirst': SchemaHelper.boolSchema,
    'entryTextStyle': SchemaHelper.objectSchema(TextStyleSpecSchema.id),
    'insideJustification': SchemaHelper.objectSchema(
      InsideJustificationSchema.id,
    ),
    'legendDefaultMeasure': SchemaHelper.objectSchema(
      LegendDefaultMeasureSchema.id,
    ),
    'measureFormatter': SchemaHelper.stringSchema,
    'outsideJustification': SchemaHelper.objectSchema(
      OutsideJustificationSchema.id,
    ),
    'position': SchemaHelper.objectSchema(BehaviorPositionSchema.id),
    'secondaryMeasureFormatter': SchemaHelper.stringSchema,
    'showMeasures': SchemaHelper.boolSchema,
    'type': {
      'type': 'string',
      'enum': [
        'series_legend',
      ],
    },
  },
};