stemp.visualizations package¶
Submodules¶
stemp.visualizations.dataframe module¶
stemp.visualizations.highcharts module¶
Module to present data from dataframe in Highcharts chart
-
class
stemp.visualizations.highcharts.
LCOEHighchart
(data)[Quellcode]¶ Bases:
utils.highcharts.Highchart
Layout for LCOE visualization using highcharts
-
colors
= {'Betriebskosten': '#fc8e65', 'Brennstoffkosten': '#55aae5', 'Investitionskosten': '#7fadb7', 'Strombezugskosten': '#fce288', 'Stromgutschrift': '#f69c3a'}¶
-
setup
= {'chart': {'type': 'column'}, 'plotOptions': {'column': {'dataLabels': {'color': "(Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'", 'enabled': True, 'format': '{point.y:.2f}€'}, 'stacking': 'normal'}}, 'tooltip': {'headerFormat': '<b>{point.x}</b><br/>', 'pointFormat': '{series.name}: {point.y:.2f}€'}, 'yAxis': {'plotLines': [{'color': '#002E4F', 'dashStyle': 'dot', 'width': 1, 'value': 150, 'label': {'align': 'right', 'style': {'fontStyle': 'italic'}, 'text': 'Zielvorgabe CO2-Emissionen', 'x': -10}, 'zIndex': 300}], 'stackLabels': {'enabled': True, 'format': '{total:.2f}€', 'style': {'color': "(Highcharts.theme && Highcharts.theme.textColor) || 'gray'", 'fontWeight': 'bold'}}, 'title': {'text': 'Wärmekosten [€/kWh]'}}}¶
-
sum_line_options
= {'color': 'black', 'dataLabels': {'align': 'left', 'enabled': True, 'filter': {'operator': '==', 'property': 'x', 'value': 0.3}, 'format': '{point.y:.2f}€', 'verticalAlign': 'middle'}, 'enableMouseTracking': False, 'marker': {'enabled': False}, 'showInLegend': False}¶
-