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