7 Tips and Tricks to Improve Your Chart’s Readability | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (173).NET Core  (29).NET MAUI  (203)Angular  (107)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (211)BoldSign  (13)DocIO  (24)Essential JS 2  (106)Essential Studio  (200)File Formats  (65)Flutter  (132)JavaScript  (219)Microsoft  (118)PDF  (81)Python  (1)React  (98)Streamlit  (1)Succinctly series  (131)Syncfusion  (897)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (50)Windows Forms  (61)WinUI  (68)WPF  (157)Xamarin  (161)XlsIO  (35)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (146)Chart  (127)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (618)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (39)Extensions  (22)File Manager  (6)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  (501)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (42)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  (381)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (17)Web  (582)What's new  (323)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
7 Tips to Improve Your Chart’s Readability

7 Tips and Tricks to Improve Your Chart’s Readability

We are very excited to publish our first blog in a series called Design Tips. We are planning to publish blogs in this series every Thursday for three consecutive weeks. In this blog, we will walk you through some useful tips and tricks to improve the readability of charts. In the upcoming blogs in this series, we’ll provide tips to make your charts more understandable and aesthetically appealing.

Charts are one of the most important and widely used data visualization elements for representing data in graphical form.

While designing charts, many of us will make mistakes due to lack of awareness of chart design principles. This might lead to:

  • Poor presentation.
  • Miscommunication of the story.
  • Difficulty in reading and understanding.

The following tips will help you improve the readability of your charts by eliminating common flaws in the design.

I have used the Syncfusion Flutter Charts widget for illustration. These tips are not limited to Flutter charts and are applicable to the charts in other platforms, as well.

#1 Keep the design simple by removing unnecessary styling

Always include only the necessary elements in the design. Don’t add more content and make it clumsy. Most of the time, the border, background, and grids will not convey any details about the data to the user. So, we can remove these and keep the design simple.

Remove the unnecessary stylingThis can be achieved by setting values for the chart border, chart title border, plot area border, and major and minor grid lines in both the vertical and horizontal axis. Refer to the following code example.

   
[Dart]
SfCartesianChart(
   borderWidth: 0,
   plotAreaBorderWidth: 0,
   primaryXAxis: NumericAxis(
      majorGridLines: MajorGridLines(width: 0)
   ),
   title: ChartTitle(
      text: 'Sales comparision of a product', 
      borderWidth: 0
   )
)   

#2 Display units instead of numbers

There may be cases in which you have large numbers in data, and you need to visualize them in a chart. Instead of displaying the numbers in their entirety, display them with units. (For example, display 1,000,000,000 as 1B.)

Display units instead of numbersThis can be achieved in Flutter charts by specifying values to the numberFormat property in primaryYAxis. For this, the intl package should be imported. Refer to the following code example.

   
[Dart]
import 'package:intl/intl.dart';

//...

SfCartesianChart(
   primaryYAxis: NumericAxis(
      numberFormat: NumberFormat.compact()
   ),
   //...
)

#3 Display proper axis scale

Axis scales convey the range of the data, starting, ending, and interval values, to the user. So, use proper interval values and change the label format based on your data. For example, if your data has values from various years, then displaying month and day values alone in the labels is not enough.

Display proper axis scaleYou can change the label format of the date-time axis using the dataFormat property in primaryXAxis. Refer to the following code example.

   
[Dart]
SfCartesianChart(
   primaryXAxis: DateTimeAxis(
      dateFormat: DateFormat.yMd()
   ),
   //...            
)

#4 Reduce unnecessary precision

For some real-time data, we deal with very precise decimal values. Displaying long decimal values in the chart will occupy too much space and degrade readability. So, in such cases, you should display the rounded-off values. For example, if your value is 17.8965432219, it should be displayed as 17.9.

Reduce unnecessary precision

For this, specify values to the decimalPlaces property in the primaryYAxis and the tooltip. Refer to the following code example.

   
[Dart]
SfCartesianChart(
   primaryYAxis: NumericAxis(
      decimalPlaces: 1
   ),
   tooltipBehavior: TooltipBehavior(
      enable: true,
      decimalPlaces: 1
   )
   //...
)

#5 Display additional details in interaction

In the design, there may be some information that is essential and must be displayed. But showing all of it together will look messy in the design. At that time, you might prefer showing the additional details on demand, i.e. using the tooltip feature in Flutter Charts. It will display the details of the data points in a pop-up when the user interacts with them.

Display additional details using tooltipsThe tooltip can be enabled by setting the enable property to true in TooltipBehavior. Refer to the following code example.

   
[Dart]
SfCartesianChart(
   tooltipBehavior: TooltipBehavior(
      enable: true
   ),
   //...
)

#6 Avoid abbreviation

Abbreviations are fine to in a chart. But it is even better to display the actual text. This will help users have a better understanding of the data. Also, if a user is not familiar with the abbreviation, then the information will not be completely conveyed to them.

Avoid abbreviationRefer to the code example of the chart on the right side in the following.

   
[Dart]
SfCartesianChart(
   series: <ChartSeries<ChartData, double>>[
      ColumnSeries<ChartData, double>(
         name: 'Click-Through Rate',
       ),
       LineSeries<ChartData, double>(
          name: 'Cost Per Click'            
       )
   ],
   //...
)

#7 Avoid text overlap

The axis labels’ text can overlap if there are a large number of labels, the labels are long, or the chart has a smaller width. In such cases, Flutter Charts will automatically hide the overlapping labels.  If it’s a numeric or date-time axis, it is fine to hide the overlapping labels. But if it is a category axis and you hide the overlapping labels, then the user will not know the x value of that data point.

In that case, you can apply other overlap actions besides hide, like wrap, multiple rows, rotate 45, and rotate 90.

Avoid text overlapThis can be achieved by setting these values in the labelIntersectAction property in primaryXAxis. Refer to the following code example.

   
[Dart]
SfCartesianChart(
   primaryXAxis: CategoryAxis(
      labelIntersectAction: AxisLabelIntersectAction.rotate45
   ),
   //...
)

Conclusion

We hope that these tips will help you in improving your Flutter Charts’ readability. Stay tuned for upcoming blogs in this series. Also check out our Charts component for different platforms in the following list:

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

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed