blob: 8f0ee6d7a7a6e1f76cc9478413b5d7a14e7022b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import React from "react";
import {VictoryChart, VictoryLine, VictoryScatter} from "victory";
const LoadChartComponent = ({data, currentTick}) => (
<VictoryChart height={300}>
<VictoryLine
data={data}
/>
<VictoryScatter
data={data}
size={5}
/>
<VictoryLine
data={[
{x: currentTick, y: 0},
{x: currentTick, y: 1},
]}
style={{
data: {stroke: "#00A6D6", strokeWidth: 3}
}}
/>
</VictoryChart>
);
export default LoadChartComponent;
|