Skip to content

Commit

Permalink
fix: 1st color was not using transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 25, 2021
1 parent 1b10225 commit 77a9c8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/apex-layouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export function getLayoutConfig(config: ChartCardConfig, hass: HomeAssistant | u
grid: {
strokeDashArray: 3,
},
// plotOptions: {
// bar: {
// distributed: true,
// },
// },
fill: {
opacity: config.series.map((serie) => {
return serie.type === 'area' ? 0.7 : 1;
}),
},
series: config?.series.map((serie, index) => {
return {
name: computeName(index, config, hass?.states),
Expand Down
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DEFAULT_FUNC = 'raw';
export const DEFAULT_GROUP_BY_FILL = 'last';

export const DEFAULT_COLORS = [
'var(--accent-color)',
'#ff9800',
'#3498db',
'#e74c3c',
'#9b59b6',
Expand Down

0 comments on commit 77a9c8d

Please sign in to comment.