From ZENBU documentation wiki
Jump to: navigation, search

ZENBU-reports > Element Types


The ChartElement is a collection of basic chart and plotting visualization displays. This includes various line and bar charts, both 2d and 3d scatter plots, and a special ternary plotting display. This Element uses ChartJS and Plotly.js internally for drawing, thus it will be possible in the future to expand to include other drawing styles from these toolkits. By combining all the simple chart types into a single Element, it makes it easy to switch the chart type for the element as one might explore the best way to display the data.

Chart types

The ChartElement is a multi-modal element where each of the 'chart type' will have it's own set of configuration options. As such I will break down this document by each 'chart type'. The available 'chart types' are : scatter2d, scatter3d, line, bar and ternary. As with all ZENBU-Reports elements the configuration sections for title, framing, data sources, and triggers are the same.


ZENBU-Reports-2Dscatter.PNG ChartElement-2Dscatter-config.png


ZENBU-Reports-3Dscatter.PNG ChartElement-3Dscatter-config.png ChartElement-3Dscatter-config-datatypes.png

The scatter3D chart type uses 3 numerical (signal or weight) column/datatypes to plot points in a 3D space. It also provides a category/legend configuration to allow a metadata column to be uses to create different legend categories. In this example, we have Subcellular Localization data where the samples were purified by localization and RNAseq was performed. The data was loaded as a table of genes with columns for Nuc_cpm, Cyt_cpm, Chr_cpm. There is also a metadata column localization which was an analysis to classify each gene into it's most dominant localization. By plotting the primary RNAseq CPM data into a 3Dscatter it allows users to help judge the effectiveness of the localization analysis.


ChartElement-line.PNG ChartElement-line-config.png


ChartElement-bar.PNG ChartElement-bar-config.png


ChartElement-ternary.PNG ChartElement-ternary-config.png

    • paging : if primary stream features overlap multiple templates, expression is evenly divided among the templates so that total counts remain the same as the input stream. Visually this creates an affect where by the expression correlates to the "area on the curve" of the feature or the number of pixels.
    • scrolling : if primary stream features overlap multiple templates, expression is equally copied/collated into all template featues. Visually this gives the effect whereby the height of the resultant feature represents the collated expression, but the total sum of expression across output features is no longer preserved.