Here's a video showing the features of Chord Snip
Here's the Add-on launching menu item
On initialization, Chord Snip automatically identifies the data on the active sheet and builds a Chord diagram. The sidebar looks like this and shows a preview of the chart you can choose to insert into your sheet.
Actually you'll see the explanation below in the About tab
A chord diagram is a visualization of the relationship between data items, usually showing the flow of data between items in a system. The diagram is arranged as connected chords in a circle and can show flows in both directions. Chord Snip is a Google Sheets add-on/Office add-in which maintains a chord diagram preview in the sidebar of the active sheet's data in real time.Chord charts are often used to show flows between places or members of a system (for example journeys to and from places)
A Chord diagram needs 3 data items, which should be laid out as columns with headers in a sheet.
You can get a scaled up version of the chart preview by copying the code shown in the Chart settings/embed code area. This will be in SVG format so that you can embed the code or link to the drive file in a web site or document.
There are 3 columns of interest for a Chord diagram. Chord snip will try to deduce which columns are which, but you can explicitly set them via the Data settings dialog. The columns section can be used to modify the source data location.
By default all the data in the active sheet is incorporated into the chart. If you select and area of data, and choose selected range from the source data section, the chart will only use data from the selected area.
If Chord snip detects that there is no suitable data on the current page, you'll get a message like this, and it will even generate a new sheet with some data to play around with if you want.
To embed a chart image in your sheet, select a cell that at which the top left corner of the chart should be positioned, and use Insert.
You can manipulate or remove an already inserted image from your sheet with this standard sheets image dialog.
There are a large number of settings available to change the appearance of both the preview and full sized chart. Let's take a look through them. It should be evident from the images what each setting does.
This dialog gives access to further settings to change the appearance of various attributes of the chart.
These settings set the appearance of the links between each node.
These identify the color scheme approach. There are various to choose from which may be extended over time. These schemes are used to color both the nodes and the links.
Ramp position and ramp value will create a color ramp scheme which will be interpolated using either the position of the node, or its total volume to scale the color. The start and finish ramp colors can be specified
then by value
Opacity is a value beteen 0 and 1 and is the transparency of the color. A lowish value is most effective for this kind of diagram so the crossovers can be more clearly seen. Here's what an opacity of 1 looks like, using the google20 scheme.
Here's the same diagram with the border width set to 0.
The nodes are the chords round the exterior of the circle. They take their fill colors from the link color schemes and opacity.
Hovering over a link or a node will reveal some data. The tooltip format is not configurable.
The preview diagram is interactive. Hovering over a node will hide all but its links
Images embedded in sheets don't have this interactivity, since the are simply images of a diagram.
These settings are the sizes of the full scale chart that you embed in your sheet with the Insert button.
Some notes on these settings.
Chord snip creates SVG code that can be copied directly into a web page's HTML code to embed the chart. Just copy the code in this dialog.
You'll notice that each settings page has an apply and a back button. This allows you to undo any changes you've made while on this settings page. Apply will be enabled if you have made any. Any changes made on the page are immediately applied to the chart preview so you can flip over to see what it looks like. To keep them hit Apply, to get abandon them use Back.
In addition, Chord snip has a comprehensive way of making settings permanent so you can re-use them if you have a house or document style you want to follow, or for restoring complete settings as they were at the beginning of the session, or to the default values for the chart.
This dialog allows you to retain the current settings so that they will apply each time you open this document, or to every document where you use Chord Snip. Clear these settings will cause Chord snip to revert to it's normal default values in this and other documents.
Chord snip follows this pattern when deciding which settings to use when opening, using the first settings collection that exists.
You can modify the scope of the chart with these settings
The add-on now uses SheetsMore to respect data, so the chart will pay attention to the most common types of filters selected in the UI. Since this is a service with a quota, the setting of respect filters is not saved to avoid unnecessary API traffic, so if you want it, you need to set it for your session.
This add-on is available in the Sheets add-on storejoin our community for news of when this add-on is published so you can use it in your own workbooks.
All features mentioned here are available in the current Chord Snip version. At some future time, there might be a pro-version with additional capabilities, or a lite version with some features that might need to be unlocked before they are available. For more information on this join our community
As usual, the code is open source. You can find it on GitHub.
You may want to check out Sankey Snip which is a similar add-on for creating Sankey flow diagrams.
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Add-ons >