Posts

Showing posts with the label MSChartExtension

Implementation of Downsampling Algorithm in MSChart Extension

Image
Introduction Throughout the years of development is MSChart Extension, performance issue on displaying large data size was still remain unsolved. When refreshing a chart on application, we want it to draw as fast as possible to minimize user waiting time and minimize memory consumption. When working with Microsoft Chart Control (MSChart) in WinForms, the amount of memory used and time to draw a chart gets longer with increased of data size. FastLine series have better performance but still suffer from performance hit when data size growth beyond 100K data points. Moreover, plotting large data points on screen with limited pixels caused all the data points and lines overlapped, resulting misinterpretation of information to user. Example below shows sinewave with constant frequency of 100K data points compare to downsampled chart with 500 data points. Sinewave with 100K data points Sinewave downsampled to 500 data points About Largest-Triangle-Three-Bucket (LTTB) Algorithm It's clear...

What's new in Microsoft Chart Control (MSChart) Extension Version 3

Image
Introduction MSChart Extension is an extension class for Microsoft Chart (MSChart) control in Visual Studio for WinForms applications. The tool was first published on July 2012 with the intention to overcome some of the limitation from the original MSChart and provide new functions. With zoom, pan and cursors added, the stock MSChart components can be use as an oscilloscope for waveform display and inspection. The source code and compiled package is available for download at: Download from GitHub Download from NuGet Articles regarding the previous release is available here: MSChartExtension Articles In this article, we will explore what are the new features included in Version 3, let's have a look. We tried to maintain backward compatibility with previous release to minimize changes required to your project, some of the methods and implementation had to be change for better implementation. New Features Chart Cursor Label Formatted String (Prefix, Post...

MSChart Extension - Zoom and Pan Control Version 2.2.0

Image
Introduction MSChart Extension is an extension class for Microsoft Chart (MSChart) control in Visual Studio for WinForms applications. The tool was first published on July 2012 with the intention to overcome some of the limitation from the original MSChart and provide new functions. With zoom, pan and cursors added, the stock MSChart components can be use as an oscilloscope for waveform display and inspection. If you are new to MSChart Extension, we recommend you to read the previous articles listed below first. MSChart Extension - Zoom and Pan Control MSChart Extension Version 2 These articles including this is created as technical sharing as well as documentation for this library. The source code and compiled package is available for download at: Download from GitHub Download from NuGet Known Issue MSChart Extensions is designed for chart type with X and Y Axis, the extension method will not work with some of...

MSChart Extension V2

Image
Introduction MSChart Extension is an extension class for Microsoft Chart (MSChart) control in Visual Studio for WinForms applications. The tool was first published on July 2012 (See: MSChart Extension - Zoom and Pan Control ) with the intention to overcome some of the limitation from the original MSChart. If you are new to MSChart Extension, we recommend you to read the previous article first. Version 2 is created based on Version 1 code base with new features and improvement introduced. The source code is also hosted on GitHub with the compiled package is released as NuGet Package . Download from GitHub Download from NuGet WARNING: The Version 2 released is not 100% backward compatible with Version 1, details as below.

MSChart Extension - Zoom and Pan Controls

Image
NEW : MSChart Extension 2.0 Released - Find out more Introduction - About MSChart Extension MSChart Extension is an extension package created to provide additional features and functions to Microsoft Chart (MSChart) control. This control is released under MIT license. Get latest source code and package from NuGet or GitHub. GitHub: https://github.com/Code-Artist/MSChartExtension NuGet:  http://nuget.org/packages/MSChartExtension

Speedup MSChart Clear Data Points

Problem Statement Clearing data points in MSChart is known to be very slow. http://connect.microsoft.com/VisualStudio/feedback/details/596212/performance-problem-in-mschart-datapointcollection-clear Solution However, there is a work around for this problem. Suggested work around from link stated above is as below:        public   void  ClearPointsQuick()     {         Points.SuspendUpdates();          while  (Points.Count > 0)             Points.RemoveAt(Points.Count - 1);         Points.ResumeUpdates();         Points.Clear(); //NOTE 1     }   Extension method implementation is as below:      internal   static   class   ...