{"_id":"@bluemental/lightweight-charts","name":"@bluemental/lightweight-charts","dist-tags":{"latest":"5.0.0-rc.2"},"versions":{"5.0.0-rc.2":{"version":"5.0.0-rc.2","name":"@bluemental/lightweight-charts","author":{"name":"TradingView, Inc."},"license":"Apache-2.0","description":"Performant financial charts built with HTML5 canvas","bugs":{"url":"https://github.com/mishelen/lightweight-charts/issues"},"repository":{"type":"git","url":"git+https://github.com/mishelen/lightweight-charts.git"},"type":"module","module":"dist/lightweight-charts.production.mjs","main":"dist/lightweight-charts.production.mjs","typings":"dist/typings.d.ts","exports":{"./package.json":"./package.json",".":{"development":{"types":"./dist/typings.d.ts","import":"./dist/lightweight-charts.development.mjs"},"production":{"types":"./dist/typings.d.ts","import":"./dist/lightweight-charts.production.mjs"},"default":{"types":"./dist/typings.d.ts","import":"./dist/lightweight-charts.production.mjs"}}},"keywords":["financial-charting-library","charting-library","html5-charts","canvas","typescript","charting","charts"],"dependencies":{"fancy-canvas":"2.1.0"},"publishConfig":{"access":"public"},"_id":"@bluemental/lightweight-charts@5.0.0-rc.2","gitHead":"cd6f9c856f60b363f41a112c190f53f747847152","homepage":"https://github.com/mishelen/lightweight-charts#readme","_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-j024bXpk4YQHOhy40JjxwuBLzl7B8ZiacBZkLlVbo5klQuv1XHqCFpwlhS1mf4ZLqh5au51SmKKU8Q8wUnlKyQ==","shasum":"288b57e7d71b5db97ae8b88d0ee9559d3c29fba1","tarball":"https://registry.npmjs.org/@bluemental/lightweight-charts/-/lightweight-charts-5.0.0-rc.2.tgz","fileCount":10,"unpackedSize":2718044,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDfvRWKYe/16DJtPNm7IFkN5gnQGCdxURCV68pDJY4UfAIgMgd/bld4Sql9bmd2BXGfF3I6QFi8yAcGHf48XUoYgq8="}]},"_npmUser":{"name":"mishelen","email":"mishelen@tut.by"},"directories":{},"maintainers":[{"name":"mishelen","email":"mishelen@tut.by"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lightweight-charts_5.0.0-rc.2_1752925955573_0.6268340420070104"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-19T11:52:35.515Z","5.0.0-rc.2":"2025-07-19T11:52:35.774Z","modified":"2025-07-19T11:52:36.006Z"},"maintainers":[{"name":"mishelen","email":"mishelen@tut.by"}],"description":"Performant financial charts built with HTML5 canvas","homepage":"https://github.com/mishelen/lightweight-charts#readme","keywords":["financial-charting-library","charting-library","html5-charts","canvas","typescript","charting","charts"],"repository":{"type":"git","url":"git+https://github.com/mishelen/lightweight-charts.git"},"author":{"name":"TradingView, Inc."},"bugs":{"url":"https://github.com/mishelen/lightweight-charts/issues"},"license":"Apache-2.0","readme":"<!-- markdownlint-disable no-inline-html first-line-h1 -->\n\n<div align=\"center\">\n  <a href=\"https://www.tradingview.com/lightweight-charts/\" target=\"_blank\">\n    <img width=\"200\" src=\"https://github.com/tradingview/lightweight-charts/raw/master/.github/logo.svg?sanitize=true\" alt=\"Lightweight Charts logo\">\n  </a>\n\n  <h1>Lightweight Charts™</h1>\n\n  [![CircleCI][ci-img]][ci-link]\n  [![npm version][npm-version-img]][npm-link]\n  [![npm bundle size][bundle-size-img]][bundle-size-link]\n  [![Dependencies count][deps-count-img]][bundle-size-link]\n  [![Downloads][npm-downloads-img]][npm-link]\n</div>\n\n<!-- markdownlint-enable no-inline-html -->\n\n[Demos][demo-url] | [Documentation](https://tradingview.github.io/lightweight-charts/) | [Discord community](https://discord.gg/UC7cGkvn4U) | [Reddit](https://www.reddit.com/r/TradingView/)\n\nTradingView Lightweight Charts™ are one of the smallest and fastest financial HTML5 charts.\n\nThe Lightweight Charts™ library is the best choice for you if you want to display financial data as an interactive chart on your web page without affecting your web page loading speed and performance.\n\nIt is the best choice for you if you want to replace static image charts with interactive ones.\nThe size of the library is close to static images but if you have dozens of image charts on a web page then using this library can make the size of your web page smaller.\n\n## Installing\n\n### es6 via npm\n\n```bash\nnpm install lightweight-charts\n```\n\n```js\nimport { createChart, LineSeries } from 'lightweight-charts';\n\nconst chart = createChart(document.body, { width: 400, height: 300 });\nconst lineSeries = chart.addSeries(LineSeries);\nlineSeries.setData([\n    { time: '2019-04-11', value: 80.01 },\n    { time: '2019-04-12', value: 96.63 },\n    { time: '2019-04-13', value: 76.64 },\n    { time: '2019-04-14', value: 81.89 },\n    { time: '2019-04-15', value: 74.43 },\n    { time: '2019-04-16', value: 80.01 },\n    { time: '2019-04-17', value: 96.63 },\n    { time: '2019-04-18', value: 76.64 },\n    { time: '2019-04-19', value: 81.89 },\n    { time: '2019-04-20', value: 74.43 },\n]);\n```\n\n### CDN\n\nYou can use [unpkg](https://unpkg.com/):\n\n<https://unpkg.com/lightweight-charts/dist/lightweight-charts.standalone.production.js>\n\nThe standalone version creates `window.LightweightCharts` object with all exports from `esm` version:\n\n```js\nconst chart = LightweightCharts.createChart(document.body, { width: 400, height: 300 });\nconst lineSeries = chart.addSeries(LightweightCharts.LineSeries);\nlineSeries.setData([\n    { time: '2019-04-11', value: 80.01 },\n    { time: '2019-04-12', value: 96.63 },\n    { time: '2019-04-13', value: 76.64 },\n    { time: '2019-04-14', value: 81.89 },\n    { time: '2019-04-15', value: 74.43 },\n    { time: '2019-04-16', value: 80.01 },\n    { time: '2019-04-17', value: 96.63 },\n    { time: '2019-04-18', value: 76.64 },\n    { time: '2019-04-19', value: 81.89 },\n    { time: '2019-04-20', value: 74.43 },\n]);\n```\n\n### Build Variants\n\n|Dependencies included|Mode|ES module|IIFE (`window.LightweightCharts`)|\n|-|-|-|-|\n|No|PROD|`lightweight-charts.production.mjs`|N/A|\n|No|DEV|`lightweight-charts.development.mjs`|N/A|\n|Yes (standalone)|PROD|`lightweight-charts.standalone.production.mjs`|`lightweight-charts.standalone.production.js`|\n|Yes (standalone)|DEV|`lightweight-charts.standalone.development.mjs`|`lightweight-charts.standalone.development.js`|\n\n## Development\n\nSee [BUILDING.md](./BUILDING.md) for instructions on how to build `lightweight-charts` from source.\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this software except in compliance with the License.\nYou may obtain a copy of the License at LICENSE file.\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nThis software incorporates several parts of tslib (<https://github.com/Microsoft/tslib>, (c) Microsoft Corporation) that are covered by BSD Zero Clause License.\n\nThis license requires specifying TradingView as the product creator.\nYou shall add the \"attribution notice\" from the NOTICE file and a link to <https://www.tradingview.com/> to the page of your website or mobile application that is available to your users.\nAs thanks for creating this product, we'd be grateful if you add it in a prominent place.\nYou can use the [`attributionLogo`](https://tradingview.github.io/lightweight-charts/docs/api/interfaces/LayoutOptions#attributionLogo) chart option for displaying an appropriate link to <https://www.tradingview.com/> on the chart itself, which will satisfy the link requirement.\n\n[demo-url]: https://www.tradingview.com/lightweight-charts/\n\n[ci-img]: https://img.shields.io/circleci/build/github/tradingview/lightweight-charts.svg\n[ci-link]: https://circleci.com/gh/tradingview/lightweight-charts\n\n[npm-version-img]: https://badge.fury.io/js/lightweight-charts.svg\n[npm-downloads-img]: https://img.shields.io/npm/dm/lightweight-charts.svg\n[npm-link]: https://www.npmjs.com/package/lightweight-charts\n\n[bundle-size-img]: https://badgen.net/bundlephobia/minzip/lightweight-charts\n[deps-count-img]: https://img.shields.io/badge/dynamic/json.svg?label=dependecies&color=brightgreen&query=$.dependencyCount&uri=https%3A%2F%2Fbundlephobia.com%2Fapi%2Fsize%3Fpackage%3Dlightweight-charts\n[bundle-size-link]: https://bundlephobia.com/result?p=lightweight-charts\n","readmeFilename":"README.md","_rev":"1-e20d2c67b553ff0a7cbb125851181d57"}