Class: ChartManager

ChartManager

new epiviz.ui.charts.ChartManager(config)

ui/charts/chart-manager.js, line 15
Name Type Description
config epiviz.Config

Members

event -> event args -> selection -> data

.

event -> event args -> selection -> data

Methods

addChart(chartType, visConfigSelection, id, chartProperties){string}

ui/charts/chart-manager.js, line 141
Name Type Description
chartType epiviz.ui.charts.ChartType
visConfigSelection epiviz.ui.controls.VisConfigSelection
id string optional

The specific id for the chart. If not specified, it's generated dynamically

chartProperties epiviz.ui.charts.VisualizationProperties optional
Returns:
Type Description
string The id of the newly created chart

chartsMeasurements(){Object.<string, epiviz.measurements.MeasurementSet>}

ui/charts/chart-manager.js, line 262

Returns a map of chart ids as keys and corresponding measurements as values

.

Returns a map of chart ids as keys and corresponding measurements as values

Returns:
Type Description
Object.<string, epiviz.measurements.MeasurementSet>

clear()

ui/charts/chart-manager.js, line 316

Clears all the charts on stage

.

Clears all the charts on stage

dataWaitStart(chartId, chartFilter)

ui/charts/chart-manager.js, line 336

Tells all charts that new data has been requested.

Tells all charts that new data has been requested. Used, for example, by ChartLoaderAnimation decoration.

Name Type Description
chartId string optional
chartFilter function optional

onChartAdded(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<{type: epiviz.ui.charts.ChartType, properties: epiviz.ui.charts.VisualizationProperties, chartsOrder: Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>}>>}

ui/charts/chart-manager.js, line 351
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<{type: epiviz.ui.charts.ChartType, properties: epiviz.ui.charts.VisualizationProperties, chartsOrder: Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>}>>

onChartColorsChanged(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<epiviz.ui.charts.ColorPalette>>}

ui/charts/chart-manager.js, line 371
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<epiviz.ui.charts.ColorPalette>>

onChartCustomSettingsChanged(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Object.<string, *>>>}

ui/charts/chart-manager.js, line 391
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Object.<string, *>>>

onChartMarginsChanged(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<epiviz.ui.charts.Margins>>}

ui/charts/chart-manager.js, line 401
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<epiviz.ui.charts.Margins>>

onChartMarkersModified(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Array.<epiviz.ui.charts.markers.VisualizationMarker>>>}

ui/charts/chart-manager.js, line 386
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Array.<epiviz.ui.charts.markers.VisualizationMarker>>>

onChartMethodsModified(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Object.<string, string>>>}

ui/charts/chart-manager.js, line 376
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Object.<string, string>>>

onChartMethodsReset(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs>}

ui/charts/chart-manager.js, line 381
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs>

onChartPropagateHierarchyChanges(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<{selection: Object.<string, epiviz.ui.charts.tree.NodeSelectionType>, order: Object.<string, number>}>>}

ui/charts/chart-manager.js, line 411
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<{selection: Object.<string, epiviz.ui.charts.tree.NodeSelectionType>, order: Object.<string, number>}>>

onChartRemoved(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>>>}

ui/charts/chart-manager.js, line 356
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>>>

onChartRequestHierarchy(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<epiviz.ui.controls.VisConfigSelection.<*>>>}

ui/charts/chart-manager.js, line 406
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<epiviz.ui.controls.VisConfigSelection.<*>>>

onChartsCleared(){epiviz.events.Event}

ui/charts/chart-manager.js, line 366
Returns:
Type Description
epiviz.events.Event

onChartSizeChanged(){epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<{width: (number|string), height: (number|string)}>>}

ui/charts/chart-manager.js, line 396
Returns:
Type Description
epiviz.events.Event.<epiviz.ui.charts.VisEventArgs.<{width: (number|string), height: (number|string)}>>

onChartsOrderChanged(){epiviz.events.Event.<Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>>}

ui/charts/chart-manager.js, line 361
Returns:
Type Description
epiviz.events.Event.<Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>>

removeChart(id)

ui/charts/chart-manager.js, line 241
Name Type Description
id string

The id of the chart being removed

updateCharts(range, data, chartIds)

ui/charts/chart-manager.js, line 279
Name Type Description
range epiviz.datatypes.GenomicRange
data epiviz.datatypes.GenomicData
chartIds Array.<string> optional

updateDataStructureCharts()

ui/charts/chart-manager.js, line 297
comments powered by Disqus