rawgraphs / rawgraphs-charts

A curated selection of charts provided through RAWGraphs interface
https://rawgraphs.io/
Apache License 2.0
93 stars 42 forks source link

Add chart dimension metadata: multipleRequired #52

Closed iosonosempreio closed 3 years ago

iosonosempreio commented 3 years ago

Add the property multipleRequired to chart dimensions that require more than a single data-header input to work (e.g. Steps in Alluvial Diagram).

{
    id: 'steps',
    name: 'steps',
    validTypes: ['number', 'date', 'string'],
    required: true,
    multiple: true,

    multipleRequired: true

  }
bianchimro commented 3 years ago

hi @iosonosempreio, this should already do the trick (minValues property):

{
    id: 'steps',
    name: 'steps',
    validTypes: ['number', 'date', 'string'],
    required: true,
    multiple: true,
    minValues: 2
  }

(there is also another maxValues prop)