moon_charts 3.0.0 moon_charts: ^3.0.0 copied to clipboard
moon chart package
Description #
Moon Graphs is a versatile library designed to create animated charts with ease.
Whether you're visualizing data trends over time or comparing categories, Moon Graphs provides smooth animations that make your data come to life.
With its intuitive API, you can quickly generate dynamic and visually appealing graphs that enhance the storytelling of your data.
Perfect for developers and data analysts looking to add a polished, animated touch to their presentations and reports.
Getting started #
flutter pub add moon_graphs
Usage #
Container(
width: 300,
height: 300,
alignment: Alignment.center,
child: MoonGraph.linearGraph(
chartPointGroup: chartPointGroup,
hitXIndex: _hitIndex,
onChangeSelectedIndex: (index) {
_hitIndex = index;
},
isShowingSelectedYValue: true,
style: const MoonChartLineStyleUIModel.fromDefault(),
backgroundCardPadding: const EdgeInsets.all(5),
legend: "FEV1%",
unSelectedDottedLineUIModel: MoonDottedLineUIModel(
dotWidth: 1,
dotHeight: 6,
space: 0,
dotColor: Colors.blue.withOpacity(0.5)
),
selectedDottedLineUIModel: MoonDottedLineUIModel(
dotWidth: 2,
dotHeight: 6,
space: 0,
dotColor: Colors.blue.withOpacity(1)
),
backgroundBoxShadow: const BoxShadow(
color: Color.fromRGBO(200, 200, 200, 0.5),
blurRadius: 5,
spreadRadius: 0.1,
offset: Offset(2, 2)
),
),
),