Skip to content

Commit

Permalink
fix timeseries chart xAxis label styling
Browse files Browse the repository at this point in the history
  • Loading branch information
zbigg committed Sep 27, 2023
1 parent a2494fd commit 6c86ce8
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ export default function TimeSeriesChart({
opacity: 0.2
}
},
axisLabel: {
fontSize: theme.typography.caption.fontSize,
fontFamily: theme.typography.caption.fontFamily,
fontWeight: theme.typography.fontWeightRegular,
// https://echarts.apache.org/en/option.html#xAxis.axisLabel.formatter
formatter: {
year: '{yearStyle|{yyyy}}'
},
rich: {
yearStyle: {
fontWeight: theme.typography.fontWeightMedium
}
}
},
axisTick: {
show: false
},
Expand Down

0 comments on commit 6c86ce8

Please sign in to comment.