diff --git a/web/calibrate/XyPlot.ts b/web/calibrate/XyPlot.ts new file mode 100644 --- /dev/null +++ b/web/calibrate/XyPlot.ts @@ -0,0 +1,61 @@ +import debug from "debug"; +import * as echarts from "echarts"; +import { css, html, LitElement, PropertyValueMap } from "lit"; +import { customElement, property } from "lit/decorators.js"; +debug.enable("*"); +const log = debug("calibrate"); + +@customElement("xy-plot") +export class XyPlot extends LitElement { + static styles = [ + css` + #chart { + width: 800px; + height: 300px; + } + `, + ]; + chart!: echarts.ECharts; + @property() label: string = ""; + @property() data: number[][] = []; + + render() { + return html` +
+ `; + } + + protected async firstUpdated(_changedProperties: PropertyValueMap