Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (143).NET Core  (23)Angular  (39)ASP.NET  (47)ASP.NET Core  (53)ASP.NET MVC  (83)Azure  (27)Blazor  (49)DocIO  (18)Essential JS 2  (64)Essential Studio  (159)Flutter  (53)JavaScript  (134)Microsoft  (96)PDF  (48)React  (29)Succinctly series  (118)Syncfusion  (400)TypeScript  (30)Uno Platform  (2)UWP  (4)Vue  (25)Webinar  (14)Windows Forms  (52)WPF  (92)Xamarin  (105)XlsIO  (20)Other CategoriesBarcode  (4)BI  (29)Bold BI  (3)Build conference  (6)Business intelligence  (53)Button  (4)C#  (100)Chart  (40)Cloud  (8)Company  (445)Dashboard  (4)Data Science  (3)Data Validation  (2)DataGrid  (31)Development  (234)Doc  (7)eBook  (89)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (14)Extensions  (7)File Manager  (3)Gantt  (6)Gauge  (4)Git  (3)Grid  (24)HTML  (8)Installer  (1)Knockout  (2)LINQPad  (1)Linux  (1)M-Commerce  (1)Metro Studio  (11)Mobile  (140)Mobile MVC  (9)OLAP server  (1)Orubase  (12)Partners  (20)PDF viewer  (15)Performance  (2)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (5)Road Map  (9)Scheduler  (15)SfDataGrid  (7)Silverlight  (21)Sneak Peek  (12)Solution Services  (2)Spreadsheet  (2)SQL  (4)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (9)Tips and Tricks  (17)UI  (62)Uncategorized  (68)Unix  (2)User interface  (49)Visual State Manager  (1)Visual Studio  (12)Visual Studio Code  (7)Web  (99)What's new  (62)Windows 8  (19)Windows App  (1)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Share on twitter
Share on facebook
Share on linkedin
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.

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

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin

Leave a comment

Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top