spider_chart_extended

Creator: coderz1093

Last updated:

0 purchases

spider_chart_extended Image
spider_chart_extended Images

Languages

Categories

Add to Cart

Description:

spider chart extended

This package helps you to draw spider chart with overlay of rader. the coloring scheme is always depends on the data which pass through it.
Example Result #

to /example folder.
import 'package:flutter/material.dart';
import 'package:spider_chart_extended/spider_chart_extended.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(

colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Example(),
);
}
}

class Example extends StatelessWidget {
Example({super.key});
List<List<num>> data = [
[
5.0,
5.0,
5.0,
5.0,
5.0,
5.0,
5.0,
]
];
final ticks = [0, 2, 4, 6, 8, 10, 12];
final colorList = [
const Color(0xff62ACD6),
const Color(0xffE69138),
const Color(0xff4EA8A8),
const Color(0xff38761D),
const Color(0xff504EA8),
const Color(0xff674EA8),
const Color(0xff6499E8),
];
final features = [
"General",
"Work",
"Play",
"Religious",
"Office",
"University",
"Pub",

];

@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
backgroundColor: Colors.blue,
title: Text("Spider Chart"),),
body: Padding(
padding: const EdgeInsets.all(20.0),
child: SpiderChart(
tickColor: colorList,
axisColor: Colors.black,
ticks: ticks,
features: features,
data: data,
reverseAxis: false,
),
),
);
}
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.