# Large Dataset (Stock example)

> WestCoast Charts 1.1.5, release, public Core release, on npm. HTML: https://westcoast-charts.com/gallery/stock/large-dataset/ · Index for agents: https://westcoast-charts.com/llms.txt

20 years of daily candles (about 5 200); only the visible range is drawn, the navigator summarises all.

- Chart type: `stock` (Stock)
- Collection: Stock · Stock
- Raw configuration: https://westcoast-charts.com/gallery-src/stock/large-dataset.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/premium/stock/large-dataset.html

## Setup

```js
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
```

## Options

Shortened: the full configuration (320 kB, mostly data) is at https://westcoast-charts.com/gallery-src/stock/large-dataset.js.

```js
const options = {
  chart: {
    height: 480,
    toolbar: {
      show: false
    },
    type: "stock"
  },
  series: [
    {
      name: "WCC",
      data: [
        [1136156400000, 7.97, 7.99, 7.86, 7.89, 2774665],
        [1136242800000, 7.87, 7.88, 7.77, 7.85, 1408500],
        [1136329200000, 7.85, 7.86, 7.74, 7.79, 1242806],
        [1136415600000, 7.77, 7.86, 7.71, 7.79, 1437239],
        [1136502000000, 7.75, 7.78, 7.66, 7.72, 1799371],
        [1136761200000, 7.76, 7.9, 7.73, 7.83, 2735698],
        [1136847600000, 7.85, 7.93, 7.8, 7.9, 2201075],
        [1136934000000, 7.87, 7.91, 7.86, 7.88, 1474620],
        [1137020400000, 7.9, 7.95, 7.81, 7.87, 2209132],
        [1137106800000, 7.89, 7.95, 7.89, 7.92, 2107415],
        [1137366000000, 7.91, 7.98, 7.78, 7.85, 1859319],
        [1137452400000, 7.85, 7.91, 7.79, 7.81, 1325332],
        [1137538800000, 7.84, 7.86, 7.83, 7.85, 1580156],
        [1137625200000, 7.87, 7.9, 7.8, 7.85, 1546381],
        [1137711600000, 7.82, 7.87, 7.8, 7.82, 2125433],
        [1137970800000, 7.85, 7.92, 7.76, 7.9, 1495391],
        [1138057200000, 7.9, 7.96, 7.83, 7.93, 1418135],
        [1138143600000, 7.91, 8.01, 7.83, 7.94, 2371999],
        [1138230000000, 7.94, 7.98, 7.88, 7.98, 1251494],
        [1138316400000, 7.97, 8.01, 7.95, 8.01, 2611238],
        [1138575600000, 8.02, 8.06, 7.94, 7.98, 1508729],
        [1138662000000, 7.98, 8.07, 7.98, 8, 2431480],
        [1138748400000, 8, 8.06, 7.85, 7.93, 3102921],
        [1138834800000, 7.96, 7.97, 7.86, 7.91, 3108562],
        [1138921200000, 7.92, 8.03, 7.89, 7.99, 2544251],
        [1139180400000, 8, 8.08, 7.89, 7.95, 2592837],
        [1139266800000, 7.97, 8.05, 7.89, 7.93, 1174331],
        [1139353200000, 7.92, 8.09, 7.87, 8, 1731326],
        [1139439600000, 8, 8.04, 7.91, 7.96, 1439447],
        [1139526000000, 7.96, 8.05, 7.92, 7.96, 1127632],
        [1139785200000, 7.93, 7.97, 7.82, 7.9, 1284740],
        [1139871600000, 7.9, 7.98, 7.9, 7.93, 1382513],
        [1139958000000, 7.89, 7.94, 7.81, 7.88, 1853987],
        [1140044400000, 7.91, 7.99, 7.83, 7.87, 2858730],
        [1140130800000, 7.86, 8.02, 7.85, 7.94, 3396742],
        [1140390000000, 7.95, 7.96, 7.92, 7.95, 1388186],
        [1140476400000, 7.99, 8, 7.93, 7.97, 2052334],
        [1140562800000, 8, 8.14, 7.98, 8.07, 2664801],
        [1140649200000, 8.11, 8.22, 8.04, 8.21, 1951411],
        [1140735600000, 8.18, 8.25, 8.09, 8.13, 1351310],
        [1140994800000, 8.14, 8.23, 8.09, 8.16, 2003868],
        [1141081200000, 8.15, 8.3, 8.11, 8.24, 1881236],
        [1141167600000, 8.2, 8.29, 8.1, 8.18, 1335899],
        [1141254000000, 8.16, 8.25, 8.09, 8.2, 2332632],
        [1141340400000, 8.2, 8.35, 8.19, 8.26, 1536544],
        [1141599600000, 8.29, 8.41, 8.28, 8.38, 2064621],
        [1141686000000, 8.38, 8.47, 8.37, 8.39, 1553382],
        [1141772400000, 8.4, 8.45, 8.33, 8.43, 2083571],
        [1141858800000, 8.44, 8.58, 8.44, 8.56, 1423478],
        [1141945200000, 8.59, 8.6, 8.55, 8.57, 1936343],
        [1142204400000, 8.56, 8.66, 8.49, 8.6, 1286630],
        [1142290800000, 8.6, 8.68, 8.59, 8.65, 1796547],
        [1142377200000, 8.67, 8.85, 8.67, 8.77, 1595701],
        [1142463600000, 8.74, 8.93, 8.66, 8.85, 3208600],
        [1142550000000, 8.88, 8.93, 8.83, 8.84, 1554281],
        [1142809200000, 8.84, 9.02, 8.78, 8.97, 3691170],
        [1142895600000, 9.01, 9.17, 8.94, 9.1, 1870552],
        [1142982000000, 9.13, 9.24, 9.06, 9.15, 2505203],
        [1143068400000, 9.13, 9.2, 9, 9.09, 1584989],
        [1143154800000, 9.08, 9.21, 9.05, 9.11, 1229544],
        [1143414000000, 9.14, 9.2, 9.05, 9.14, 1933061],
        [1143500400000, 9.11, 9.16, 9.08, 9.12, 1428951],
        [1143586800000, 9.1, 9.16, 9, 9.11, 2471487],
        [1143673200000, 9.11, 9.19, 9.08, 9.15, 2776078],
        [1143759600000, 9.15, 9.23, 9.07, 9.1, 1722341],
        [1144018800000, 9.12, 9.12, 9.04, 9.1, 1860757],
        [1144105200000, 9.12, 9.13, 8.99, 9.07, 1324899],
        [1144191600000, 9.04, 9.13, 8.95, 9.07, 2725978],
        [1144278000000, 9.06, 9.24, 9.03, 9.16, 2700084],
        [1144364400000, 9.12, 9.18, 9.09, 9.15, 2850919],
        [1144623600000, 9.12, 9.3, 9.07, 9.21, 1388362],
        [1144710000000, 9.25, 9.31, 9.16, 9.26, 1496883],
        [1144796400000, 9.29, 9.38, 9.29, 9.35, 3045237],
        [1144882800000, 9.36, 9.38, 9.24, 9.34, 1131399],
        [1144969200000, 9.38, 9.45, 9.31, 9.43, 2080764],
        [1145228400000, 9.47, 9.6, 9.41, 9.5, 1329409],
        [1145314800000, 9.49, 9.56, 9.39, 9.43, 2028756],
        [1145401200000, 9.4, 9.44, 9.39, 9.41, 1439191],
        [1145487600000, 9.37, 9.42, 9.29, 9.32, 2196042],
        [1145574000000, 9.3, 9.38, 9.2, 9.33, 1353409],
        [1145833200000, 9.29, 9.38, 9.23, 9.37, 2562694],
        [1145919600000, 9.37, 9.5, 9.35, 9.41, 1539384],
        [1146006000000, 9.43, 9.46, 9.35, 9.38, 1872090],
        [1146092400000, 9.33, 9.34, 9.27, 9.33, 2413303],
        [1146178800000, 9.29, 9.41, 9.25, 9.32, 2662111],
        [1146438000000, 9.36, 9.43, 9.27, 9.38, 2447979],
        [1146524400000, 9.37, 9.54, 9.31, 9.44, 1572330],
        [1146610800000, 9.42, 9.49, 9.33, 9.35, 2505786],
        [1146697200000, 9.35, 9.43, 9.21, 9.27, 3058427],
        [1146783600000, 9.31, 9.41, 9.11, 9.2, 1393850],
        [1147042800000, 9.16, 9.21, 9.11, 9.11, 2601782],
        [1147129200000, 9.1, 9.16, 8.99, 9.02, 3338575],
        [1147215600000, 9, 9.1, 8.97, 9.01, 2364784],
        [1147302000000, 8.97, 9.05, 8.92, 9, 1183943],
        [1147388400000, 9.01, 9.03, 8.91, 8.97, 1556339],
        [1147647600000, 8.97, 9.02, 8.89, 9.01, 1891263],
        [1147734000000, 9.05, 9.14, 8.95, 9.05, 2222372],
        [1147820400000, 9.01, 9.09, 8.93, 8.96, 3023349],
        [1147906800000, 8.93, 8.96, 8.85, 8.9, 1336081],
        [1147993200000, 8.89, 8.98, 8.84, 8.96, 2742878],
        [1148252400000, 8.98, 9.04, 8.87, 8.96, 1703921],
        [1148338800000, 8.92, 8.96, 8.85, 8.88, 1777230],
        [1148425200000, 8.9, 8.96, 8.83, 8.95, 1898335],
        [1148511600000, 8.92, 9.01, 8.84, 9, 2531540],
        [1148598000000, 9, 9.08, 8.97, 8.98, 1938341],
        [1148857200000, 8.99, 9.04, 8.95, 8.96, 2366503],
        [1148943600000, 8.93, 8.96, 8.75, 8.85, 1416355],
        [1149030000000, 8.81, 8.89, 8.7, 8.71, 2194811],
        [1149116400000, 8.69, 8.74, 8.63, 8.72, 2569931],
        [1149202800000, 8.73, 8.83, 8.64, 8.75, 1573018],
        [1149462000000, 8.76, 8.86, 8.72, 8.81, 2104932],
        [1149548400000, 8.82, 8.89, 8.68, 8.74, 2385128],
        [1149634800000, 8.73, 8.76, 8.55, 8.63, 3101143],
        [1149721200000, 8.61, 8.61, 8.47, 8.54, 1617660],
        [1149807600000, 8.55, 8.59, 8.4, 8.48, 2315227],
        [1150066800000, 8.49, 8.53, 8.41, 8.41, 1277667],
        [1150153200000, 8.38, 8.44, 8.35, 8.44, 3056239],
        [1150239600000, 8.47, 8.53, 8.4, 8.48, 1882550],
        [1150326000000, 8.52, 8.57, 8.44, 8.45, 1355459],
        [1150412400000, 8.43, 8.5, 8.41, 8.46, 1092106],
        [1150671600000, 8.44, 8.55, 8.37, 8.51, 3001625],
        [1150758000000, 8.46, 8.57, 8.46, 8.52, 1979532],
        [1150844400000, 8.53, 8.59, 8.44, 8.48, 2338063],
        [1150930800000, 8.44, 8.49, 8.32, 8.41, 1754760],
        [1151017200000, 8.39, 8.44, 8.29, 8.33, 3022464],
        [1151276400000, 8.34, 8.39, 8.32, 8.36, 1724029],
        [1151362800000, 8.37, 8.48, 8.33, 8.45, 1663329],
        [1151449200000, 8.49, 8.52, 8.4, 8.41, 3286881],
        [1151535600000, 8.45, 8.53, 8.38, 8.53, 2075777],
        [1151622000000, 8.5, 8.61, 8.44, 8.58, 1627657],
        [1151881200000, 8.57, 8.63, 8.49, 8.61, 1699609],
        [1151967600000, 8.62, 8.66, 8.54, 8.57, 2771838],
        [1152054000000, 8.6, 8.74, 8.52, 8.66, 2966390],
        [1152140400000, 8.7, 8.83, 8.64, 8.76, 2613284],
        [1152226800000, 8.73, 8.84, 8.7, 8.79, 2400141],
        [1152486000000, 8.84, 8.89, 8.8, 8.84, 2439503],
        [1152572400000, 8.83, 8.87, 8.75, 8.86, 2696970],
        [1152658800000, 8.87, 8.94, 8.8, 8.82, 1790918],
        [1152745200000, 8.79, 8.88, 8.63, 8.72, 2403628],
        [1152831600000, 8.76, 8.8, 8.64, 8.68, 2068698],
        [1153090800000, 8.65, 8.71, 8.56, 8.64, 2246530],
        [1153177200000, 8.63, 8.72, 8.56, 8.66, 2433481],
        [1153263600000, 8.7, 8.78, 8.62, 8.64, 2371375],
        [1153350000000, 8.59, 8.66, 8.52, 8.55, 2237559],
        [1153436400000, 8.55, 8.56, 8.5, 8.52, 2706037],
        [1153695600000, 8.51, 8.52, 8.42, 8.47, 1925060],
        [1153782000000, 8.43, 8.55, 8.35, 8.46, 1620845],
        [1153868400000, 8.45, 8.53, 8.39, 8.47, 2600540],
        [1153954800000, 8.49, 8.58, 8.4, 8.48, 2274795],
        [1154041200000, 8.44, 8.5, 8.32, 8.37, 3111242],
        [1154300400000, 8.34, 8.41, 8.29, 8.38, 2504683],
        [1154386800000, 8.39, 8.44, 8.23, 8.32, 1457645],
        [1154473200000, 8.32, 8.39, 8.29, 8.36, 2174475],
        [1154559600000, 8.35, 8.36, 8.32, 8.35, 1532481],
        [1154646000000, 8.35, 8.48, 8.27, 8.42, 3338076],
        [1154905200000, 8.41, 8.43, 8.36, 8.43, 1577437],
        [1154991600000, 8.44, 8.44, 8.33, 8.42, 1224548],
        [1155078000000, 8.43, 8.51, 8.4, 8.47, 1902125],
        [1155164400000, 8.49, 8.51, 8.4, 8.47, 2004427],
        [1155250800000, 8.51, 8.57, 8.45, 8.57, 3091434],
        [1155510000000, 8.54, 8.66, 8.52, 8.59, 1469512],
        [1155596400000, 8.57, 8.64, 8.46, 8.49, 1601638],
        [1155682800000, 8.49, 8.62, 8.41, 8.54, 1175986],
        [1155769200000, 8.55, 8.62, 8.5, 8.53, 1847980],
        [1155855600000, 8.5, 8.53, 8.43, 8.47, 1160294],
        [1156114800000, 8.48, 8.48, 8.38, 8.39, 3464073],
        [1156201200000, 8.38, 8.43, 8.25, 8.29, 2420626],
        [1156287600000, 8.28, 8.3, 8.14, 8.2, 2336651],
        [1156374000000, 8.22, 8.29, 8.12, 8.15, 1855668],
        [1156460400000, 8.13, 8.17, 8.13, 8.16, 2132300],
        [1156719600000, 8.19, 8.19, 8.09, 8.14, 1610068],
        [1156806000000, 8.16, 8.23, 8.06, 8.12, 2487560],
        [1156892400000, 8.11, 8.18, 7.97, 8.03, 1771337],
        [1156978800000, 8, 8.09, 7.87, 7.93, 2722757],
        [1157065200000, 7.91, 7.95, 7.77, 7.84, 1365583],
        [1157324400000, 7.81, 7.83, 7.78, 7.78, 1347346],
        [1157410800000, 7.76, 7.8, 7.68, 7.74, 1386455],
        [1157497200000, 7.73, 7.8, 7.64, 7.7, 1227500],
        [1157583600000, 7.74, 7.82, 7.69, 7.73, 2279436],
        [1157670000000, 7.76, 7.84, 7.75, 7.82, 2360661],
        [1157929200000, 7.81, 7.86, 7.73, 7.83, 1274240],
        [1158015600000, 7.86, 7.88, 7.82, 7.84, 1696544],
        [1158102000000, 7.83, 7.83, 7.79, 7.79, 1893866],
        [1158188400000, 7.8, 7.88, 7.68, 7.73, 1339744],
        [1158274800000, 7.76, 7.84, 7.69, 7.72, 1947033],
        [1158534000000, 7.73, 7.8, 7.72, 7.77, 2647045],
        [1158620400000, 7.8, 7.88, 7.75, 7.88, 1718815],
        [1158706800000, 7.86, 7.91, 7.75, 7.81, 1914294],
        [1158793200000, 7.81, 7.91, 7.77, 7.85, 1813604],
        [1158879600000, 7.88, 7.94, 7.78, 7.83, 1954621],
        [1159138800000, 7.79, 7.89, 7.72, 7.81, 1507196],
        [1159225200000, 7.79, 7.91, 7.77, 7.83, 2747667],
        [1159311600000, 7.86, 7.94, 7.85, 7.91, 1826786],
        [1159398000000, 7.94, 8.01, 7.91, 7.95, 2175159],
        [1159484400000, 7.94, 8.03, 7.91, 8.02, 1780623],
        [1159743600000, 8, 8.07, 7.94, 8.05, 2463980],
        [1159830000000, 8.09, 8.1, 7.98, 8.07, 1203002],
        [1159916400000, 8.09, 8.24, 8.01, 8.18, 1465487],
        [1160002800000, 8.16, 8.23, 8.08, 8.15, 2585278],
        [1160089200000, 8.17, 8.27, 8.13, 8.2, 1454705],
        [1160348400000, 8.17, 8.23, 8.1, 8.21, 2364385],
        [1160434800000, 8.2, 8.32, 8.17, 8.28, 3159781],
        [1160521200000, 8.28, 8.29, 8.25, 8.28, 1416375],
        [1160607600000, 8.26, 8.33, 8.23, 8.23, 1632879],
        [1160694000000, 8.2, 8.24, 8.16, 8.17, 1892557],
        [1160953200000, 8.21, 8.26, 8.16, 8.22, 2323666],
        [1161039600000, 8.18, 8.31, 8.1, 8.22, 1455864],
        [1161126000000, 8.21, 8.26, 8.12, 8.18, 1436416],
        [1161212400000, 8.19, 8.3, 8.16, 8.27, 2052153],
        [1161298800000, 8.28, 8.32, 8.25, 8.31, 1516801],
        [1161558000000, 8.35, 8.5, 8.32, 8.45, 3306073],
        [1161644400000, 8.47, 8.51, 8.38, 8.43, 1798614],
        [1161730800000, 8.47, 8.53, 8.41, 8.5, 1971933],
        [1161817200000, 8.49, 8.5, 8.36, 8.45, 1993978],
        [1161903600000, 8.47, 8.56, 8.39, 8.55, 3305834],
        [1162162800000, 8.58, 8.67, 8.56, 8.63, 2788856],
        [1162249200000, 8.6, 8.72, 8.58, 8.66, 1760939],
        [1162335600000, 8.68, 8.84, 8.67, 8.77, 3410783],
        [1162422000000, 8.8, 8.93, 8.79, 8.9, 2049940],
        [1162508400000, 8.91, 8.96, 8.83, 8.9, 996672],
        [1162767600000, 8.92, 8.94, 8.87, 8.92, 2587887],
        [1162854000000, 8.94, 9.02, 8.88, 8.98, 1922168],
        [1162940400000, 8.95, 9.02, 8.89, 8.98, 2112442],
        [1163026800000, 8.99, 9.14, 8.91, 9.05, 1717539],
        [1163113200000, 9.1, 9.14, 9.08, 9.12, 2566034],
        [1163372400000, 9.08, 9.17, 9.02, 9.15, 1429905],
        [1163458800000, 9.13, 9.2, 9.07, 9.11, 1757759],
        [1163545200000, 9.12, 9.22, 9.02, 9.05, 2956449],
        [1163631600000, 9.01, 9.06, 8.93, 8.99, 1274020],
        [1163718000000, 8.94, 9.05, 8.87, 8.98, 1614999],
        [1163977200000, 8.95, 9.02, 8.9, 8.9, 1466293],
        [1164063600000, 8.86, 8.93, 8.85, 8.87, 1659714],
        [1164150000000, 8.88, 8.93, 8.75, 8.82, 1669312],
        [1164236400000, 8.86, 8.86, 8.81, 8.83, 2079870],
        [1164322800000, 8.86, 8.94, 8.81, 8.89, 2472473],
        [1164582000000, 8.85, 8.93, 8.76, 8.8, 2383448],
        [1164668400000, 8.82, 8.91, 8.78, 8.88, 1566435],
        [1164754800000, 8.87, 8.9, 8.8, 8.82, 1276335],
        [1164841200000, 8.79, 8.88, 8.77, 8.77, 2559472],
        [1164927600000, 8.78, 8.9, 8.68, 8.81, 2045951],
        [1165186800000, 8.8, 8.85, 8.7, 8.74, 1590909],
  // ... truncated, use Copy or open the full config

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render()
```

## Verify

- Text check (Library 1.1.5): load `west-coast-charts/agent/describe` and call `chart.describe({ format: "json" })` for the actual drawn state. The live reader is on this example’s HTML page.
- Command line (Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm, https://westcoast-charts.com/docs/cli/index.md): `wcc chart export stock-large-dataset.json --out stock-large-dataset.svg --with-table` (save the options above as JSON first)
