Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@toast-ui/chart
Advanced tools
🍞📈 Spread your data on TOAST UI Chart. TOAST UI Chart is Beautiful Statistical Data Visualization library
TOAST UI Chart applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Chart is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. > “ui.toast.com") is to be collected and the sole purpose is nothing but to measure statistics on the usage. To disable GA, use the following usageStatistics
option when creating charts.
const options = {
// ...
usageStatistics: false,
};
toastui.Chart.barChart({ el, data, options });
The TOAST UI products can be installed by using the package manager or downloading the source directly. However, we highly recommend using the package manager.
The TOAST UI products are registered in npm package manager. Install by using the commands provided by a package manager. When using npm, be sure Node.js is installed in the environment.
$ npm install --save @toast-ui/chart # Latest version
$ npm install --save @toast-ui/chart@<version> # Specific version
The TOAST UI Chart is available over a CDN.
<link rel="stylesheet" href="https://uicdn.toast.com/chart/latest/toastui-chart.min.css" />
<script src="https://uicdn.toast.com/chart/latest/toastui-chart.min.js"></script>
- uicdn.toast.com/
├─ chart/
│ ├─ latest
│ │ ├─ toastui-chart.js
│ │ ├─ toastui-chart.min.js
│ │ ├─ toastui-chart.css
│ │ ├─ toastui-chart.min.css
│ ├─ v4.0.0/
Add the container element where TOAST UI Chart will be created.
<div id="chart"></div>
The TOAST UI Chart can be used by creating an instance with the constructor function. To access the constructor function, import the module using one of the three following methods depending on your environment.
/* namespace */
const chart = toastui.Chart;
/* CommonJS in Node.js */
const chart = require('@toast-ui/chart');
/* ES6 in Node.js */
import Chart from '@toast-ui/chart';
import { LineChart } from '@toast-ui/chart';
Factory function needs three parameters: el, data, options
var el = document.getElementById('chart');
var data = {
categories: [
//...
],
series: [
// ...
],
};
var options = {
chart: { width: 700, height: 400 },
};
chart.barChart({ el, data, options });
// or
new BarChart({ el, data, options });
Refer to details for additional information.
FAQs
TOAST UI Application: Chart
The npm package @toast-ui/chart receives a total of 1,929 weekly downloads. As such, @toast-ui/chart popularity was classified as popular.
We found that @toast-ui/chart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.