flexmeasures.data.models.charts

Modules

flexmeasures.data.models.charts.belief_charts

flexmeasures.data.models.charts.defaults

Functions

flexmeasures.data.models.charts.chart_type_to_chart_specs(chart_type: str, **kwargs) dict

Create chart specs of a given chart type, using FlexMeasures defaults for settings like width and height.

Parameters:

chart_type – Name of a variable defining chart specs or a function returning chart specs. The chart specs can be a dictionary or an Altair chart specification. - In case of a dictionary, the creator needs to ensure that the dictionary contains valid specs - In case of an Altair chart specification, Altair validates for you

Returns:

A dictionary containing a vega-lite chart specification