mzimmerm / flutter_charts

Charts Library for Flutter, written in Dart with Flutter.
Other
250 stars 42 forks source link

How can I get the series labels like this example: #33

Closed claudneysessa closed 2 years ago

claudneysessa commented 2 years ago

image

claudneysessa commented 2 years ago

I would like to include the labels for the series but I couldn't find a way to run it, could you guide me on how to proceed?

claudneysessa commented 2 years ago

image

claudneysessa commented 2 years ago

My Coode

charts.BarChart(
                  seriesLineData,
                  animate: true,
                  behaviors: [
                    charts.ChartTitle(
                      "Visal Geral de Vendas",
                      subTitle: "Últimos 6 meses",
                    ),
                  ],
                  domainAxis: charts.OrdinalAxisSpec(
                    renderSpec: charts.SmallTickRendererSpec(
                      labelStyle: const charts.TextStyleSpec(
                        color: charts.Color.black,
                      ),
                      lineStyle: charts.LineStyleSpec(
                        color: charts.ColorUtil.fromDartColor(
                          Colors.black.withOpacity(0.3),
                        ),
                      ),
                    ),
                  ),
                  primaryMeasureAxis: charts.NumericAxisSpec(
                    renderSpec: charts.GridlineRendererSpec(
                      labelStyle: const charts.TextStyleSpec(
                        color: charts.Color.black,
                      ),
                      lineStyle: charts.LineStyleSpec(
                        color: charts.ColorUtil.fromDartColor(
                          Colors.black.withOpacity(0.3),
                        ),
                      ),
                    ),
                  ),
                )
mzimmerm commented 2 years ago

Hi, are you using flutter_charts or charts_flutter ? The sample sounds like it is not from flutter_charts.

mzimmerm commented 2 years ago

This is reported clearly to another charting library, closing