Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 你能创建一个只包含颤振中的条的条形图吗?_Flutter_Flutter Dependencies - Fatal编程技术网

Flutter 你能创建一个只包含颤振中的条的条形图吗?

Flutter 你能创建一个只包含颤振中的条的条形图吗?,flutter,flutter-dependencies,Flutter,Flutter Dependencies,我需要创建一个基本的颤振条形图。就像图片中的图表。我真的需要一个有条带的图,没有多少额外的。使用图表,我可以创建图表,但没有什么是像我所寻找的。有人知道使用图表或其他软件包的方法吗?谢谢 是的,您可以使用以下选项: @override Widget build(BuildContext context) { return new charts.BarChart( seriesList, animate: animate, /// Assign

我需要创建一个基本的颤振条形图。就像图片中的图表。我真的需要一个有条带的图,没有多少额外的。使用图表,我可以创建图表,但没有什么是像我所寻找的。有人知道使用图表或其他软件包的方法吗?谢谢


是的,您可以使用以下选项:

  @override
  Widget build(BuildContext context) {
    return new charts.BarChart(
      seriesList,
      animate: animate,

      /// Assign a custom style for the measure axis.
      ///
      /// The NoneRenderSpec can still draw an axis line with
      /// showAxisLine=true.
      primaryMeasureAxis:
          new charts.NumericAxisSpec(renderSpec: new charts.NoneRenderSpec()),

      /// This is an OrdinalAxisSpec to match up with BarChart's default
      /// ordinal domain axis (use NumericAxisSpec or DateTimeAxisSpec for
      /// other charts).
      domainAxis: new charts.OrdinalAxisSpec(
          // Make sure that we draw the domain axis line.
          showAxisLine: true,
          // But don't draw anything else.
          renderSpec: new charts.NoneRenderSpec()),
    );
  }
这是从,你可以在那里找到许多其他的例子