All Drawing Tools
Every drawing tool at once with the vivid palette (drawings.palette: 'vivid'): trend line, horizontal ray, Fibonacci retracement and rectangle from the toolbar, plus entry / stop / target levels over a Bollinger band. Anchors snap to the candle (magnet to its open / high / low / close), a selected drawing shows handles to drag, Delete removes it, Alt+arrows nudge it; drawings are stored as { t, y } so they survive zoom and timeframe changes, serialise to JSON and persist in localStorage (storageKey).
Open the chart without page chrome ↗Drawing width at least 1,024 px. Scroll within the chart on smaller screens.
const options = {
chart: {
height: 500,
toolbar: {
show: false
},
type: "stock",
events: {
drawingChange: (e, ctx, o) => log(o.action + (o.drawing ? ' ' + o.drawing.type + ' ' + o.drawing.id : '') + ' · ' + o.drawings.length + ' drawing(s) saved')
}
},
series: [
{
name: "WCC",
data: [
[1704150000000, 120.47, 121.48, 119.96, 120.98, 1823369],
[1704236400000, 120.53, 121.2, 119.77, 119.79, 1738689],
[1704322800000, 119.54, 121.66, 119.52, 120.61, 2613040],
[1704409200000, 120.14, 120.6, 119.53, 119.77, 2663261],
[1704668400000, 119.76, 119.76, 118.05, 118.69, 1641888],
[1704754800000, 118.2, 118.29, 117.32, 117.51, 2093318],
[1704841200000, 117.14, 118.34, 116.44, 117.55, 1729833],
[1704927600000, 117.61, 117.67, 116.9, 116.94, 2016518],
[1705014000000, 116.5, 117.57, 114.65, 115.55, 2472931],
[1705273200000, 115.42, 115.55, 114.73, 115.11, 2372301],
[1705359600000, 114.77, 115.76, 114.68, 115.4, 1481575],
[1705446000000, 115.53, 116.7, 114.58, 115.95, 2087788],
[1705532400000, 115.76, 116.64, 115.64, 116.03, 1748810],
[1705618800000, 115.58, 116.38, 114.72, 115.16, 1782667],
[1705878000000, 115.68, 116.42, 114.69, 114.84, 3018110],
[1705964400000, 114.48, 115.41, 113.19, 113.97, 1912432],
[1706050800000, 114.27, 115.1, 112.66, 113.54, 2329141],
[1706137200000, 113.62, 114.65, 112.34, 112.87, 2782051],
[1706223600000, 112.89, 113.6, 111.95, 113.08, 1726703],
[1706482800000, 113.45, 114.17, 112.66, 113.68, 1178124],
[1706569200000, 113.29, 113.31, 111.73, 112.61, 2595050],
[1706655600000, 112.61, 113.46, 112.08, 112.1, 2478633],
[1706742000000, 111.63, 112.46, 109.88, 110.78, 1914044],
[1706828400000, 110.91, 111.7, 110.49, 111.02, 1703809],
[1707087600000, 110.9, 111.64, 110.06, 111.51, 1538964],
[1707174000000, 111.03, 112.2, 109.93, 111.32, 1831417],
[1707260400000, 111.8, 111.99, 110.29, 110.98, 1941239],
[1707346800000, 111.38, 112.36, 111.13, 111.38, 2102208],
[1707433200000, 111.32, 112.72, 111.01, 111.66, 2492058],
[1707692400000, 111.58, 112.39, 110.79, 111.42, 1051976],
[1707778800000, 110.98, 111.54, 110.07, 110.82, 1708671],
[1707865200000, 110.46, 110.72, 108.77, 109.84, 1585794],
[1707951600000, 110.04, 111, 109, 109.42, 2533612],
[1708038000000, 109.4, 109.81, 109.12, 109.6, 2200366],
[1708297200000, 109.47, 110.41, 109.32, 109.69, 1870547],
[1708383600000, 109.41, 110.31, 108.89, 109.88, 1795659],
[1708470000000, 109.45, 110.83, 109.11, 110.18, 2103629],
[1708556400000, 110.55, 111.02, 109.26, 110.09, 1732294],
[1708642800000, 110.37, 110.78, 109.15, 110.22, 1694700],
[1708902000000, 110.34, 110.36, 108.4, 109.29, 3381322],
[1708988400000, 109.69, 110.13, 108.04, 109.05, 3031347],
[1709074800000, 108.72, 110.02, 108.67, 109.02, 1891862],
[1709161200000, 109.32, 110.22, 108.54, 109.03, 2264119],
[1709247600000, 109.15, 109.77, 108.77, 109.27, 1739264],
[1709506800000, 108.95, 109.78, 108.42, 108.81, 1876039],
[1709593200000, 109.07, 109.76, 107.98, 108.88, 2446192],
[1709679600000, 109.33, 110.7, 108.81, 109.85, 2817109],
[1709766000000, 110.14, 110.36, 108.71, 108.81, 2062139],
[1709852400000, 108.47, 109.74, 107.6, 108.67, 2428423],
[1710111600000, 108.86, 109.55, 107.25, 107.71, 2652899],
[1710198000000, 107.64, 108.28, 107, 107.74, 1177397],
[1710284400000, 107.93, 108.7, 107.74, 108.17, 1790787],
[1710370800000, 108.03, 108.06, 106.9, 107.4, 1698671],
[1710457200000, 106.95, 107.74, 105.82, 106.46, 1277587],
[1710716400000, 106.86, 107.64, 106.62, 107.04, 2320541],
[1710802800000, 107.19, 108.23, 105.79, 106.62, 1994345],
[1710889200000, 106.28, 107.8, 105.76, 106.76, 2015205],
[1710975600000, 106.49, 107.87, 106.31, 107.25, 3007777],
[1711062000000, 107.58, 108.48, 106.32, 106.39, 2954165],
[1711321200000, 106.55, 107.57, 105.42, 105.69, 2323158],
[1711407600000, 105.81, 106.3, 104.57, 105.01, 2110618],
[1711494000000, 104.59, 104.75, 103.52, 103.79, 1570614],
[1711580400000, 103.83, 104.32, 102.77, 103.65, 1739829],
[1711666800000, 103.77, 103.91, 103.08, 103.89, 1989911],
[1711926000000, 103.64, 103.65, 102.53, 102.54, 1722588],
[1712012400000, 102.97, 103.8, 100.92, 101.56, 2541098],
[1712098800000, 101.81, 102.37, 99.45, 100.32, 3631179],
[1712185200000, 100.25, 100.62, 99.11, 100.06, 2100206],
[1712271600000, 100.14, 100.76, 99.52, 99.57, 1560024],
[1712530800000, 99.52, 100.07, 98.62, 98.95, 1264558],
[1712617200000, 99.12, 99.36, 98.24, 99.02, 1999120],
[1712703600000, 99.14, 100.41, 98.38, 99.63, 2886431],
[1712790000000, 99.23, 99.75, 98.69, 98.86, 1207104],
[1712876400000, 98.89, 99.5, 97.96, 98.06, 1248185],
[1713135600000, 98.47, 98.98, 97.61, 97.83, 2859126],
[1713222000000, 98.04, 98.35, 97.35, 97.94, 2566269],
[1713308400000, 97.6, 98.38, 97.02, 97.07, 2324545],
[1713394800000, 97.36, 97.37, 96.58, 96.65, 3037771],
[1713481200000, 97.04, 97.87, 96.58, 97.16, 2270015],
[1713740400000, 97.15, 97.54, 96.23, 97.3, 1971288],
[1713826800000, 97.22, 98.17, 96.45, 96.45, 2759016],
[1713913200000, 96.74, 97.24, 95.82, 96.01, 3010314],
[1713999600000, 95.81, 96.31, 95.3, 96.22, 1374223],
[1714086000000, 95.82, 96.36, 95.59, 95.69, 1471487],
[1714345200000, 95.35, 95.51, 94.48, 95.12, 2724745],
[1714431600000, 95.27, 95.89, 94.55, 95.01, 1845725],
[1714518000000, 95.23, 96.08, 94.47, 95.09, 1360746],
[1714604400000, 95.28, 95.42, 93.93, 94.62, 2769395],
[1714690800000, 94.98, 95.73, 94.08, 95.35, 2360490],
[1714950000000, 95.26, 95.75, 94.03, 94.52, 1525960],
[1715036400000, 94.25, 94.64, 92.56, 93.4, 2555274],
[1715122800000, 93.43, 93.8, 92.37, 92.87, 1712884],
[1715209200000, 93.18, 93.45, 92.58, 93.21, 1079763],
[1715295600000, 93.46, 94.39, 92.85, 93.67, 1204483],
[1715554800000, 93.82, 94.32, 93.67, 93.7, 1982437],
[1715641200000, 93.95, 94.16, 93.2, 93.75, 1563473],
[1715727600000, 93.6, 94.28, 93.53, 93.87, 2033193],
[1715814000000, 93.85, 94.72, 93.81, 93.93, 991697],
[1715900400000, 93.79, 94.07, 92.11, 92.95, 1703618],
[1716159600000, 93.15, 93.97, 93.03, 93.53, 2332310],
[1716246000000, 93.76, 94.61, 92.98, 93.16, 2221868],
[1716332400000, 92.9, 93.47, 92.15, 92.88, 1801767],
[1716418800000, 92.91, 93.26, 91.54, 91.86, 2416384],
[1716505200000, 91.97, 92.83, 90.81, 91.2, 2129045],
[1716764400000, 90.85, 91.44, 90.16, 90.87, 1395706],
[1716850800000, 90.69, 91.01, 89.49, 89.81, 1945398],
[1716937200000, 90.09, 90.9, 88.9, 89.56, 2265498],
[1717023600000, 89.17, 89.7, 88.16, 88.79, 2924571],
[1717110000000, 89.01, 89.11, 87.39, 88.08, 2506532],
[1717369200000, 87.71, 88.13, 87.5, 87.88, 1693390],
[1717455600000, 88.01, 88.35, 87.14, 87.56, 2316283],
[1717542000000, 87.67, 87.81, 87.04, 87.4, 2420607],
[1717628400000, 87.28, 88.61, 86.76, 87.88, 3105755],
[1717714800000, 87.82, 88.22, 87.25, 88.06, 2441076],
[1717974000000, 88.28, 88.69, 87.68, 88.27, 2034194],
[1718060400000, 88.24, 88.25, 87.59, 87.75, 1681721],
[1718146800000, 87.79, 89.19, 86.92, 88.51, 1798887],
[1718233200000, 88.33, 89.05, 87.78, 87.87, 2487773],
[1718319600000, 87.87, 88.6, 87.33, 87.96, 2250581],
[1718578800000, 87.81, 88.3, 87.21, 87.96, 2665913],
[1718665200000, 87.97, 89.16, 87.7, 88.55, 2873953],
[1718751600000, 88.4, 88.7, 87.7, 88.09, 1393171],
[1718838000000, 88.45, 89.16, 87.88, 88.46, 1556129],
[1718924400000, 88.52, 89.21, 87.9, 88.09, 1779091],
[1719183600000, 88.17, 88.46, 87.57, 87.94, 1559098],
[1719270000000, 87.71, 88.66, 87.69, 88.34, 1792089],
[1719356400000, 88.03, 89.18, 87.23, 88.5, 1514351],
[1719442800000, 88.47, 89.08, 87.84, 88.89, 2654599],
[1719529200000, 88.64, 89.46, 87.83, 87.98, 2369656],
[1719788400000, 88.01, 88.11, 87.11, 87.95, 1008952],
[1719874800000, 88.2, 88.31, 87.08, 87.6, 1359161],
[1719961200000, 87.27, 87.6, 87.21, 87.46, 1066785],
[1720047600000, 87.11, 87.81, 86.41, 87.34, 1603525],
[1720134000000, 87.24, 87.38, 86.73, 86.96, 1731123],
[1720393200000, 87.26, 87.54, 86.76, 87.45, 2101370],
[1720479600000, 87.77, 88.22, 87.04, 87.64, 2255137],
[1720566000000, 87.66, 88.72, 87.19, 87.94, 2214024],
[1720652400000, 87.61, 88.43, 86.82, 87.86, 2782749],
[1720738800000, 87.51, 87.83, 86.63, 87.25, 2060597],
[1720998000000, 87.16, 87.29, 85.56, 86.25, 3186443],
[1721084400000, 86.58, 87.04, 85.64, 86.01, 1730676],
[1721170800000, 86.03, 86.65, 85.2, 85.88, 1702216],
[1721257200000, 86.27, 87.15, 85.79, 86.97, 2422027],
[1721343600000, 86.65, 87.06, 85.84, 86.9, 2109555],
[1721602800000, 87.05, 87.57, 86.8, 87.36, 1302562],
[1721689200000, 87.68, 88.24, 86.45, 86.96, 1269519],
[1721775600000, 87, 87.21, 85.32, 86.04, 2490423],
[1721862000000, 85.95, 85.97, 84.84, 85.45, 1801559],
[1721948400000, 85.17, 85.74, 84.98, 85.01, 1327844],
[1722207600000, 85.25, 85.89, 83.91, 84.36, 3268633],
[1722294000000, 84.41, 84.9, 83.94, 84.84, 2931805],
[1722380400000, 84.73, 85.14, 83.55, 84.28, 1918645],
[1722466800000, 83.99, 84.98, 83.67, 84.31, 2507453],
[1722553200000, 84.45, 84.86, 83.42, 84.06, 2200768],
[1722812400000, 84.15, 85.07, 83.83, 84.62, 1354561],
[1722898800000, 84.27, 84.7, 84.27, 84.42, 1126401],
[1722985200000, 84.25, 85.07, 83.8, 84.55, 2483143],
[1723071600000, 84.79, 85.51, 83.76, 84.12, 2225012],
[1723158000000, 84.35, 84.45, 84.16, 84.4, 1233498],
[1723417200000, 84.53, 84.87, 83.48, 84.01, 2534454],
[1723503600000, 84.2, 84.94, 83.01, 83.6, 2007304],
[1723590000000, 83.95, 84.06, 83.6, 83.96, 1895399],
[1723676400000, 83.82, 84.64, 83.41, 83.43, 2217493],
[1723762800000, 83.66, 83.91, 83.4, 83.56, 2175597],
[1724022000000, 83.8, 84.8, 83.21, 84.39, 1743326],
[1724108400000, 84.58, 85.72, 83.84, 85.2, 2599469],
[1724194800000, 84.94, 85.36, 83.8, 84.49, 2863192],
[1724281200000, 84.56, 85.78, 83.91, 85.47, 1651501],
[1724367600000, 85.83, 86.1, 85.57, 85.75, 1712261],
[1724626800000, 85.93, 86.47, 85.4, 85.41, 1224240],
[1724713200000, 85.66, 86.4, 85.11, 85.53, 1261794],
[1724799600000, 85.58, 86.22, 85.3, 85.63, 2416356],
[1724886000000, 85.77, 86.51, 84.98, 85.14, 1790409],
[1724972400000, 84.9, 86.32, 84.71, 85.57, 2823745],
[1725231600000, 85.49, 85.65, 84.33, 85.17, 1942258],
[1725318000000, 84.94, 85.59, 83.93, 84.66, 2585014],
[1725404400000, 84.96, 85.25, 84.38, 84.79, 1043705],
[1725490800000, 84.84, 86.21, 84.79, 85.57, 1642035],
[1725577200000, 85.63, 86.64, 85.5, 86.3, 1672832],
[1725836400000, 85.92, 87.23, 85.18, 86.71, 2452558],
[1725922800000, 86.77, 87.66, 86.04, 86.95, 2090779],
[1726009200000, 86.88, 88.29, 86.31, 87.71, 2234466],
[1726095600000, 87.48, 88.64, 87.46, 87.86, 1477555],
[1726182000000, 88.13, 89.34, 87.38, 88.81, 2221474],
[1726441200000, 89.19, 89.94, 88.22, 88.98, 1405914],
[1726527600000, 88.88, 90.46, 88.68, 90, 2124544],
[1726614000000, 89.98, 91.31, 89.34, 90.53, 1533669],
[1726700400000, 90.74, 91.37, 90.68, 90.78, 1571255],
[1726786800000, 90.69, 91.66, 89.94, 91.19, 1342294],
[1727046000000, 90.92, 91.48, 90.47, 90.83, 1703557],
[1727132400000, 91.13, 91.96, 90.5, 91.05, 1662694],
[1727218800000, 90.96, 91.39, 90.32, 91.31, 1927002],
[1727305200000, 91.03, 91.91, 90.77, 91.39, 2319066],
[1727391600000, 91.44, 93.25, 90.73, 92.59, 3049790],
[1727650800000, 92.41, 94.02, 92.17, 93.13, 2158123],
[1727737200000, 93.14, 93.75, 92.4, 93.49, 1555022],
[1727823600000, 93.45, 94.69, 92.66, 94.68, 2396790],
[1727910000000, 95.08, 96.93, 95.06, 96.21, 3271724],
[1727996400000, 96.43, 97.14, 96.17, 96.37, 1356613],
[1728255600000, 96.06, 97.45, 95.44, 96.73, 1341893],
[1728342000000, 96.87, 97.09, 96.05, 96.62, 1804502],
[1728428400000, 97.03, 98.21, 96.73, 97.48, 1530691],
[1728514800000, 97.07, 97.54, 96.56, 96.9, 2206499],
[1728601200000, 97.18, 99.4, 96.34, 98.51, 2514239],
[1728860400000, 98.83, 100.66, 98.41, 100.07, 1548476],
[1728946800000, 100.27, 100.79, 99.95, 100.04, 1607904],
[1729033200000, 99.69, 99.83, 99.39, 99.79, 1518955],
[1729119600000, 99.47, 101.11, 99.23, 100.27, 2365910],
[1729206000000, 100.37, 101.41, 99.97, 100.69, 1126063],
[1729465200000, 100.62, 101.95, 100.24, 101.35, 3041680],
[1729551600000, 101.26, 103.55, 101.21, 102.77, 2568554],
[1729638000000, 102.77, 103.39, 101.94, 103.2, 2299674],
[1729724400000, 103.55, 104.04, 103.08, 103.32, 1485889],
[1729810800000, 103.36, 104.16, 102.81, 103.78, 1721700],
[1730070000000, 104.12, 106.21, 103.69, 105.26, 1851254],
[1730156400000, 105.49, 105.95, 105.22, 105.74, 2514245],
[1730242800000, 105.67, 107.14, 105, 106.91, 2873812],
// ... truncated, use Copy or open the full config
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
import premium from 'west-coast-charts/premium'
WestCoastCharts.use(types).use(premium)
const WestCoastChartsPremium = premium
WestCoastCharts.setLicenseKey(LICENCE_KEY) // paid production licence; localhost evaluation needs no key
const options = {
chart: {
height: 500,
toolbar: {
show: false
},
type: "stock",
events: {
drawingChange: (e, ctx, o) => log(o.action + (o.drawing ? ' ' + o.drawing.type + ' ' + o.drawing.id : '') + ' · ' + o.drawings.length + ' drawing(s) saved')
}
},
series: [
{
name: "WCC",
data: [
[1704150000000, 120.47, 121.48, 119.96, 120.98, 1823369],
[1704236400000, 120.53, 121.2, 119.77, 119.79, 1738689],
[1704322800000, 119.54, 121.66, 119.52, 120.61, 2613040],
[1704409200000, 120.14, 120.6, 119.53, 119.77, 2663261],
[1704668400000, 119.76, 119.76, 118.05, 118.69, 1641888],
[1704754800000, 118.2, 118.29, 117.32, 117.51, 2093318],
[1704841200000, 117.14, 118.34, 116.44, 117.55, 1729833],
[1704927600000, 117.61, 117.67, 116.9, 116.94, 2016518],
[1705014000000, 116.5, 117.57, 114.65, 115.55, 2472931],
[1705273200000, 115.42, 115.55, 114.73, 115.11, 2372301],
[1705359600000, 114.77, 115.76, 114.68, 115.4, 1481575],
[1705446000000, 115.53, 116.7, 114.58, 115.95, 2087788],
[1705532400000, 115.76, 116.64, 115.64, 116.03, 1748810],
[1705618800000, 115.58, 116.38, 114.72, 115.16, 1782667],
[1705878000000, 115.68, 116.42, 114.69, 114.84, 3018110],
[1705964400000, 114.48, 115.41, 113.19, 113.97, 1912432],
[1706050800000, 114.27, 115.1, 112.66, 113.54, 2329141],
[1706137200000, 113.62, 114.65, 112.34, 112.87, 2782051],
[1706223600000, 112.89, 113.6, 111.95, 113.08, 1726703],
[1706482800000, 113.45, 114.17, 112.66, 113.68, 1178124],
[1706569200000, 113.29, 113.31, 111.73, 112.61, 2595050],
[1706655600000, 112.61, 113.46, 112.08, 112.1, 2478633],
[1706742000000, 111.63, 112.46, 109.88, 110.78, 1914044],
[1706828400000, 110.91, 111.7, 110.49, 111.02, 1703809],
[1707087600000, 110.9, 111.64, 110.06, 111.51, 1538964],
[1707174000000, 111.03, 112.2, 109.93, 111.32, 1831417],
[1707260400000, 111.8, 111.99, 110.29, 110.98, 1941239],
[1707346800000, 111.38, 112.36, 111.13, 111.38, 2102208],
[1707433200000, 111.32, 112.72, 111.01, 111.66, 2492058],
[1707692400000, 111.58, 112.39, 110.79, 111.42, 1051976],
[1707778800000, 110.98, 111.54, 110.07, 110.82, 1708671],
[1707865200000, 110.46, 110.72, 108.77, 109.84, 1585794],
[1707951600000, 110.04, 111, 109, 109.42, 2533612],
[1708038000000, 109.4, 109.81, 109.12, 109.6, 2200366],
[1708297200000, 109.47, 110.41, 109.32, 109.69, 1870547],
[1708383600000, 109.41, 110.31, 108.89, 109.88, 1795659],
[1708470000000, 109.45, 110.83, 109.11, 110.18, 2103629],
[1708556400000, 110.55, 111.02, 109.26, 110.09, 1732294],
[1708642800000, 110.37, 110.78, 109.15, 110.22, 1694700],
[1708902000000, 110.34, 110.36, 108.4, 109.29, 3381322],
[1708988400000, 109.69, 110.13, 108.04, 109.05, 3031347],
[1709074800000, 108.72, 110.02, 108.67, 109.02, 1891862],
[1709161200000, 109.32, 110.22, 108.54, 109.03, 2264119],
[1709247600000, 109.15, 109.77, 108.77, 109.27, 1739264],
[1709506800000, 108.95, 109.78, 108.42, 108.81, 1876039],
[1709593200000, 109.07, 109.76, 107.98, 108.88, 2446192],
[1709679600000, 109.33, 110.7, 108.81, 109.85, 2817109],
[1709766000000, 110.14, 110.36, 108.71, 108.81, 2062139],
[1709852400000, 108.47, 109.74, 107.6, 108.67, 2428423],
[1710111600000, 108.86, 109.55, 107.25, 107.71, 2652899],
[1710198000000, 107.64, 108.28, 107, 107.74, 1177397],
[1710284400000, 107.93, 108.7, 107.74, 108.17, 1790787],
[1710370800000, 108.03, 108.06, 106.9, 107.4, 1698671],
[1710457200000, 106.95, 107.74, 105.82, 106.46, 1277587],
[1710716400000, 106.86, 107.64, 106.62, 107.04, 2320541],
[1710802800000, 107.19, 108.23, 105.79, 106.62, 1994345],
[1710889200000, 106.28, 107.8, 105.76, 106.76, 2015205],
[1710975600000, 106.49, 107.87, 106.31, 107.25, 3007777],
[1711062000000, 107.58, 108.48, 106.32, 106.39, 2954165],
[1711321200000, 106.55, 107.57, 105.42, 105.69, 2323158],
[1711407600000, 105.81, 106.3, 104.57, 105.01, 2110618],
[1711494000000, 104.59, 104.75, 103.52, 103.79, 1570614],
[1711580400000, 103.83, 104.32, 102.77, 103.65, 1739829],
[1711666800000, 103.77, 103.91, 103.08, 103.89, 1989911],
[1711926000000, 103.64, 103.65, 102.53, 102.54, 1722588],
[1712012400000, 102.97, 103.8, 100.92, 101.56, 2541098],
[1712098800000, 101.81, 102.37, 99.45, 100.32, 3631179],
[1712185200000, 100.25, 100.62, 99.11, 100.06, 2100206],
[1712271600000, 100.14, 100.76, 99.52, 99.57, 1560024],
[1712530800000, 99.52, 100.07, 98.62, 98.95, 1264558],
[1712617200000, 99.12, 99.36, 98.24, 99.02, 1999120],
[1712703600000, 99.14, 100.41, 98.38, 99.63, 2886431],
[1712790000000, 99.23, 99.75, 98.69, 98.86, 1207104],
[1712876400000, 98.89, 99.5, 97.96, 98.06, 1248185],
[1713135600000, 98.47, 98.98, 97.61, 97.83, 2859126],
[1713222000000, 98.04, 98.35, 97.35, 97.94, 2566269],
[1713308400000, 97.6, 98.38, 97.02, 97.07, 2324545],
[1713394800000, 97.36, 97.37, 96.58, 96.65, 3037771],
[1713481200000, 97.04, 97.87, 96.58, 97.16, 2270015],
[1713740400000, 97.15, 97.54, 96.23, 97.3, 1971288],
[1713826800000, 97.22, 98.17, 96.45, 96.45, 2759016],
[1713913200000, 96.74, 97.24, 95.82, 96.01, 3010314],
[1713999600000, 95.81, 96.31, 95.3, 96.22, 1374223],
[1714086000000, 95.82, 96.36, 95.59, 95.69, 1471487],
[1714345200000, 95.35, 95.51, 94.48, 95.12, 2724745],
[1714431600000, 95.27, 95.89, 94.55, 95.01, 1845725],
[1714518000000, 95.23, 96.08, 94.47, 95.09, 1360746],
[1714604400000, 95.28, 95.42, 93.93, 94.62, 2769395],
[1714690800000, 94.98, 95.73, 94.08, 95.35, 2360490],
[1714950000000, 95.26, 95.75, 94.03, 94.52, 1525960],
[1715036400000, 94.25, 94.64, 92.56, 93.4, 2555274],
[1715122800000, 93.43, 93.8, 92.37, 92.87, 1712884],
[1715209200000, 93.18, 93.45, 92.58, 93.21, 1079763],
[1715295600000, 93.46, 94.39, 92.85, 93.67, 1204483],
[1715554800000, 93.82, 94.32, 93.67, 93.7, 1982437],
[1715641200000, 93.95, 94.16, 93.2, 93.75, 1563473],
[1715727600000, 93.6, 94.28, 93.53, 93.87, 2033193],
[1715814000000, 93.85, 94.72, 93.81, 93.93, 991697],
[1715900400000, 93.79, 94.07, 92.11, 92.95, 1703618],
[1716159600000, 93.15, 93.97, 93.03, 93.53, 2332310],
[1716246000000, 93.76, 94.61, 92.98, 93.16, 2221868],
[1716332400000, 92.9, 93.47, 92.15, 92.88, 1801767],
[1716418800000, 92.91, 93.26, 91.54, 91.86, 2416384],
[1716505200000, 91.97, 92.83, 90.81, 91.2, 2129045],
[1716764400000, 90.85, 91.44, 90.16, 90.87, 1395706],
[1716850800000, 90.69, 91.01, 89.49, 89.81, 1945398],
[1716937200000, 90.09, 90.9, 88.9, 89.56, 2265498],
[1717023600000, 89.17, 89.7, 88.16, 88.79, 2924571],
[1717110000000, 89.01, 89.11, 87.39, 88.08, 2506532],
[1717369200000, 87.71, 88.13, 87.5, 87.88, 1693390],
[1717455600000, 88.01, 88.35, 87.14, 87.56, 2316283],
[1717542000000, 87.67, 87.81, 87.04, 87.4, 2420607],
[1717628400000, 87.28, 88.61, 86.76, 87.88, 3105755],
[1717714800000, 87.82, 88.22, 87.25, 88.06, 2441076],
[1717974000000, 88.28, 88.69, 87.68, 88.27, 2034194],
[1718060400000, 88.24, 88.25, 87.59, 87.75, 1681721],
[1718146800000, 87.79, 89.19, 86.92, 88.51, 1798887],
[1718233200000, 88.33, 89.05, 87.78, 87.87, 2487773],
[1718319600000, 87.87, 88.6, 87.33, 87.96, 2250581],
[1718578800000, 87.81, 88.3, 87.21, 87.96, 2665913],
[1718665200000, 87.97, 89.16, 87.7, 88.55, 2873953],
[1718751600000, 88.4, 88.7, 87.7, 88.09, 1393171],
[1718838000000, 88.45, 89.16, 87.88, 88.46, 1556129],
[1718924400000, 88.52, 89.21, 87.9, 88.09, 1779091],
[1719183600000, 88.17, 88.46, 87.57, 87.94, 1559098],
[1719270000000, 87.71, 88.66, 87.69, 88.34, 1792089],
[1719356400000, 88.03, 89.18, 87.23, 88.5, 1514351],
[1719442800000, 88.47, 89.08, 87.84, 88.89, 2654599],
[1719529200000, 88.64, 89.46, 87.83, 87.98, 2369656],
[1719788400000, 88.01, 88.11, 87.11, 87.95, 1008952],
[1719874800000, 88.2, 88.31, 87.08, 87.6, 1359161],
[1719961200000, 87.27, 87.6, 87.21, 87.46, 1066785],
[1720047600000, 87.11, 87.81, 86.41, 87.34, 1603525],
[1720134000000, 87.24, 87.38, 86.73, 86.96, 1731123],
[1720393200000, 87.26, 87.54, 86.76, 87.45, 2101370],
[1720479600000, 87.77, 88.22, 87.04, 87.64, 2255137],
[1720566000000, 87.66, 88.72, 87.19, 87.94, 2214024],
[1720652400000, 87.61, 88.43, 86.82, 87.86, 2782749],
[1720738800000, 87.51, 87.83, 86.63, 87.25, 2060597],
[1720998000000, 87.16, 87.29, 85.56, 86.25, 3186443],
[1721084400000, 86.58, 87.04, 85.64, 86.01, 1730676],
[1721170800000, 86.03, 86.65, 85.2, 85.88, 1702216],
[1721257200000, 86.27, 87.15, 85.79, 86.97, 2422027],
[1721343600000, 86.65, 87.06, 85.84, 86.9, 2109555],
[1721602800000, 87.05, 87.57, 86.8, 87.36, 1302562],
[1721689200000, 87.68, 88.24, 86.45, 86.96, 1269519],
[1721775600000, 87, 87.21, 85.32, 86.04, 2490423],
[1721862000000, 85.95, 85.97, 84.84, 85.45, 1801559],
[1721948400000, 85.17, 85.74, 84.98, 85.01, 1327844],
[1722207600000, 85.25, 85.89, 83.91, 84.36, 3268633],
[1722294000000, 84.41, 84.9, 83.94, 84.84, 2931805],
[1722380400000, 84.73, 85.14, 83.55, 84.28, 1918645],
[1722466800000, 83.99, 84.98, 83.67, 84.31, 2507453],
[1722553200000, 84.45, 84.86, 83.42, 84.06, 2200768],
[1722812400000, 84.15, 85.07, 83.83, 84.62, 1354561],
[1722898800000, 84.27, 84.7, 84.27, 84.42, 1126401],
[1722985200000, 84.25, 85.07, 83.8, 84.55, 2483143],
[1723071600000, 84.79, 85.51, 83.76, 84.12, 2225012],
[1723158000000, 84.35, 84.45, 84.16, 84.4, 1233498],
[1723417200000, 84.53, 84.87, 83.48, 84.01, 2534454],
[1723503600000, 84.2, 84.94, 83.01, 83.6, 2007304],
[1723590000000, 83.95, 84.06, 83.6, 83.96, 1895399],
[1723676400000, 83.82, 84.64, 83.41, 83.43, 2217493],
[1723762800000, 83.66, 83.91, 83.4, 83.56, 2175597],
[1724022000000, 83.8, 84.8, 83.21, 84.39, 1743326],
[1724108400000, 84.58, 85.72, 83.84, 85.2, 2599469],
[1724194800000, 84.94, 85.36, 83.8, 84.49, 2863192],
[1724281200000, 84.56, 85.78, 83.91, 85.47, 1651501],
[1724367600000, 85.83, 86.1, 85.57, 85.75, 1712261],
[1724626800000, 85.93, 86.47, 85.4, 85.41, 1224240],
[1724713200000, 85.66, 86.4, 85.11, 85.53, 1261794],
[1724799600000, 85.58, 86.22, 85.3, 85.63, 2416356],
[1724886000000, 85.77, 86.51, 84.98, 85.14, 1790409],
[1724972400000, 84.9, 86.32, 84.71, 85.57, 2823745],
[1725231600000, 85.49, 85.65, 84.33, 85.17, 1942258],
[1725318000000, 84.94, 85.59, 83.93, 84.66, 2585014],
[1725404400000, 84.96, 85.25, 84.38, 84.79, 1043705],
[1725490800000, 84.84, 86.21, 84.79, 85.57, 1642035],
[1725577200000, 85.63, 86.64, 85.5, 86.3, 1672832],
[1725836400000, 85.92, 87.23, 85.18, 86.71, 2452558],
[1725922800000, 86.77, 87.66, 86.04, 86.95, 2090779],
[1726009200000, 86.88, 88.29, 86.31, 87.71, 2234466],
[1726095600000, 87.48, 88.64, 87.46, 87.86, 1477555],
[1726182000000, 88.13, 89.34, 87.38, 88.81, 2221474],
[1726441200000, 89.19, 89.94, 88.22, 88.98, 1405914],
[1726527600000, 88.88, 90.46, 88.68, 90, 2124544],
[1726614000000, 89.98, 91.31, 89.34, 90.53, 1533669],
[1726700400000, 90.74, 91.37, 90.68, 90.78, 1571255],
[1726786800000, 90.69, 91.66, 89.94, 91.19, 1342294],
[1727046000000, 90.92, 91.48, 90.47, 90.83, 1703557],
[1727132400000, 91.13, 91.96, 90.5, 91.05, 1662694],
[1727218800000, 90.96, 91.39, 90.32, 91.31, 1927002],
[1727305200000, 91.03, 91.91, 90.77, 91.39, 2319066],
[1727391600000, 91.44, 93.25, 90.73, 92.59, 3049790],
[1727650800000, 92.41, 94.02, 92.17, 93.13, 2158123],
[1727737200000, 93.14, 93.75, 92.4, 93.49, 1555022],
[1727823600000, 93.45, 94.69, 92.66, 94.68, 2396790],
[1727910000000, 95.08, 96.93, 95.06, 96.21, 3271724],
[1727996400000, 96.43, 97.14, 96.17, 96.37, 1356613],
[1728255600000, 96.06, 97.45, 95.44, 96.73, 1341893],
[1728342000000, 96.87, 97.09, 96.05, 96.62, 1804502],
[1728428400000, 97.03, 98.21, 96.73, 97.48, 1530691],
[1728514800000, 97.07, 97.54, 96.56, 96.9, 2206499],
[1728601200000, 97.18, 99.4, 96.34, 98.51, 2514239],
[1728860400000, 98.83, 100.66, 98.41, 100.07, 1548476],
[1728946800000, 100.27, 100.79, 99.95, 100.04, 1607904],
[1729033200000, 99.69, 99.83, 99.39, 99.79, 1518955],
[1729119600000, 99.47, 101.11, 99.23, 100.27, 2365910],
[1729206000000, 100.37, 101.41, 99.97, 100.69, 1126063],
[1729465200000, 100.62, 101.95, 100.24, 101.35, 3041680],
[1729551600000, 101.26, 103.55, 101.21, 102.77, 2568554],
[1729638000000, 102.77, 103.39, 101.94, 103.2, 2299674],
[1729724400000, 103.55, 104.04, 103.08, 103.32, 1485889],
[1729810800000, 103.36, 104.16, 102.81, 103.78, 1721700],
[1730070000000, 104.12, 106.21, 103.69, 105.26, 1851254],
[1730156400000, 105.49, 105.95, 105.22, 105.74, 2514245],
[1730242800000, 105.67, 107.14, 105, 106.91, 2873812],
[1730329200000, 107.26, 107.7, 106.7, 107.41, 2366116],
[1730415600000, 107.4, 107.81, 106.57, 107.69, 2051131],
[1730674800000, 107.36, 108.19, 106.74, 108.01, 2365509],
[1730761200000, 107.8, 110.01, 107.17, 109.06, 3002858],
[1730847600000, 109.2, 110.28, 108.99, 110.18, 2162813],
[1730934000000, 110.14, 110.6, 109.83, 110.2, 2527949],
[1731020400000, 110.29, 111.67, 109.62, 111.5, 1788084],
[1731279600000, 111.25, 112.5, 110.8, 111.99, 1302774],
[1731366000000, 111.82, 112.43, 110.6, 111.55, 1905112],
[1731452400000, 111.24, 112.6, 111.22, 111.84, 1251277],
[1731538800000, 111.87, 113.05, 111.08, 111.98, 1297153],
[1731625200000, 111.62, 112.52, 111.16, 112.03, 1723146],
[1731884400000, 112.36, 113.29, 111.69, 112.66, 1385990],
[1731970800000, 113.16, 114.19, 111.73, 112.81, 1491073],
[1732057200000, 112.64, 113.69, 111.92, 113.48, 2568647],
[1732143600000, 113.59, 115.48, 113.37, 114.81, 2528140],
[1732230000000, 115.08, 115.98, 113.84, 114.68, 2260160],
[1732489200000, 114.48, 115.98, 113.76, 115.87, 3565701],
[1732575600000, 115.74, 117.24, 115.14, 116.48, 1364611],
[1732662000000, 116.3, 118.08, 116.16, 117.61, 2263671],
[1732748400000, 117.4, 118.44, 116.98, 118.06, 2190843],
[1732834800000, 117.64, 119.77, 116.91, 118.71, 3225845],
[1733094000000, 118.39, 118.62, 117.47, 117.77, 1229568],
[1733180400000, 117.44, 118.32, 116.48, 117.71, 2358627],
[1733266800000, 118.11, 118.98, 117.19, 117.53, 1391428],
[1733353200000, 117.81, 118.2, 117, 117.7, 2460935],
[1733439600000, 117.98, 118.06, 116.97, 117.31, 1346470],
[1733698800000, 116.92, 117.71, 115.59, 116.37, 1868214],
[1733785200000, 116.74, 117.95, 116.08, 117.15, 1178368],
[1733871600000, 116.72, 117.74, 115.81, 116.27, 2501577],
[1733958000000, 115.97, 116.83, 114.9, 115.14, 1786929],
[1734044400000, 114.98, 116.58, 114.71, 115.91, 2977688],
[1734303600000, 115.89, 117, 114.75, 116.63, 1631552],
[1734390000000, 116.21, 116.78, 115.23, 115.79, 1824975],
[1734476400000, 115.29, 115.87, 113.67, 114.32, 2049960],
[1734562800000, 114.4, 116.05, 114.4, 115.19, 2165733],
[1734649200000, 114.87, 115.95, 114.83, 115.09, 2597536],
[1734908400000, 115.43, 116.17, 114.42, 115.37, 2577731],
[1734994800000, 115.58, 116.18, 114.7, 116.07, 2774627],
[1735081200000, 116.34, 117.43, 115.4, 116.85, 1200360],
[1735167600000, 116.69, 117.09, 115.06, 115.84, 2679750],
[1735254000000, 116.19, 116.67, 115.32, 115.74, 2559514],
[1735513200000, 116.04, 117.51, 115.69, 116.56, 2640181]
]
}
],
plotOptions: {
stock: {
rangeSelector: {
selected: "6M"
},
overlays: [
{
type: "bollinger",
period: 20
}
],
priceLines: [
{
y: 113.06,
label: "Entry"
},
{
y: 107.24,
label: "Stop",
color: "#dc2626"
},
{
y: 125.88,
label: "Target",
color: "#16a34a"
}
],
drawings: {
enabled: true,
items: [
{
id: "fib",
type: "fib",
points: [
{
t: 1723503600000,
y: 83.01
},
{
t: 1732834800000,
y: 119.77
}
]
},
{
id: "trend",
type: "trendline",
label: "Support",
extend: "right",
points: [
{
t: 1728342000000,
y: 96.05
},
{
t: 1732575600000,
y: 115.14
}
]
},
{
id: "ray",
type: "ray",
label: "Resistance",
dash: true,
points: [
{
t: 1731970800000,
y: 114.19
}
]
},
{
id: "box",
type: "rect",
label: "Range",
points: [
{
t: 1732834800000,
y: 119.77
},
{
t: 1734562800000,
y: 113.67
}
]
}
],
palette: "vivid",
storageKey: "wcc-gallery-stock-drawings-all"
}
}
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render() Waiting for the chart.
Open Data & agent view to read this chart through chart.describe().
Read from the running library through its optional agent/describe module. Text, table and JSON share the same snapshot. Demo data only.
$ wcc chart export stock-drawing-tools.json --out stock-drawing-tools.svg --with-table Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm. Save a JSON spec first and check the loaded runtime and supported modules before rendering. Command reference
Loading /gallery/stock/drawing-tools/index.md … This example uses Premium modules. Compare licences · Embedding in a distributed product?