This toolbox contains the MATLAB® code and examples for the technical article Creating Specialized Charts with MATLAB Object-Oriented Programming.
A chart provides a task-specific application programming interface (API) for creating custom visualizations. Designing and implementing a chart not only provides a convenient API for end users, but simultaneously removes the need for the user to manipulate low-level graphics objects.
The toolbox comprises several diverse examples of custom MATLAB charts, together with an app for browsing the available charts and their documentation.
You can inspect the source code, explore the features and functionality, and run examples demonstrating the use of each chart. The toolbox also has documentation and resources to help you develop your own charts.
AircraftChart: Visualize an aircraft and modify its roll, pitch, and yawAnnulusChart: Visualize relative proportions in a data vector using an annulus (ring)CircularNetFlowChart: Show directed to/from relationships between pairs of categoriesClockChart: Display an analog clock, using a timer to schedule regular updatesCylinderChart: Plot data using stacked cylindersEdgeworthBowleyChart: Plot the utility curves of two individuals and the derived Pareto-efficient contract curveGraphicsHierarchyChart: Visualize the graphics hierarchy descending from a given graphics objectImpliedVolatilityChart: Plot an implied volatility surface as a function of the option strike price and time to expiryLineGradientChart: Plot a variable-color curve against a date/time vectorLineSelectorChart: Display a collection of line plots and select one to highlightPolarChart: Polar line graph of dependent numeric variables plotted against independent circular dataRadarScope: Plot a set of blips on a radar scope and issue proximity alertsRangefinderChart: Bivariate scatter plot showing the crossover point of the marginal medians and lines indicating the marginal adjacent valuesSankeyChart: Illustrate the flow between different statesScatterBoxChart: Bivariate scatter plot with marginal boxplotsScatterDensityChart: Bivariate scatter plot using color to indicate relative density of the data pointsScatterFitChart: Manage bivariate scattered data together with the line of best fitSettlementChart: Plot in the money option prices against strike pricesSignalTraceChart: Plot non-overlapping signal traces against a numeric time vectorSnailTrailChart: Plot excess returns against tracking errors for an asset relative to a benchmarkSpiderChart: Plot and compare values from distinct measurements on a webTernaryChart: Barycentric plot of three variables summing to a constantValueAtRiskChart: Plot the distribution of a return series together with its value at risk metrics and a distribution fitWaterfallChart: Cumulative bar chart visualizing the evolution of an initial valueWindRoseChart: Display wind speed and direction data on a polar histogram
This submission is a MATLAB toolbox.
- Double-click on the toolbox installer (the
.mltbxfile) to install the toolbox. - See the
GettingStarted.mguide for introductory information. - Open the
Chart Browserapp from the Apps gallery to access further documentation resources and view the example charts.
MathWorks Product Requirements
This toolbox requires MATLAB release R2025a or later.
Some example charts in the toolbox rely on additional toolboxes.
The license is available in the LICENSE.txt file in this GitHub repository.
Copyright 2018-2025 The MathWorks, Inc.
