Skip to content

Commit

Permalink
Removed graph axis labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 23, 2023
1 parent 5a39193 commit 3e53542
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/widgets/nt_widgets/single_topic/graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,7 @@ class _GraphWidgetGraphState extends State<_GraphWidgetGraph> {
series: getChartData(),
margin: const EdgeInsets.only(top: 8.0),
primaryXAxis: NumericAxis(
axisLabelFormatter: (axisLabelRenderArgs) {
num value = (graphData.last.x - axisLabelRenderArgs.value) / 1e6;
String valueString = value.abs().toStringAsFixed(2);

return ChartAxisLabel(num.parse(valueString).toString(), null);
},
labelStyle: const TextStyle(color: Colors.transparent),
desiredIntervals: 5,
),
primaryYAxis: NumericAxis(
Expand Down

0 comments on commit 3e53542

Please sign in to comment.