tooltips added to graphs

This commit is contained in:
Felix 2019-08-19 11:58:26 +01:00
parent d0defec7d6
commit abbd0a7170

View file

@ -119,11 +119,14 @@ class StatsPageState extends State<StatsPage> {
),
),
Container(
Tooltip(
message: "Graph of total spend last week",
child : Container(
padding: EdgeInsets.symmetric(horizontal: 10),
height: 200,
child: totalLastWeekGraph.graph != null ? new charts.TimeSeriesChart(totalLastWeekGraph.graph) : Center(child: Text("Loading graph...")), //List<Series<dynamic, DateTime>>
),
),
Container(
padding: EdgeInsets.fromLTRB(0.0,17,0.0,0.0),
@ -138,11 +141,14 @@ class StatsPageState extends State<StatsPage> {
),
),
Container(
Tooltip(
message: "Graph of average spend last week",
child : Container(
padding: EdgeInsets.symmetric(horizontal: 10),
height: 200,
child: avgSpendLastWeekGraph.graph != null ? new charts.TimeSeriesChart(avgSpendLastWeekGraph.graph) : Center(child: Text("Loading graph...")), //List<Series<dynamic, DateTime>>
),
),
Container(
padding: EdgeInsets.fromLTRB(0.0,17,0.0,0.0),
@ -157,11 +163,14 @@ class StatsPageState extends State<StatsPage> {
),
),
Container(
Tooltip(
message: "Graph of total spend last month",
child : Container(
padding: EdgeInsets.symmetric(horizontal: 10),
height: 200,
child: totalLastMonthGraph.graph != null ? new charts.TimeSeriesChart(totalLastMonthGraph.graph) : Center(child: Text("Loading graph...")), //List<Series<dynamic, DateTime>>
),
),
Container(
padding: EdgeInsets.fromLTRB(0.0,17,0.0,0.0),
@ -176,11 +185,14 @@ class StatsPageState extends State<StatsPage> {
),
),
Container(
Tooltip(
message: "Graph of average spend last month",
child : Container(
padding: EdgeInsets.symmetric(horizontal: 10),
height: 200,
child: avgSpendLastMonth.graph != null ? new charts.TimeSeriesChart(avgSpendLastMonth.graph) : Center(child: Text("Loading graph...")), //List<Series<dynamic, DateTime>>
),
),
],
),