Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix(chart): Fixes showing inactive series opaque.
Browse files Browse the repository at this point in the history
Closes #1146
  • Loading branch information
jsjsat authored and ffriedl89 committed Jun 10, 2020
1 parent d618bcd commit 42930cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/barista-components/chart/src/chart-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ export const DT_CHART_DEFAULT_OPTIONS: DtChartOptions = {
},
plotOptions: {
series: {
states: {
inactive: {
// This handles enabling / disabling the inactive state
// Inactive state happens for example when a series has data missing (null as value for datapoints)
// by default the series in area charts gets hidden up from v7. Setting this to 1 disables this behavior
opacity: 1,
},
},
animation: {
duration: 1000,
easing: DT_CHART_EASEINOUT,
Expand Down

0 comments on commit 42930cd

Please sign in to comment.