Skip to content

Commit 4ae0553

Browse files
authored
Merge pull request #199 from gpanciera/newColors
New colors for deeply nested sites + message for dev vs production mode in target app
2 parents d1fe826 + 1204f14 commit 4ae0553

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/app/components/PerfView.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@ const PerfView = (props:PerfViewProps) => {
4141
else indexToDisplay = viewIndex;
4242

4343
// Set up color scaling function
44-
const colorScale = d3.scaleLinear()
45-
.domain([0, 7])
46-
.range(['hsl(200,60%,60%)', 'hsl(255,30%,40%)'])
47-
.interpolate(d3.interpolateHcl);
44+
const colorScale = d3.scaleOrdinal()
45+
.domain([0, 8])
46+
.range(['#4a91c7', '#5b9bce', '#6ba6d5', '#7bb0dc', '#8abbe3', '#99c6ea', '#a8d0f1', '#b7dbf8', '#c6e6ff']);
47+
48+
// Alternate color scaling function
49+
// const colorScale = d3.scaleLinear()
50+
// .domain([0, 7])
51+
// .range(['hsl(200,60%,60%)', 'hsl(255,30%,40%)'])
52+
// .interpolate(d3.interpolateHcl);
4853

4954
// Set up circle-packing layout function
5055
const packFunc = useCallback((data:object) => {

src/app/components/StateRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const StateRoute = (props:StateRouteProps) => {
5858
/>
5959
);
6060
} else {
61-
perfChart = <div className="no-data-message">Rendering Data is not available for this application</div>;
61+
perfChart = <div className="no-data-message">Application must be running in development mode in order to view performance data</div>;
6262
}
6363

6464
const renderPerfView = () => (

0 commit comments

Comments
 (0)