2.1.2004 • Published 2 months ago
oxyplot-js v2.1.2004
OxyPlot is a cross-platform plotting library for .NET
This repo has completely translated OxyPlot.Net into TypeScript, as well as almost all examples! Now you can use OxyPlot in web browsers and Node.js environments.
Get Started
Install
npm install oxyplot-js
npm install oxyplot-js-renderers
How to use
<canvas
id="canvasPlotView"
style="width: 800px; height: 600px"
/>
import { PlotModel } from 'oxyplot-js'
import { CanvasPlotView } from 'oxyplot-js-renderers'
const canvas = document.getElementById('canvasPlotView')! as HTMLCanvasElement
const plotView = new CanvasPlotView(canvas)
const model: PlotModel = new PlotModel({ title: 'LineSeries' })
// add some series
// model.series.push(lineSeries)
plotView.model = model