Streaming
5-minute candles; a new tick every second updates the last candle, a new candle every 5 ticks; the view follows.
Open the chart without page chrome ↗Drawing width at least 1,024 px. Scroll within the chart on smaller screens.
const options = {
chart: {
height: 460,
toolbar: {
show: false
},
type: "stock"
},
series: [
{
name: "WCC",
data: [
[1792395000000, 50, 50.12, 49.95, 50.11, 75958],
[1792395300000, 50.11, 50.12, 49.98, 50.01, 63825],
[1792395600000, 50.01, 50.05, 49.81, 49.9, 89915],
[1792395900000, 49.9, 49.93, 49.77, 49.86, 68370],
[1792396200000, 49.86, 50.07, 49.85, 50, 80288],
[1792396500000, 50, 50.17, 49.96, 50.08, 49774],
[1792396800000, 50.08, 50.17, 49.9, 49.96, 57814],
[1792397100000, 49.96, 49.98, 49.83, 49.87, 34275],
[1792397400000, 49.87, 49.94, 49.67, 49.74, 39522],
[1792397700000, 49.74, 49.76, 49.65, 49.66, 65317],
[1792398000000, 49.66, 49.74, 49.6, 49.69, 21363],
[1792398300000, 49.69, 49.7, 49.66, 49.67, 24080],
[1792398600000, 49.67, 49.74, 49.52, 49.59, 69642],
[1792398900000, 49.59, 49.65, 49.47, 49.49, 48552],
[1792399200000, 49.49, 49.51, 49.41, 49.46, 65559],
[1792399500000, 49.46, 49.52, 49.41, 49.44, 76265],
[1792399800000, 49.44, 49.52, 49.34, 49.45, 20503],
[1792400100000, 49.45, 49.49, 49.36, 49.49, 47330],
[1792400400000, 49.49, 49.59, 49.43, 49.57, 92186],
[1792400700000, 49.57, 49.65, 49.52, 49.56, 63069],
[1792401000000, 49.56, 49.63, 49.51, 49.51, 71146],
[1792401300000, 49.51, 49.55, 49.36, 49.37, 64802],
[1792401600000, 49.37, 49.44, 49.27, 49.31, 58289],
[1792401900000, 49.31, 49.41, 49.13, 49.2, 96681],
[1792402200000, 49.2, 49.27, 49.14, 49.26, 47500],
[1792402500000, 49.26, 49.27, 49.22, 49.23, 92524],
[1792402800000, 49.23, 49.27, 49.14, 49.17, 94270],
[1792403100000, 49.17, 49.23, 48.97, 49.06, 65487],
[1792403400000, 49.06, 49.09, 48.92, 48.97, 89919],
[1792403700000, 48.97, 48.99, 48.79, 48.88, 31572],
[1792404000000, 48.88, 48.93, 48.72, 48.79, 36133],
[1792404300000, 48.79, 48.8, 48.67, 48.73, 54146],
[1792404600000, 48.73, 48.78, 48.7, 48.77, 53229],
[1792404900000, 48.77, 48.92, 48.71, 48.91, 34328],
[1792405200000, 48.91, 49.01, 48.72, 48.78, 25998],
[1792405500000, 48.78, 48.85, 48.64, 48.69, 24328],
[1792405800000, 48.69, 48.72, 48.56, 48.65, 63787],
[1792406100000, 48.65, 48.7, 48.48, 48.52, 92805],
[1792406400000, 48.52, 48.62, 48.44, 48.53, 28897],
[1792406700000, 48.53, 48.57, 48.44, 48.44, 63197],
[1792407000000, 48.44, 48.48, 48.26, 48.36, 28911],
[1792407300000, 48.36, 48.45, 48.22, 48.26, 87430],
[1792407600000, 48.26, 48.34, 48.14, 48.16, 61655],
[1792407900000, 48.16, 48.24, 48.07, 48.07, 81723],
[1792408200000, 48.07, 48.07, 47.94, 47.98, 93377],
[1792408500000, 47.98, 48.02, 47.92, 48, 45673],
[1792408800000, 48, 48.12, 47.96, 48.03, 74650],
[1792409100000, 48.03, 48.11, 47.97, 47.97, 45224],
[1792409400000, 47.97, 48.04, 47.82, 47.87, 27073],
[1792409700000, 47.87, 48.01, 47.8, 47.99, 92267],
[1792410000000, 47.99, 48.01, 47.88, 47.97, 59335],
[1792410300000, 47.97, 48.07, 47.92, 48.05, 65101],
[1792410600000, 48.05, 48.06, 47.89, 47.93, 64223],
[1792410900000, 47.93, 48, 47.9, 47.97, 32105],
[1792411200000, 47.97, 48.03, 47.81, 47.88, 79558],
[1792411500000, 47.88, 47.9, 47.83, 47.85, 82636],
[1792411800000, 47.85, 47.88, 47.71, 47.73, 72938],
[1792412100000, 47.73, 47.84, 47.69, 47.8, 53069],
[1792412400000, 47.8, 47.86, 47.68, 47.76, 42575],
[1792412700000, 47.76, 47.89, 47.68, 47.8, 80249],
[1792413000000, 47.8, 47.92, 47.75, 47.83, 80862],
[1792413300000, 47.83, 47.91, 47.71, 47.76, 42591],
[1792413600000, 47.76, 47.85, 47.59, 47.64, 81253],
[1792413900000, 47.64, 47.72, 47.6, 47.65, 31865],
[1792414200000, 47.65, 47.73, 47.61, 47.69, 87047],
[1792414500000, 47.69, 47.86, 47.63, 47.78, 26776],
[1792414800000, 47.78, 47.84, 47.74, 47.78, 57717],
[1792415100000, 47.78, 47.96, 47.77, 47.91, 41963],
[1792415400000, 47.91, 47.91, 47.75, 47.78, 53463],
[1792415700000, 47.78, 47.8, 47.65, 47.66, 35019],
[1792416000000, 47.66, 47.69, 47.55, 47.59, 57079],
[1792416300000, 47.59, 47.72, 47.5, 47.7, 32166],
[1792416600000, 47.7, 47.84, 47.68, 47.79, 36897],
[1792416900000, 47.79, 47.95, 47.72, 47.88, 82275],
[1792417200000, 47.88, 47.9, 47.74, 47.8, 35013],
[1792417500000, 47.8, 47.85, 47.66, 47.67, 25697],
[1792417800000, 47.67, 47.8, 47.63, 47.75, 94716],
[1792418100000, 47.75, 47.88, 47.71, 47.87, 59658],
[1792418400000, 47.87, 47.98, 47.83, 47.91, 66193],
[1792418700000, 47.91, 47.93, 47.8, 47.9, 94202],
[1792419000000, 47.9, 47.94, 47.72, 47.76, 66759],
[1792419300000, 47.76, 47.77, 47.68, 47.75, 32653],
[1792419600000, 47.75, 47.78, 47.64, 47.65, 69003],
[1792419900000, 47.65, 47.81, 47.64, 47.78, 31011],
[1792420200000, 47.78, 47.82, 47.65, 47.68, 32189],
[1792420500000, 47.68, 47.84, 47.66, 47.76, 78595],
[1792420800000, 47.76, 47.79, 47.62, 47.65, 96911],
[1792421100000, 47.65, 47.67, 47.51, 47.52, 56913],
[1792421400000, 47.52, 47.61, 47.29, 47.38, 26362],
[1792421700000, 47.38, 47.41, 47.34, 47.41, 65273],
[1792422000000, 47.41, 47.44, 47.33, 47.34, 98870],
[1792422300000, 47.34, 47.38, 47.28, 47.36, 89941],
[1792422600000, 47.36, 47.49, 47.31, 47.44, 41640],
[1792422900000, 47.44, 47.47, 47.36, 47.41, 53639],
[1792423200000, 47.41, 47.49, 47.24, 47.3, 89453],
[1792423500000, 47.3, 47.32, 47.18, 47.24, 84983],
[1792423800000, 47.24, 47.25, 47.04, 47.11, 88525],
[1792424100000, 47.11, 47.2, 46.99, 47.06, 60864],
[1792424400000, 47.06, 47.12, 46.88, 46.93, 47164],
[1792424700000, 46.93, 47.07, 46.84, 47.03, 34130],
[1792425000000, 47.03, 47.06, 46.95, 47.05, 47405],
[1792425300000, 47.05, 47.09, 47.05, 47.07, 31972],
[1792425600000, 47.07, 47.1, 46.95, 46.95, 53371],
[1792425900000, 46.95, 47.1, 46.86, 47.05, 46674],
[1792426200000, 47.05, 47.19, 47.04, 47.13, 59632],
[1792426500000, 47.13, 47.14, 47.05, 47.07, 44615],
[1792426800000, 47.07, 47.15, 46.92, 47, 20612],
[1792427100000, 47, 47.13, 46.97, 47.05, 86199],
[1792427400000, 47.05, 47.13, 47.03, 47.09, 74464],
[1792427700000, 47.09, 47.18, 46.92, 47.01, 36313],
[1792428000000, 47.01, 47.01, 46.91, 46.93, 59334],
[1792428300000, 46.93, 46.99, 46.85, 46.97, 68903],
[1792428600000, 46.97, 47.14, 46.9, 47.11, 38912],
[1792428900000, 47.11, 47.19, 46.99, 47.03, 43652],
[1792429200000, 47.03, 47.12, 46.84, 46.91, 20632],
[1792429500000, 46.91, 47.07, 46.84, 46.99, 27978],
[1792429800000, 46.99, 47.01, 46.89, 46.89, 22689],
[1792430100000, 46.89, 47.04, 46.87, 47.02, 80493],
[1792430400000, 47.02, 47.18, 46.97, 47.12, 57278],
[1792430700000, 47.12, 47.2, 47.03, 47.16, 59252]
]
}
],
plotOptions: {
stock: {
rangeSelector: {
show: false
},
realtime: {
follow: true
}
}
},
theme: {
mode: "light",
preset: "coastal"
}
}
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: 460,
toolbar: {
show: false
},
type: "stock"
},
series: [
{
name: "WCC",
data: [
[1792395000000, 50, 50.12, 49.95, 50.11, 75958],
[1792395300000, 50.11, 50.12, 49.98, 50.01, 63825],
[1792395600000, 50.01, 50.05, 49.81, 49.9, 89915],
[1792395900000, 49.9, 49.93, 49.77, 49.86, 68370],
[1792396200000, 49.86, 50.07, 49.85, 50, 80288],
[1792396500000, 50, 50.17, 49.96, 50.08, 49774],
[1792396800000, 50.08, 50.17, 49.9, 49.96, 57814],
[1792397100000, 49.96, 49.98, 49.83, 49.87, 34275],
[1792397400000, 49.87, 49.94, 49.67, 49.74, 39522],
[1792397700000, 49.74, 49.76, 49.65, 49.66, 65317],
[1792398000000, 49.66, 49.74, 49.6, 49.69, 21363],
[1792398300000, 49.69, 49.7, 49.66, 49.67, 24080],
[1792398600000, 49.67, 49.74, 49.52, 49.59, 69642],
[1792398900000, 49.59, 49.65, 49.47, 49.49, 48552],
[1792399200000, 49.49, 49.51, 49.41, 49.46, 65559],
[1792399500000, 49.46, 49.52, 49.41, 49.44, 76265],
[1792399800000, 49.44, 49.52, 49.34, 49.45, 20503],
[1792400100000, 49.45, 49.49, 49.36, 49.49, 47330],
[1792400400000, 49.49, 49.59, 49.43, 49.57, 92186],
[1792400700000, 49.57, 49.65, 49.52, 49.56, 63069],
[1792401000000, 49.56, 49.63, 49.51, 49.51, 71146],
[1792401300000, 49.51, 49.55, 49.36, 49.37, 64802],
[1792401600000, 49.37, 49.44, 49.27, 49.31, 58289],
[1792401900000, 49.31, 49.41, 49.13, 49.2, 96681],
[1792402200000, 49.2, 49.27, 49.14, 49.26, 47500],
[1792402500000, 49.26, 49.27, 49.22, 49.23, 92524],
[1792402800000, 49.23, 49.27, 49.14, 49.17, 94270],
[1792403100000, 49.17, 49.23, 48.97, 49.06, 65487],
[1792403400000, 49.06, 49.09, 48.92, 48.97, 89919],
[1792403700000, 48.97, 48.99, 48.79, 48.88, 31572],
[1792404000000, 48.88, 48.93, 48.72, 48.79, 36133],
[1792404300000, 48.79, 48.8, 48.67, 48.73, 54146],
[1792404600000, 48.73, 48.78, 48.7, 48.77, 53229],
[1792404900000, 48.77, 48.92, 48.71, 48.91, 34328],
[1792405200000, 48.91, 49.01, 48.72, 48.78, 25998],
[1792405500000, 48.78, 48.85, 48.64, 48.69, 24328],
[1792405800000, 48.69, 48.72, 48.56, 48.65, 63787],
[1792406100000, 48.65, 48.7, 48.48, 48.52, 92805],
[1792406400000, 48.52, 48.62, 48.44, 48.53, 28897],
[1792406700000, 48.53, 48.57, 48.44, 48.44, 63197],
[1792407000000, 48.44, 48.48, 48.26, 48.36, 28911],
[1792407300000, 48.36, 48.45, 48.22, 48.26, 87430],
[1792407600000, 48.26, 48.34, 48.14, 48.16, 61655],
[1792407900000, 48.16, 48.24, 48.07, 48.07, 81723],
[1792408200000, 48.07, 48.07, 47.94, 47.98, 93377],
[1792408500000, 47.98, 48.02, 47.92, 48, 45673],
[1792408800000, 48, 48.12, 47.96, 48.03, 74650],
[1792409100000, 48.03, 48.11, 47.97, 47.97, 45224],
[1792409400000, 47.97, 48.04, 47.82, 47.87, 27073],
[1792409700000, 47.87, 48.01, 47.8, 47.99, 92267],
[1792410000000, 47.99, 48.01, 47.88, 47.97, 59335],
[1792410300000, 47.97, 48.07, 47.92, 48.05, 65101],
[1792410600000, 48.05, 48.06, 47.89, 47.93, 64223],
[1792410900000, 47.93, 48, 47.9, 47.97, 32105],
[1792411200000, 47.97, 48.03, 47.81, 47.88, 79558],
[1792411500000, 47.88, 47.9, 47.83, 47.85, 82636],
[1792411800000, 47.85, 47.88, 47.71, 47.73, 72938],
[1792412100000, 47.73, 47.84, 47.69, 47.8, 53069],
[1792412400000, 47.8, 47.86, 47.68, 47.76, 42575],
[1792412700000, 47.76, 47.89, 47.68, 47.8, 80249],
[1792413000000, 47.8, 47.92, 47.75, 47.83, 80862],
[1792413300000, 47.83, 47.91, 47.71, 47.76, 42591],
[1792413600000, 47.76, 47.85, 47.59, 47.64, 81253],
[1792413900000, 47.64, 47.72, 47.6, 47.65, 31865],
[1792414200000, 47.65, 47.73, 47.61, 47.69, 87047],
[1792414500000, 47.69, 47.86, 47.63, 47.78, 26776],
[1792414800000, 47.78, 47.84, 47.74, 47.78, 57717],
[1792415100000, 47.78, 47.96, 47.77, 47.91, 41963],
[1792415400000, 47.91, 47.91, 47.75, 47.78, 53463],
[1792415700000, 47.78, 47.8, 47.65, 47.66, 35019],
[1792416000000, 47.66, 47.69, 47.55, 47.59, 57079],
[1792416300000, 47.59, 47.72, 47.5, 47.7, 32166],
[1792416600000, 47.7, 47.84, 47.68, 47.79, 36897],
[1792416900000, 47.79, 47.95, 47.72, 47.88, 82275],
[1792417200000, 47.88, 47.9, 47.74, 47.8, 35013],
[1792417500000, 47.8, 47.85, 47.66, 47.67, 25697],
[1792417800000, 47.67, 47.8, 47.63, 47.75, 94716],
[1792418100000, 47.75, 47.88, 47.71, 47.87, 59658],
[1792418400000, 47.87, 47.98, 47.83, 47.91, 66193],
[1792418700000, 47.91, 47.93, 47.8, 47.9, 94202],
[1792419000000, 47.9, 47.94, 47.72, 47.76, 66759],
[1792419300000, 47.76, 47.77, 47.68, 47.75, 32653],
[1792419600000, 47.75, 47.78, 47.64, 47.65, 69003],
[1792419900000, 47.65, 47.81, 47.64, 47.78, 31011],
[1792420200000, 47.78, 47.82, 47.65, 47.68, 32189],
[1792420500000, 47.68, 47.84, 47.66, 47.76, 78595],
[1792420800000, 47.76, 47.79, 47.62, 47.65, 96911],
[1792421100000, 47.65, 47.67, 47.51, 47.52, 56913],
[1792421400000, 47.52, 47.61, 47.29, 47.38, 26362],
[1792421700000, 47.38, 47.41, 47.34, 47.41, 65273],
[1792422000000, 47.41, 47.44, 47.33, 47.34, 98870],
[1792422300000, 47.34, 47.38, 47.28, 47.36, 89941],
[1792422600000, 47.36, 47.49, 47.31, 47.44, 41640],
[1792422900000, 47.44, 47.47, 47.36, 47.41, 53639],
[1792423200000, 47.41, 47.49, 47.24, 47.3, 89453],
[1792423500000, 47.3, 47.32, 47.18, 47.24, 84983],
[1792423800000, 47.24, 47.25, 47.04, 47.11, 88525],
[1792424100000, 47.11, 47.2, 46.99, 47.06, 60864],
[1792424400000, 47.06, 47.12, 46.88, 46.93, 47164],
[1792424700000, 46.93, 47.07, 46.84, 47.03, 34130],
[1792425000000, 47.03, 47.06, 46.95, 47.05, 47405],
[1792425300000, 47.05, 47.09, 47.05, 47.07, 31972],
[1792425600000, 47.07, 47.1, 46.95, 46.95, 53371],
[1792425900000, 46.95, 47.1, 46.86, 47.05, 46674],
[1792426200000, 47.05, 47.19, 47.04, 47.13, 59632],
[1792426500000, 47.13, 47.14, 47.05, 47.07, 44615],
[1792426800000, 47.07, 47.15, 46.92, 47, 20612],
[1792427100000, 47, 47.13, 46.97, 47.05, 86199],
[1792427400000, 47.05, 47.13, 47.03, 47.09, 74464],
[1792427700000, 47.09, 47.18, 46.92, 47.01, 36313],
[1792428000000, 47.01, 47.01, 46.91, 46.93, 59334],
[1792428300000, 46.93, 46.99, 46.85, 46.97, 68903],
[1792428600000, 46.97, 47.14, 46.9, 47.11, 38912],
[1792428900000, 47.11, 47.19, 46.99, 47.03, 43652],
[1792429200000, 47.03, 47.12, 46.84, 46.91, 20632],
[1792429500000, 46.91, 47.07, 46.84, 46.99, 27978],
[1792429800000, 46.99, 47.01, 46.89, 46.89, 22689],
[1792430100000, 46.89, 47.04, 46.87, 47.02, 80493],
[1792430400000, 47.02, 47.18, 46.97, 47.12, 57278],
[1792430700000, 47.12, 47.2, 47.03, 47.16, 59252]
]
}
],
plotOptions: {
stock: {
rangeSelector: {
show: false
},
realtime: {
follow: true
}
}
},
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-streaming.json --out stock-streaming.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/streaming/index.md … This example uses Premium modules. Compare licences · Embedding in a distributed product?