data property

String data
final

Chart data

(use jsonEncode if the data is in Map<String,dynamic>)

Reference: High Charts API

String chart_data = '''{
     title: {
         text: 'Combination chart'
     },
     xAxis: {
         categories: ['Apples', 'Oranges', 'Pears', 'Bananas', 'Plums']
     },
     labels: {
         items: [{
             html: 'Total fruit consumption',
             style: {
                 left: '50px',
                 top: '18px',
                 color: (
                     Highcharts.defaultOptions.title.style &&
                     Highcharts.defaultOptions.title.style.color
                 ) || 'black'
             }
         }]
     },

     ...

   }''';

Reference: High Charts API

Implementation

final String data;