Skip to content

Commit

Permalink
fix the color pallete
Browse files Browse the repository at this point in the history
  • Loading branch information
mnsrulz committed Aug 17, 2024
1 parent 19925a0 commit 8eac1d2
Showing 1 changed file with 46 additions and 16 deletions.
62 changes: 46 additions & 16 deletions src/components/delta-heding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,51 @@ interface ITickerProps {
// },
// };

const colorCodes = ['#ae6867',
'#dd8f77',
'#fab079',
'#f6b17f',
'#ece990',
'#94ab5e',
'#d7f888',
'#519693',
'#7be3de',
'#8eb8f0',
'#7d7283',
'#c5b4cf',
'#f2ddff'
];

/*
*/

// const colorCodes = [
// '#a32020',
// '#e0301e',
// '#eb8c00',
// '#dc6900',

// '#005073',
// '#107dac',
// '#189ad3',
// '#1ebbd7',
// '#71c7ec',

// '#234d20',
// '#36802d',
// '#77ab59',
// '#c9df8a',
// '#f0f7da',

// '#bf8bff',
// '#dabcff'
// ];
const colorCodes = [
"#A52A2A", "#FF3333", "#FF5733", "#FF8C33", "#FFA07A",
"#228B22", "#33FF33", "#8CFF33", "#ADFF33", "#98FB98",
"#4169E1", "#3333FF", "#3357FF", "#338CFF", "#87CEFA",
"#B8860B", "#FFD700", "#FFEB3B", "#FFFACD", "#FFFFE0"
]


export const DeltaHeding = (props: ITickerProps) => {
const { onClose } = props;
const [dte, setDte] = useState(50);
Expand Down Expand Up @@ -110,7 +141,7 @@ export const DeltaHeding = (props: ITickerProps) => {
id="strikes"
value={strikeCounts}
label="Strikes"

onChange={(e) => setStrikesCount(e.target.value as number)}
>
<MenuItem value={20}>20</MenuItem>
Expand Down Expand Up @@ -139,7 +170,6 @@ export const DeltaHeding = (props: ITickerProps) => {
{
// data: xLabels,
label: 'Strike',

dataKey: 'strike',
scaleType: 'band',
reverse: true
Expand Down

0 comments on commit 8eac1d2

Please sign in to comment.