Skip to main content
Home

Built and signed on GitHub Actions

OakScriptJS is a TypeScript/JavaScript library that mirrors PineScript's calculation and indicator API, maintaining exact function signatures and behavior. This library focuses on the computational core of PineScript

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
6 days ago (0.1.3)
interface Label

Label object - Represents a label/annotation on the chart

Properties

X coordinate (bar index or UNIX timestamp)

Y coordinate (price level when yloc = 'price')

xloc: "bar_index" | "bar_time"

X-axis coordinate system

yloc:
"price"
| "abovebar"
| "belowbar"

Y-axis positioning mode

optional
text: string

Label text content

optional
tooltip: string

Tooltip text shown on hover

optional
color: color

Border and arrow color

optional
style:
"none"
| "xcross"
| "cross"
| "triangleup"
| "triangledown"
| "flag"
| "circle"
| "arrowup"
| "arrowdown"
| "label_up"
| "label_down"
| "label_left"
| "label_right"
| "label_lower_left"
| "label_lower_right"
| "label_upper_left"
| "label_upper_right"
| "label_center"
| "square"
| "diamond"
| "text_outline"

Label style

optional
textcolor: color

Text color

optional
size: string | number

Label size

optional
textalign:
"left"
| "center"
| "right"

Text alignment

optional
text_font_family: "default" | "monospace"

Text font family

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@deepentropy/oakscriptjs

Import symbol

import { type Label } from "@deepentropy/oakscriptjs";
or

Import directly with a jsr specifier

import { type Label } from "jsr:@deepentropy/oakscriptjs";

Add Package

pnpm i jsr:@deepentropy/oakscriptjs
or (using pnpm 10.8 or older)
pnpm dlx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Label } from "@deepentropy/oakscriptjs";

Add Package

yarn add jsr:@deepentropy/oakscriptjs
or (using Yarn 4.8 or older)
yarn dlx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Label } from "@deepentropy/oakscriptjs";

Add Package

vlt install jsr:@deepentropy/oakscriptjs

Import symbol

import { type Label } from "@deepentropy/oakscriptjs";

Add Package

npx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Label } from "@deepentropy/oakscriptjs";

Add Package

bunx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Label } from "@deepentropy/oakscriptjs";