slate/pages/system/line-charts.js

89 lines
2.6 KiB
JavaScript
Raw Normal View History

import * as React from "react";
import * as System from "~/components/system";
import Group from "~/components/system/Group";
import SystemPage from "~/components/system/SystemPage";
import ViewSourceLink from "~/components/system/ViewSourceLink";
import CodeBlock from "~/components/system/CodeBlock";
export default class SystemPageLineCharts extends React.Component {
render() {
return null;
/*
return (
<SystemPage title="SDS: Line Charts" description="..." url="https://fps.onrender.com/system/line-charts">
<System.H1>
Line Charts <ViewSourceLink file="system/line-charts.js" />
</System.H1>
<br />
<br />
2020-06-24 05:02:55 +03:00
<System.P>The StatCard component is used to display data on a line chart.</System.P>
<br />
<br />
2020-06-24 05:02:55 +03:00
<System.H2>Usage</System.H2>
<hr />
<br />
<System.P>Declare the StatCard component.</System.P>
<br />
<CodeBlock>
{`<System.StatCard
2020-06-24 05:02:55 +03:00
denomination="Filecoin"
value={423123121323}
data={[
['2017-01-01 00:00:00 UTC', 7],
['2017-05-01 00:00:00 UTC', 12],
['2017-20-01 00:00:00 UTC', 16],
['2017-24-01 00:00:00 UTC', 20],
[new Date(), 24],
]}>
Amount of Filecoin
</System.StatCard>`}
</CodeBlock>
2020-06-24 05:02:55 +03:00
<br />
<br />
<System.H2>Output</System.H2>
<hr />
<br />
<System.StatCard
denomination="Filecoin"
value={423123121323}
data={[
['2017-01-01 00:00:00 UTC', 7],
['2017-05-01 00:00:00 UTC', 12],
['2017-20-01 00:00:00 UTC', 16],
['2017-24-01 00:00:00 UTC', 20],
[new Date(), 24],
]}>
Amount of Filecoin
</System.StatCard>
<br />
<br />
2020-06-24 05:02:55 +03:00
<System.H2>Props</System.H2>
<hr />
<br />
<Group title="StatCard">
2020-06-24 05:02:55 +03:00
<System.Table
data={{
columns: [
{ key: 'a', name: 'Name', width: '128px' },
{ key: 'b', name: 'Type', width: '88px' },
{ key: 'c', name: 'Default', width: '88px' },
{ key: 'd', name: 'Description', width: '100%' },
],
rows: [
{ id: 1, a: 'value', b: 'number', c: 'null', d: 'The value listed in the header of the StatCard' },
2020-06-24 05:02:55 +03:00
{ id: 2, a: 'denomination', b: 'string', c: 'null', d: 'String name of the value' },
{ id: 3, a: 'data', b: 'array', c: 'null', d: 'Array of data points' },
],
}}
/>
</Group>
</SystemPage>
);
*/
}
}