Skip to content

Commit

Permalink
changed rgba to rgb in bar.tsx
Browse files Browse the repository at this point in the history
Signed-off-by: rinku-kumar-psl <[email protected]>
  • Loading branch information
rinku-kumar-psl committed Jun 23, 2022
1 parent 7a28271 commit 497a5cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Plt } from '../../plotly/plot';
import { LONG_CHART_COLOR, PLOTLY_COLOR } from '../../../../../common/constants/shared';
import { AvailabilityUnitType } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability';
import { ThresholdUnitType } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_thresholds';
import { hexToRgba } from '../../../event_analytics/utils/utils';
import { hexToRgb } from '../../../event_analytics/utils/utils';
import { FILLOPACITY_DIV_FACTOR } from '../../../../../common/constants/shared';

export const Bar = ({ visualizations, layout, config }: any) => {
Expand Down Expand Up @@ -62,7 +62,7 @@ export const Bar = ({ visualizations, layout, config }: any) => {
: data[!isEmpty(yaxis) ? yaxis[0]?.label : fields[lastIndex].name],
type: vis.type,
marker: {
color: hexToRgba(selectedColor, fillOpacity),
color: hexToRgb(selectedColor, fillOpacity),
line: {
color: selectedColor,
width: lineWidth
Expand Down

0 comments on commit 497a5cd

Please sign in to comment.