Docs
API
  • index

    String|Number

    Index(key) from data row.

    Also read chart categories.

    Example

    Data index

    
    index: 'name',
    

    Example

    Chart categories

    
    columns: [{
      title: 'Year',
      index: 'xAxis.categories',
      editable: false
    },{
    

    Example

    
    data: [
      ...
      {id: 1, name: 'Sorento', year2015: [7543, 8518, 10842, 9808, 10743, 8967, 9749, 10211, 9380, 8593, 9023, 12872]},
      ...
    ],
    ...
    columns: [{
    ...
    },{
      title: 'January',
      index: 'year2015[0]',      
      format: 'number'
    },{
    ...
    },{
      title: 'Total',
      rightLocked: true,
      index: 'year2015[0] + year2015[1] + year2015[2] + year2015[3] + year2015[4] + year2015[5] + year2015[6] + year2015[7] + year2015[8] + year2015[9] + year2015[10] + year2015[11]',
      format: 'number'
    ...
    

    Default

    
    Column order number index.
    

    See also

    Column property smartIndexFn