Hi all
I have only one issue with a chart page. I defined the chart type as year, but the Y-Line shows me days insteed off the 12 month. Does anyone have an idea how I can change the bottom line to the 12 month?
The values in the graph are correct.
But screenshots and the code will explain better what I mean
The graph shows a stapled bar graph with the consumption from the grid and from the inverter
Screenshot
and here the code
config:
chartType: year
label: Stromverbrauch
order: "7"
sidebar: true
slots:
grid:
- component: oh-chart-grid
config: {}
legend:
- component: oh-chart-legend
config:
orient: horizontal
show: true
series:
- component: oh-aggregate-series
config:
aggregationFunction: last
dimension1: month
gridIndex: 0
item: Strom_LastMonth
name: Strombezug
stack: one
type: bar
xAxisIndex: 0
yAxisIndex: 0
- component: oh-aggregate-series
config:
aggregationFunction: max
dimension1: month
gridIndex: 0
item: WR_LastMonat
name: Wechselrichter
stack: one
type: bar
xAxisIndex: 0
yAxisIndex: 0
title:
- component: oh-chart-title
config:
show: true
text: Stromverbrauch
toolbox:
- component: oh-chart-toolbox
config:
bottom: "0"
left: "15"
presetFeatures:
- saveAsImage
- dataView
- magicType
show: true
tooltip:
- component: oh-chart-tooltip
config:
orient: vertical
show: true
xAxis:
- component: oh-category-axis
config:
categoryType: month
gridIndex: 0
monthFormat: default
weekdayFormat: default
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
name: kWh