What’s New in 2020 Volume 1: Flutter Charts Widget | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (174).NET Core  (29).NET MAUI  (207)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (215)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (118)PDF  (81)Python  (1)React  (100)Streamlit  (1)Succinctly series  (131)Syncfusion  (914)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (147)Chart  (131)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (628)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (507)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (592)What's new  (332)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
What’s New in 2020 Volume 1 Flutter Charts Widget

What’s New in 2020 Volume 1: Flutter Charts Widget

A firm’s growth begins with listening to customer feedback. That’s why we at Syncfusion continuously review the constructive questions and comments we receive from our customers, which subsequently lead to various feature requests. From these requests, we handpicked the most widely asked-for features and made them available in Essential Studio 2020 Volume 1, our latest release. In this blog post, I’ll quickly review the new chart types for the Flutter Chart widget, along with other new features.

New chart types

We extended the Syncfusion Flutter Charts widget to support three more financial chart types:

High-Low charts

High-low (HiLo) charts illustrate stock price movements by showing high and low values. The following code illustrates how to render a HiLo chart.

[Dart]
  SfCartesianChart(
    series: <ChartSeries<_ChartSampleData, DateTime>>[
      HiloSeries<_ChartSampleData, DateTime>(
        dataSource: chartData,
        xValueMapper: (_ChartSampleData sales, _) => sales.x,
        lowValueMapper: (_ChartSampleData sales, _) => sales.low,
        highValueMapper: (_ChartSampleData sales, _) => sales.high
      ),
      // Add more series.
    ]
  )
HiLo Chart - Flutter Charts
HiLo Chart

Open-high-low-close (OHLC) charts

Open-high-low-close (OHLC) charts represent the low, high, open, and closing values of a stock over time. The following code illustrates how to render an OHLC chart.

[Dart]
  SfCartesianChart(
    series: <ChartSeries<_ChartSampleData, DateTime>>[
      HiloOpenCloseSeries<_ChartSampleData, DateTime>(
        dataSource: chartData,
        xValueMapper: (_ChartSampleData sales, _) => sales.x,
        lowValueMapper: (_ChartSampleData sales, _) => sales.low,
        highValueMapper: (_ChartSampleData sales, _) => sales.high,
        openValueMapper: (ChartSampleData sales, _) => sales.open,
        closeValueMapper: (ChartSampleData sales, _) => sales.close
      ),
      // Add more series.
    ]
  )
OHLC Chart - Flutter Chart
OHLC Chart

Candle charts

Candle charts are similar to OHLC charts in that they too are used to represent the open, high, low, and close price of a stock, but they visualize the data in a different way. The following code illustrates how to render a candle chart.

[Dart]
SfCartesianChart(
    series: <ChartSeries<_ChartSampleData, DateTime>>[
      CandleSeries<_ChartSampleData, DateTime>(
        dataSource: chartData,
        xValueMapper: (_ChartSampleData sales, _) => sales.x,
        lowValueMapper: (_ChartSampleData sales, _) => sales.low,
        highValueMapper: (_ChartSampleData sales, _) => sales.high,
        openValueMapper: (ChartSampleData sales, _) => sales.open,
        closeValueMapper: (ChartSampleData sales, _) => sales.close
      ),
      // Add more series.
    ]
  )
Candle Chart - Flutter Chart
Candle Chart

Trendlines

Trendlines are used to show the direction and speed of a value’s rise or fall. The following six types of trendlines can be rendered in Cartesian charts:

  • Linear
  • Exponential
  • Logarithmic
  • Polynomial
  • Power
  • Moving average

Trendlines support appearance customization, animation, tooltips, markers, as well as forward and backward forecasts. The following code illustrates how to render trendlines.

[Dart]
SfCartesianChart(
    series: <ChartSeries<_ChartSampleData, String>>[
    ColumnSeries<_ChartSampleData, String>(
        dataSource: chartData,
        xValueMapper: (_ChartSampleData data, _) => data.x,
        yValueMapper: (_ChartSampleData data, _) => data.y,
        trendlines: <Trendline>[
          Trendline(
              type: TrendlineType.linear
          )
        ]
      )
    ]
  )
Chart with Linear Trendline - Flutter Chart
Chart with Linear Trendline

Technical indicators

Technical indicators—such as historic price, volume, interest, etc.—are used to forecast financial market direction. The Flutter Chart widget supports the following 10 types of technical indicators:

  • Accumulation distribution indicator (AD)
  • Average true range indicator (ATR)
  • Bollinger band indicator
  • Exponential moving average indicator (EMA)
  • Moving average convergence/divergence indicator (MACD)
  • Momentum indicator
  • Relative strength index indicator (RSI)
  • Simple moving average indicator (SMA)
  • Stochastic indicator
  • Triangular moving average indicator (TMA)

The following code illustrates how to render technical indicators.

[Dart]
SfCartesianChart( 
    indicators: <TechnicalIndicators<_ChartSampleData, dynamic>>[
      RsiIndicator<_ChartSampleData, dynamic>(
        seriesName: 'AAPL'
      )
    ],
    series: <ChartSeries<_ChartSampleData, dynamic>>[
      HiloOpenCloseSeries<_ChartSampleData, dynamic>(
        dataSource: chartData,
        name: 'AAPL'
      )
    ]
  )
Chart with RSI Technical Indicator - Flutter Charts
Chart with RSI Technical Indicator

Conclusion

I hope you are excited to use these new features in your Flutter applications. For existing customers, the new version is available for download from the license and downloads page, or you can get the packages directly from pub.dev. If you are not yet a customer, you can try our 30-day free trial to check out these new features. Be sure to try our samples from the GitHub location, web sample browserPlay store, or App Store.

Also, if you wish to send us feedback or would like to submit any questions, please feel free to post them in the comments section of this blog post. You can also contact us through our support forumfeedback portal, or Direct-Trac support system.

googleplay.png

Related Blogs

Here other blog posts related to Flutter updates in Volume 1:

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed