Search
 
SCRIPT & CODE EXAMPLE
 

DART

how to change legend colour in SfCircularChart in flutter

child: SfCircularChart(
    title: ChartTitle(text: 'Advances'),
    palette: const <Color>[
      Color(0xFFffc107),
      Color(0xFF0386E8),
    ],
    legend: Legend(
      isVisible: true,
      overflowMode: LegendItemOverflowMode.wrap,
      position: LegendPosition.left,
    ),
    tooltipBehavior: _tooltipData,
    series: <CircularSeries>[
      RadialBarSeries<ChartData, String>(
          legendIconType: LegendIconType.seriesType,
          dataSource: _chartData,
          xValueMapper: (ChartData data, _) => data.name,
          yValueMapper: (ChartData data, _) => data.value,
          dataLabelSettings: const DataLabelSettings(
            isVisible: true,
          ),
          enableTooltip: true,
          cornerStyle: CornerStyle.endCurve,
          maximumValue: 100)
    ],
  ),
Comment

PREVIOUS NEXT
Code Example
Dart :: not empty string check dart 
Dart :: dart loop through array 
Dart :: Floating Action Button rectangular shaped 
Dart :: flutter lock orientation 
Dart :: dart command to stop program 
Dart :: flutter string contains 
Dart :: flutter url image 
Dart :: string to double fultter 
Dart :: flutter text button 
Dart :: dart square root 
Dart :: put bottom sheet above keyboard flutter 
Dart :: get only time from datetime in dart 
Dart :: flutter duration to string 
Dart :: flutter remove value from list 
Dart :: extend class flutter 
Dart :: flutter horizontal line 
Dart :: how do you change the back button flutter 
Dart :: flutter get package command 
Dart :: error: xmlhttprequest error. dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 906:28 
Dart :: dart modulo 
Dart :: dart print item # of a list 
Dart :: settimeout dart 
Dart :: flutter snackbar action button text color 
Dart :: flutter sliver 
Dart :: get string from future string flutter 
Dart :: flutter array filter 
Dart :: convert double to string flutter 
Dart :: 2d list in dart 
Dart :: dart ASCII to string 
Dart :: DateFormat local fr flutter 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =