GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JOTSR/Deplot: Simple and complete plot gui module for Deno local scripts to provide a helper for science computing.

BranchesTags
Open more actions menu

Latest commit

 

History

95 Commits
95 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
examples
examples
 
 
public
public
 
 
src
src
 
 
vendor
vendor
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
README.md
README.md
 
 
build.ts
build.ts
 
 
deno.jsonc
deno.jsonc
 
 
deno.lock
deno.lock
 
 
deps.ts
deps.ts
 
 
mod.ts
mod.ts
 
 
scripts.yml
scripts.yml
 
 

Repository files navigation


Deplot

Simple and complete Plot gui module for Deno local scripts to provide a helper for science computing.

deno module deno compatibility vr scripts deno doc

Dependencies

Use WebUI for window managing and plots libraries for tracing.

Supports Plotly.js and Chart.js for plotting.

Usage

All the modules are exposed in mod.ts

import { Datas, Deplot, Plotly } from 'https://deno.land/x/deplot/mod.ts'

const barPlot = new Deplot(
	'Plotly',
	{
		title: 'My bar plot',
		size: { width: 800, height: 600 },
	},
)

const trace: Plotly.Data = {
	x: ['Zebras', 'Lions', 'Pelicans'],
	y: [90, 40, 60],
	type: 'bar',
	name: 'New York Zoo',
}

const layout: Partial<Plotly.Layout> = {
	title: 'Hide the Modebar',
	showlegend: true,
}

const datas: Datas = { data: [trace], layout, config: { editable: true } }

await barPlot.plot(datas)

const trace2: Plotly.Data = {
	x: [1, 2, 3, 4, 5],
	y: [4, 0, 4, 6, 8],
	mode: 'lines+markers',
	type: 'scatter',
}

const datas2 = { data: [trace2], layout }

new Deplot('Plotly').plot(datas)

Documentation

Examples

Plotly.js

deno run --allow-read --allow-write --allow-env --allow-ffi --unstable https://deno.land/x/deplot/examples/plotly.ts

Chart.js

deno run --allow-read --allow-write --allow-env --allow-ffi --unstable https://deno.land/x/deplot/examples/chartjs.ts

For flags see Deno WebUI/Security flags

About

Simple and complete plot gui module for Deno local scripts to provide a helper for science computing.

Topics

chartjsdata-sciencedenodenolandplotlyplotlyjsplottingsciencetypescriptuiwebui

Resources

Readme
Activity

Stars

8 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.