Skip to content

Commit

Permalink
Review comment addressed
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Nevde <deepak_nevde@persistent.com>
  • Loading branch information
deepaknevdepsl committed Jun 10, 2022
1 parent dbeb661 commit 6159e43
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export const Pie = ({ visualizations, layout, config }: any) => {
valueSeries = defaultAxes.yaxis || take(fields, lastIndex > 0 ? lastIndex : 1);
}

const invertHex = (hex:string) => {
return (Number(`0x1${hex}`) ^ HEX_CONTRAST_COLOR).toString(16).substr(1).toUpperCase()
}
const invertHex = (hex:string) => (Number(`0x1${hex}`) ^ HEX_CONTRAST_COLOR).toString(16).substr(1).toUpperCase();


const pies = valueSeries.map((field: any, index) => {
const marker =
Expand Down

0 comments on commit 6159e43

Please sign in to comment.