-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
106 additions
and
49 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { Card } from '@blueprintjs/core' | ||
import { styled } from 'linaria/react' | ||
import React from 'react' | ||
|
||
import { humanMine25 as rows } from '../../stubs/humanMine25' | ||
import { mineUrl } from '../../stubs/utils' | ||
import { BarChart as Bar } from './BarChart' | ||
import { PieChart as Pie } from './PieChart' | ||
import { Table as TableComp } from './Table' | ||
|
||
export default { | ||
title: 'Components/Data Visualization', | ||
parameters: { | ||
componentSubtitle: 'These are the various ways we display results from an intermine', | ||
}, | ||
} | ||
|
||
const S_Card = styled(Card)` | ||
height: 376px; | ||
` | ||
|
||
export const Empty = () => <></> | ||
|
||
export const BarChart = () => ( | ||
<S_Card> | ||
<Bar /> | ||
</S_Card> | ||
) | ||
|
||
BarChart.parameters = { | ||
docs: { | ||
storyDescription: | ||
'Bar charts display the result of the gene distribution for the given constraints', | ||
}, | ||
} | ||
|
||
export const PieChart = () => ( | ||
<S_Card> | ||
<Pie /> | ||
</S_Card> | ||
) | ||
|
||
PieChart.parameters = { | ||
docs: { | ||
storyDescription: | ||
'Pie charts displays the number of results by organism for the given constraints', | ||
}, | ||
} | ||
|
||
export const Table = () => ( | ||
<Card> | ||
<TableComp mineUrl={mineUrl} rows={rows} /> | ||
</Card> | ||
) | ||
|
||
Table.parameters = { | ||
docs: { | ||
storyDescription: 'Displays all the rows of results for the given constraints', | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
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,11 +1,42 @@ | ||
import { styled } from 'linaria/react' | ||
import React from 'react' | ||
|
||
import * as Charts from './DataVizSection' | ||
import { ConstraintSection as Constraints } from './ConstraintSection' | ||
import { TableChartSection } from './DataVizSection' | ||
import { Header as HeaderComp } from './Header' | ||
|
||
export default { | ||
title: 'Components/Data Visualization', | ||
title: 'Components/Layout Sections', | ||
parameters: { | ||
componentSubtitle: 'Layout Sections are html section groupings of components', | ||
}, | ||
} | ||
|
||
export const ChartSection = () => <Charts.ChartSection /> | ||
const S_ConstraintSection = styled.div` | ||
max-width: 200px; | ||
` | ||
|
||
export const TableSection = () => <Charts.TableSection /> | ||
export const Header = () => <HeaderComp /> | ||
Header.storyName = 'Header Section' | ||
|
||
export const DataVizSection = () => <TableChartSection /> | ||
DataVizSection.storyName = 'Charts and Table Section' | ||
DataVizSection.parameters = { | ||
docs: { | ||
storyDescription: | ||
'The Charts and Table section display the results of a query and its associated summaries', | ||
}, | ||
} | ||
|
||
export const ConstraintSection = () => ( | ||
<S_ConstraintSection> | ||
<Constraints /> | ||
</S_ConstraintSection> | ||
) | ||
|
||
ConstraintSection.parameters = { | ||
docs: { | ||
storyDescription: | ||
'The constraint section manages applying and removing constraints. As well as running queries', | ||
}, | ||
} |
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