![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
webtrader-charts
Advanced tools
A charting library extracted from Webtrader so that other projects can use it as nodejs package
Use npm / yarn
npm install --save webtrader-charts
yarn add webtrader-charts
You need to provide these dependences jquery
, moment
and highstock#5.0.x
.
Take a look at webpack.config.js -> externals
.
import wtcharts from 'webtrader-charts';
// init must be called before anything else.
wtcharts.init({
appId: 11,
lang: 'en',
server: 'wss://ws.binaryws.com/websockets/v3'
});
const chart = wtcharts.chartWindow.addNewChart($parent, {
"instrumentCode": "RDBULL",
"instrumentName": "Bull Market Index",
"timePeriod": "1m",
"type": "line",
"delayAmount": 0,
"indicators": [
{
"id": "cks",
"name": "Chande Kroll Stop",
"options": {
"period": 10,
"maxMinPeriod": 20,
"multiplier": 3,
"longStopStroke": "#00C176",
"shortStopStroke": "#FF003C",
"strokeWidth": 1,
"dashStyle": "Solid"
}
}
],
"overlays": [ ],
});
// Will be called every time user makes a change
chart.events.anyChange = () => {
console.warn(chart.data());
// Pass chart.data() to addNewChart() to restore a chart.
};
chart.actions.reflow(); // Resizes the chart, call it when container is resized.
chart.actions.refresh(); // Refreshes the entire chart.
chart.actions.destroy(); // Destroys the chart.
Handle notification by providing your own wtcharts.globals.notification
.
import $ from 'jquery';
import 'jquery-growl'; // notification library
export const globals = {
notification: {
error: (msg) => $.growl.error({message: msg}),
warning: (msg) => $.growl.warning({message: msg}),
notice: (msg) => $.growl.notice({message: msg}),
}
};
FAQs
webtrader charts
The npm package webtrader-charts receives a total of 10 weekly downloads. As such, webtrader-charts popularity was classified as not popular.
We found that webtrader-charts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.