import * as React from "react"; import { BarChart, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Bar } from "recharts"; import { MyDataStorage } from "../../storage/MyData"; import {ChartCtrl} from './ChartController'; import {ChartModel, ViewData} from './ChartModel'; const style = { border: 'solid 1px', width: '350px', height: '350px', marginBottom: '10px', padding: '10px' }; export class Chart extends React.Component { public state: ViewData; public ctrl: ChartCtrl; constructor(props: any) { super(props); const dataModule = new ChartModel(this, MyDataStorage.state); this.ctrl = new ChartCtrl(dataModule, MyDataStorage.getWatch); this.state = new ViewData(); } render() { return (
); } }