Skip to content

Instantly share code, notes, and snippets.

@florin-chelaru
Last active August 29, 2015 14:15
Show Gist options
  • Save florin-chelaru/fa247476e6d9b4efb76a to your computer and use it in GitHub Desktop.
Save florin-chelaru/fa247476e6d9b4efb76a to your computer and use it in GitHub Desktop.
Settings Override Tutorial (Epiviz 3)
// Create a new color palette
var myPalette = new epiviz.ui.charts.ColorPalette(['#ed2d2e', '#008c47'], 'My Palette', 'my-palette');
epiviz.Config.SETTINGS.colorPalettes.push(myPalette);
// Set the default colors for the Scatter Plot to '#ed2d2e' and '#008c47'
epiviz.Config.SETTINGS.chartSettings['epiviz.plugins.charts.ScatterPlot']['colors'] = 'my-palette';
// Set the Scatter Plot custom setting circleRadiusRatio to 0.02
epiviz.Config.SETTINGS.chartCustomSettings['epiviz.plugins.charts.ScatterPlot']['circleRadiusRatio'] = 0.02;
// Tell EpiViz to only show two types of charts: Scatter Plots and Genes Tracks
epiviz.Config.SETTINGS.chartTypes = [
'epiviz.plugins.charts.ScatterPlotType',
'epiviz.plugins.charts.GenesTrackType'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment