-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get scatter color from trace; don't use /api/charts for large scatter…
… plots (#91) * WIP: get scatter color from trace * Don't use /api/charts for large scatter plot thumbnails * clean up --------- Co-authored-by: Caleb Kaiser <[email protected]>
- Loading branch information
Showing
6 changed files
with
119 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
import fetchHistogram from "../../../../lib/fetchHistogram" | ||
import HistogramClient from "./HistogramClient"; | ||
import classNames from 'classnames/bind'; | ||
import styles from '../Charts.module.scss' | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const Histogram = async ({ value, expanded, ssr }) => { | ||
const ssrData = ssr ? await fetchHistogram(value, ssr) : false; | ||
|
||
return <HistogramClient expanded={expanded} value={value} ssrData={ssrData} />; | ||
|
||
} | ||
|
||
export default Histogram; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters