2020-07-02 12:49:20 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as System from "~/components/system";
|
2020-06-22 14:00:51 +03:00
|
|
|
|
2020-07-02 12:49:20 +03:00
|
|
|
import Group from "~/components/system/Group";
|
|
|
|
import SystemPage from "~/components/system/SystemPage";
|
|
|
|
import ViewSourceLink from "~/components/system/ViewSourceLink";
|
2020-07-21 03:56:14 +03:00
|
|
|
import CodeBlock from "~/components/system/CodeBlock";
|
2020-06-22 14:00:51 +03:00
|
|
|
|
|
|
|
export default class SystemPageLineCharts extends React.Component {
|
|
|
|
render() {
|
2020-07-02 12:49:20 +03:00
|
|
|
return null;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
2020-06-22 14:00:51 +03:00
|
|
|
return (
|
2020-07-01 10:31:55 +03:00
|
|
|
<SystemPage title="SDS: Line Charts" description="..." url="https://fps.onrender.com/system/line-charts">
|
2020-06-22 14:15:04 +03:00
|
|
|
<System.H1>
|
2020-07-01 10:31:55 +03:00
|
|
|
Line Charts <ViewSourceLink file="system/line-charts.js" />
|
2020-06-22 14:15:04 +03:00
|
|
|
</System.H1>
|
2020-06-22 14:00:51 +03:00
|
|
|
<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>
|
2020-06-22 14:00:51 +03:00
|
|
|
<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 />
|
2020-07-21 03:56:14 +03:00
|
|
|
<CodeBlock>
|
2020-07-01 10:31:55 +03:00
|
|
|
{`<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>`}
|
2020-07-21 03:56:14 +03:00
|
|
|
</CodeBlock>
|
2020-06-24 05:02:55 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<System.H2>Output</System.H2>
|
|
|
|
<hr />
|
|
|
|
<br />
|
2020-06-22 14:00:51 +03:00
|
|
|
<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 />
|
2020-07-01 10:31:55 +03:00
|
|
|
<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: [
|
2020-07-01 10:31:55 +03:00
|
|
|
{ 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>
|
2020-06-22 14:00:51 +03:00
|
|
|
</SystemPage>
|
|
|
|
);
|
2020-07-02 12:49:20 +03:00
|
|
|
*/
|
2020-06-22 14:00:51 +03:00
|
|
|
}
|
|
|
|
}
|