Last active
August 29, 2015 14:15
-
-
Save florin-chelaru/fa247476e6d9b4efb76a to your computer and use it in GitHub Desktop.
Settings Override Tutorial (Epiviz 3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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