Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

3
Votes

The Syncfusion charts widgets for Flutter allow to create advanced and complex charts for the Flutter UI.

However when generating PDF you can only insert those charts using an image bitmap in the PdfBitmap, as described in this support article.


Unfortunately this approach inserting these charts as a bitmaps and that cause many issues. When PDF page is zoomed in the chart is not sharp and pixels are visible. Additionally this approach is somewhat limited and also slow (due to image encoding/re-encoding cost) when you need to generate a PDF without showing charts on the screen. This is especially noticeable in 50..10 pages PDFs that may contains 50..100 charts and especially when running on the Flutter web platform.


All in all it would be great if in addition to PdfBitmap, the PDF library allowed to directly use the SfCartesianChart widget and corresponding classes (as well as other chart types) to draw vector-based graphics directly into the PDF.


      SfCartesianChart(
        key: _ cartesianChartKey,
        primaryXAxis: CategoryAxis(),
        series: >[
          ColumnSeries(
            dataSource: _chartData,
            xValueMapper: (ChartSampleData data, _) => data.x,
            yValueMapper: (ChartSampleData data, _) => data.y,
          )
        ]
      ),