Skip to content

Commit 12ce013

Browse files
(updated) colors for axis, ticks, and bars
1 parent e283a3f commit 12ce013

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

src/app/components/PerformanceVisx.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AxisBottom } from "@visx/axis";
77
import { scaleBand, scaleLinear, scaleOrdinal } from "@visx/scale";
88
import { useTooltip, useTooltipInPortal, defaultStyles } from "@visx/tooltip";
99
// import { LegendOrdinal } from "@visx/legend";
10-
import { schemeSet1 } from "d3-scale-chromatic";
10+
import { schemeSet1,schemeSet3 } from "d3-scale-chromatic";
1111
// import snapshots from "./snapshots";
1212

1313

@@ -39,6 +39,7 @@ const purple1 = "#6c5efb";
3939
const purple2 = "#c998ff";
4040
const purple4 = "#00ffff ";
4141
const purple3 = "#a44afe";
42+
const tickColor = '#679DCA';
4243
const background = "#242529";
4344
const defaultMargin = { top: 40, right: 0, bottom: 0, left: 0 };
4445
const tooltipStyles = {
@@ -121,7 +122,7 @@ const temperatureScale = scaleLinear<number>({
121122
});
122123
const colorScale = scaleOrdinal<CityName, string>({
123124
domain: keys,
124-
range: schemeSet1
125+
range: schemeSet3
125126
});
126127

127128
let tooltipTimeout: number;
@@ -217,10 +218,10 @@ const dateScale = scaleBand<string>({
217218
top={yMax + margin.top}
218219
scale={dateScale}
219220
// tickFormat={formatDate}
220-
stroke={purple4}
221-
tickStroke={purple4}
221+
stroke={tickColor}
222+
tickStroke={tickColor}
222223
tickLabelProps={() => ({
223-
fill: purple1,
224+
fill: tickColor,
224225
fontSize: 11,
225226
textAnchor: 'middle',
226227
})}

src/app/components/StateRoute.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,7 @@ const StateRoute = (props: StateRouteProps) => {
5151
console.log(hierarchy)
5252

5353
const isRecoil = snapshot.atomsComponents ? true : false;
54-
<<<<<<< HEAD
55-
=======
56-
<<<<<<< HEAD
57-
=======
5854

59-
>>>>>>> staging
60-
>>>>>>> master
6155
const [noRenderData, setNoRenderData] = useState(false);
6256

6357
// component map zoom state
@@ -101,27 +95,17 @@ const StateRoute = (props: StateRouteProps) => {
10195
};
10296

10397
const renderAtomsRelationship = () => (
104-
<<<<<<< HEAD
10598

10699
<ParentSize>{({ width, height }) =>
107100
<Example
108101
width={width}
109102
height={height}
110103
snapshots={snapshots} />}
111-
=======
112-
<ParentSize>
113-
{({ width, height }) => (
114-
<Example width={width} height={height} snapshots={snapshots} />
115-
)}
116-
>>>>>>> master
117104
</ParentSize>
118-
<<<<<<< HEAD
119105

120106
// atomsComponents={snapshot.atomsComponents}
121107
// atomSelectors={snapshot.atomSelectors}
122108
// />
123-
=======
124-
>>>>>>> staging
125109
);
126110

127111
// the hierarchy gets set on the first click in the page

0 commit comments

Comments
 (0)