Skip to content
commit-766c8d6756a1

Interactive candlestick

Open, high, low, and close movement across ordered periods, with range and direction in view.

Purpose
Inspect open, high, low, and close movement across ordered dates.
Use when
Range and direction over time matter, with a limited enough period to inspect.
Avoid when
Readers only need one measure or exact comparisons; use a line or OHLC table.
Equivalent data
The adjacent table gives exact OHLC values and text direction without color.
Exact OHLC values
CategorySeriesOpenCloseLowHighDirectionSemantic class
2018/1/24OHLC2320.262320.262287.32362.94Riserise
2018/1/25OHLC23002291.32288.262308.38Fallfall
2018/1/28OHLC2295.352346.52295.352346.92Riserise
2018/1/29OHLC2347.222358.982337.352363.8Riserise
2018/1/30OHLC2360.752382.482347.892383.76Riserise
2018/1/31OHLC2383.432385.422371.232391.82Riserise
2018/2/1OHLC2377.412419.022369.572421.15Riserise
2018/2/4OHLC2425.922428.152417.582440.38Riserise
2018/2/5OHLC24112433.132403.32437.42Riserise
2018/2/6OHLC2432.682434.482427.72441.73Riserise
2018/2/7OHLC2430.692418.532394.222433.89Fallfall
2018/2/8OHLC2416.622432.42414.42443.03Riserise
2018/2/18OHLC2441.912421.562415.432444.8Fallfall
2018/2/19OHLC2420.262382.912373.532427.07Fallfall
2018/2/20OHLC2383.492397.182370.612397.94Riserise
2018/2/21OHLC2378.822325.952309.172378.82Fallfall
2018/2/22OHLC2322.942314.162308.762330.88Fallfall
2018/2/25OHLC2320.622325.822315.012338.78Riserise
2018/2/26OHLC2313.742293.342289.892340.71Fallfall
2018/2/27OHLC2297.772313.222292.032324.63Riserise
2018/2/28OHLC2322.322365.592308.922366.16Riserise
2018/3/1OHLC2364.542359.512330.862369.65Fallfall
2018/3/4OHLC2332.082273.42259.252333.54Fallfall
2018/3/5OHLC2274.812326.312270.12328.14Riserise
2018/3/6OHLC2333.612347.182321.62351.44Riserise
2018/3/7OHLC2340.442324.292304.272352.02Fallfall
2018/3/8OHLC2326.422318.612314.592333.67Fallfall
2018/3/11OHLC2314.682310.592296.582320.96Fallfall
2018/3/12OHLC2309.162286.62264.832333.29Fallfall
2018/3/13OHLC2282.172263.972253.252286.33Fallfall
2018/3/14OHLC2255.772270.282253.312276.22Riserise
2018/3/15OHLC2269.312278.422502312.08Riserise
2018/3/18OHLC2267.292240.022239.212276.05Fallfall
2018/3/19OHLC2244.262257.432232.022261.31Riserise
2018/3/20OHLC2257.742317.372257.422317.86Riserise
2018/3/21OHLC2318.212324.242311.62330.81Riserise
2018/3/22OHLC2321.42328.282314.972332Riserise
2018/3/25OHLC2334.742326.722319.912344.89Fallfall
2018/3/26OHLC2318.582297.672281.122319.99Fallfall
2018/3/27OHLC2299.382301.2622892323.48Riserise
2018/3/28OHLC2273.552236.32232.912273.55Fallfall
2018/3/29OHLC2238.492236.622228.812246.87Fallfall
2018/4/1OHLC2229.462234.42227.312243.95Riserise
2018/4/2OHLC2234.92227.742220.442253.42Fallfall
2018/4/3OHLC2232.692225.292217.252241.34Fallfall
2018/4/8OHLC2196.242211.592180.672212.59Riserise
2018/4/9OHLC2215.472225.772215.472234.73Riserise
2018/4/10OHLC2224.932226.132212.562233.04Riserise
2018/4/11OHLC2236.982219.552217.262242.48Fallfall
2018/4/12OHLC2218.092206.782204.442226.26Fallfall
2018/4/15OHLC2199.912181.942177.392204.99Fallfall
2018/4/16OHLC2169.632194.852165.782196.43Riserise
2018/4/17OHLC2195.032193.82178.472197.51Fallfall
2018/4/18OHLC2181.822197.62175.442206.03Riserise
2018/4/19OHLC2201.122244.642200.582250.11Riserise
2018/4/22OHLC2236.42242.172232.262245.12Riserise
2018/4/23OHLC2242.622184.542182.812242.62Fallfall
2018/4/24OHLC2187.352218.322184.112226.12Riserise
2018/4/25OHLC2213.192199.312191.852224.63Fallfall
2018/4/26OHLC2203.892177.912173.862210.58Fallfall
2018/5/2OHLC2170.782174.122161.142179.65Riserise
2018/5/3OHLC2179.052205.52179.052222.81Riserise
2018/5/6OHLC2212.52231.172212.52236.07Riserise
2018/5/7OHLC2227.862235.572219.442240.26Riserise
2018/5/8OHLC2242.392246.32235.422255.21Riserise
2018/5/9OHLC2246.962232.972221.382247.86Fallfall
2018/5/10OHLC2228.822246.832225.812247.67Riserise
2018/5/13OHLC2247.682241.922231.362250.85Fallfall
2018/5/14OHLC2238.92217.012205.872239.93Fallfall
2018/5/15OHLC2217.092224.82213.582225.19Riserise
2018/5/16OHLC2221.342251.812210.772252.87Riserise
2018/5/17OHLC2249.812282.872248.412288.09Riserise
2018/5/20OHLC2286.332299.992281.92309.39Riserise
2018/5/21OHLC2297.112305.112290.122305.3Riserise
2018/5/22OHLC2303.752302.42292.432314.18Fallfall
2018/5/23OHLC2293.812275.672274.12304.95Fallfall
2018/5/24OHLC2281.452288.532270.252292.59Riserise
2018/5/27OHLC2286.662293.082283.942301.7Riserise
2018/5/28OHLC2293.42321.322281.472322.1Riserise
2018/5/29OHLC2323.542324.022321.172334.33Riserise
2018/5/30OHLC2316.252317.752310.492325.72Riserise
2018/5/31OHLC2320.742300.592299.372325.53Fallfall
2018/6/3OHLC2300.212299.252294.112313.43Fallfall
2018/6/4OHLC2297.12272.422264.762297.1Fallfall
2018/6/5OHLC2270.712270.932260.872276.86Riserise
2018/6/6OHLC2264.432242.112240.072266.69Fallfall
2018/6/7OHLC2242.262210.92205.072250.63Fallfall
2018/6/13OHLC2190.12148.352126.222190.1Fallfall
Usage Example
@interactivecandlestick.Candlestick(interactivecandlestick.Config{
  Label: "Candlestick example",
  Categories: tradingDates,
  Series: []interactivecandlestick.Series{{
    Name: "OHLC",
    Data: []interactivecandlestick.Candle{
      {Open: 2320.26, Close: 2320.26, Low: 2287.3, High: 2362.94},
      // Remaining observations stay aligned with Categories.
    },
  }},
  DataZoom: []interactivecandlestick.DataZoom{
    {StartPercent: 50, EndPercent: 100},
  },
})

Inside zoom

Inside gestures explore a bounded date window without adding a visible slider.

Exact OHLC values
CategorySeriesOpenCloseLowHighDirectionSemantic class
2018/1/24OHLC2320.262320.262287.32362.94Riserise
2018/1/25OHLC23002291.32288.262308.38Fallfall
2018/1/28OHLC2295.352346.52295.352346.92Riserise
2018/1/29OHLC2347.222358.982337.352363.8Riserise
2018/1/30OHLC2360.752382.482347.892383.76Riserise
2018/1/31OHLC2383.432385.422371.232391.82Riserise
2018/2/1OHLC2377.412419.022369.572421.15Riserise
2018/2/4OHLC2425.922428.152417.582440.38Riserise
2018/2/5OHLC24112433.132403.32437.42Riserise
2018/2/6OHLC2432.682434.482427.72441.73Riserise
2018/2/7OHLC2430.692418.532394.222433.89Fallfall
2018/2/8OHLC2416.622432.42414.42443.03Riserise
2018/2/18OHLC2441.912421.562415.432444.8Fallfall
2018/2/19OHLC2420.262382.912373.532427.07Fallfall
2018/2/20OHLC2383.492397.182370.612397.94Riserise
2018/2/21OHLC2378.822325.952309.172378.82Fallfall
2018/2/22OHLC2322.942314.162308.762330.88Fallfall
2018/2/25OHLC2320.622325.822315.012338.78Riserise
2018/2/26OHLC2313.742293.342289.892340.71Fallfall
2018/2/27OHLC2297.772313.222292.032324.63Riserise
2018/2/28OHLC2322.322365.592308.922366.16Riserise
2018/3/1OHLC2364.542359.512330.862369.65Fallfall
2018/3/4OHLC2332.082273.42259.252333.54Fallfall
2018/3/5OHLC2274.812326.312270.12328.14Riserise
2018/3/6OHLC2333.612347.182321.62351.44Riserise
2018/3/7OHLC2340.442324.292304.272352.02Fallfall
2018/3/8OHLC2326.422318.612314.592333.67Fallfall
2018/3/11OHLC2314.682310.592296.582320.96Fallfall
2018/3/12OHLC2309.162286.62264.832333.29Fallfall
2018/3/13OHLC2282.172263.972253.252286.33Fallfall
2018/3/14OHLC2255.772270.282253.312276.22Riserise
2018/3/15OHLC2269.312278.422502312.08Riserise
2018/3/18OHLC2267.292240.022239.212276.05Fallfall
2018/3/19OHLC2244.262257.432232.022261.31Riserise
2018/3/20OHLC2257.742317.372257.422317.86Riserise
2018/3/21OHLC2318.212324.242311.62330.81Riserise
2018/3/22OHLC2321.42328.282314.972332Riserise
2018/3/25OHLC2334.742326.722319.912344.89Fallfall
2018/3/26OHLC2318.582297.672281.122319.99Fallfall
2018/3/27OHLC2299.382301.2622892323.48Riserise
2018/3/28OHLC2273.552236.32232.912273.55Fallfall
2018/3/29OHLC2238.492236.622228.812246.87Fallfall
2018/4/1OHLC2229.462234.42227.312243.95Riserise
2018/4/2OHLC2234.92227.742220.442253.42Fallfall
2018/4/3OHLC2232.692225.292217.252241.34Fallfall
2018/4/8OHLC2196.242211.592180.672212.59Riserise
2018/4/9OHLC2215.472225.772215.472234.73Riserise
2018/4/10OHLC2224.932226.132212.562233.04Riserise
2018/4/11OHLC2236.982219.552217.262242.48Fallfall
2018/4/12OHLC2218.092206.782204.442226.26Fallfall
2018/4/15OHLC2199.912181.942177.392204.99Fallfall
2018/4/16OHLC2169.632194.852165.782196.43Riserise
2018/4/17OHLC2195.032193.82178.472197.51Fallfall
2018/4/18OHLC2181.822197.62175.442206.03Riserise
2018/4/19OHLC2201.122244.642200.582250.11Riserise
2018/4/22OHLC2236.42242.172232.262245.12Riserise
2018/4/23OHLC2242.622184.542182.812242.62Fallfall
2018/4/24OHLC2187.352218.322184.112226.12Riserise
2018/4/25OHLC2213.192199.312191.852224.63Fallfall
2018/4/26OHLC2203.892177.912173.862210.58Fallfall
2018/5/2OHLC2170.782174.122161.142179.65Riserise
2018/5/3OHLC2179.052205.52179.052222.81Riserise
2018/5/6OHLC2212.52231.172212.52236.07Riserise
2018/5/7OHLC2227.862235.572219.442240.26Riserise
2018/5/8OHLC2242.392246.32235.422255.21Riserise
2018/5/9OHLC2246.962232.972221.382247.86Fallfall
2018/5/10OHLC2228.822246.832225.812247.67Riserise
2018/5/13OHLC2247.682241.922231.362250.85Fallfall
2018/5/14OHLC2238.92217.012205.872239.93Fallfall
2018/5/15OHLC2217.092224.82213.582225.19Riserise
2018/5/16OHLC2221.342251.812210.772252.87Riserise
2018/5/17OHLC2249.812282.872248.412288.09Riserise
2018/5/20OHLC2286.332299.992281.92309.39Riserise
2018/5/21OHLC2297.112305.112290.122305.3Riserise
2018/5/22OHLC2303.752302.42292.432314.18Fallfall
2018/5/23OHLC2293.812275.672274.12304.95Fallfall
2018/5/24OHLC2281.452288.532270.252292.59Riserise
2018/5/27OHLC2286.662293.082283.942301.7Riserise
2018/5/28OHLC2293.42321.322281.472322.1Riserise
2018/5/29OHLC2323.542324.022321.172334.33Riserise
2018/5/30OHLC2316.252317.752310.492325.72Riserise
2018/5/31OHLC2320.742300.592299.372325.53Fallfall
2018/6/3OHLC2300.212299.252294.112313.43Fallfall
2018/6/4OHLC2297.12272.422264.762297.1Fallfall
2018/6/5OHLC2270.712270.932260.872276.86Riserise
2018/6/6OHLC2264.432242.112240.072266.69Fallfall
2018/6/7OHLC2242.262210.92205.072250.63Fallfall
2018/6/13OHLC2190.12148.352126.222190.1Fallfall
Inside zoom
cfg.DataZoom = []interactivecandlestick.DataZoom{{
  Type: interactivecandlestick.DataZoomInside,
  StartPercent: 50, EndPercent: 100,
}}
@interactivecandlestick.Candlestick(cfg)

Inside and slider zoom

Inside gestures and a visible slider control the same bounded date window.

Exact OHLC values
CategorySeriesOpenCloseLowHighDirectionSemantic class
2018/1/24OHLC2320.262320.262287.32362.94Riserise
2018/1/25OHLC23002291.32288.262308.38Fallfall
2018/1/28OHLC2295.352346.52295.352346.92Riserise
2018/1/29OHLC2347.222358.982337.352363.8Riserise
2018/1/30OHLC2360.752382.482347.892383.76Riserise
2018/1/31OHLC2383.432385.422371.232391.82Riserise
2018/2/1OHLC2377.412419.022369.572421.15Riserise
2018/2/4OHLC2425.922428.152417.582440.38Riserise
2018/2/5OHLC24112433.132403.32437.42Riserise
2018/2/6OHLC2432.682434.482427.72441.73Riserise
2018/2/7OHLC2430.692418.532394.222433.89Fallfall
2018/2/8OHLC2416.622432.42414.42443.03Riserise
2018/2/18OHLC2441.912421.562415.432444.8Fallfall
2018/2/19OHLC2420.262382.912373.532427.07Fallfall
2018/2/20OHLC2383.492397.182370.612397.94Riserise
2018/2/21OHLC2378.822325.952309.172378.82Fallfall
2018/2/22OHLC2322.942314.162308.762330.88Fallfall
2018/2/25OHLC2320.622325.822315.012338.78Riserise
2018/2/26OHLC2313.742293.342289.892340.71Fallfall
2018/2/27OHLC2297.772313.222292.032324.63Riserise
2018/2/28OHLC2322.322365.592308.922366.16Riserise
2018/3/1OHLC2364.542359.512330.862369.65Fallfall
2018/3/4OHLC2332.082273.42259.252333.54Fallfall
2018/3/5OHLC2274.812326.312270.12328.14Riserise
2018/3/6OHLC2333.612347.182321.62351.44Riserise
2018/3/7OHLC2340.442324.292304.272352.02Fallfall
2018/3/8OHLC2326.422318.612314.592333.67Fallfall
2018/3/11OHLC2314.682310.592296.582320.96Fallfall
2018/3/12OHLC2309.162286.62264.832333.29Fallfall
2018/3/13OHLC2282.172263.972253.252286.33Fallfall
2018/3/14OHLC2255.772270.282253.312276.22Riserise
2018/3/15OHLC2269.312278.422502312.08Riserise
2018/3/18OHLC2267.292240.022239.212276.05Fallfall
2018/3/19OHLC2244.262257.432232.022261.31Riserise
2018/3/20OHLC2257.742317.372257.422317.86Riserise
2018/3/21OHLC2318.212324.242311.62330.81Riserise
2018/3/22OHLC2321.42328.282314.972332Riserise
2018/3/25OHLC2334.742326.722319.912344.89Fallfall
2018/3/26OHLC2318.582297.672281.122319.99Fallfall
2018/3/27OHLC2299.382301.2622892323.48Riserise
2018/3/28OHLC2273.552236.32232.912273.55Fallfall
2018/3/29OHLC2238.492236.622228.812246.87Fallfall
2018/4/1OHLC2229.462234.42227.312243.95Riserise
2018/4/2OHLC2234.92227.742220.442253.42Fallfall
2018/4/3OHLC2232.692225.292217.252241.34Fallfall
2018/4/8OHLC2196.242211.592180.672212.59Riserise
2018/4/9OHLC2215.472225.772215.472234.73Riserise
2018/4/10OHLC2224.932226.132212.562233.04Riserise
2018/4/11OHLC2236.982219.552217.262242.48Fallfall
2018/4/12OHLC2218.092206.782204.442226.26Fallfall
2018/4/15OHLC2199.912181.942177.392204.99Fallfall
2018/4/16OHLC2169.632194.852165.782196.43Riserise
2018/4/17OHLC2195.032193.82178.472197.51Fallfall
2018/4/18OHLC2181.822197.62175.442206.03Riserise
2018/4/19OHLC2201.122244.642200.582250.11Riserise
2018/4/22OHLC2236.42242.172232.262245.12Riserise
2018/4/23OHLC2242.622184.542182.812242.62Fallfall
2018/4/24OHLC2187.352218.322184.112226.12Riserise
2018/4/25OHLC2213.192199.312191.852224.63Fallfall
2018/4/26OHLC2203.892177.912173.862210.58Fallfall
2018/5/2OHLC2170.782174.122161.142179.65Riserise
2018/5/3OHLC2179.052205.52179.052222.81Riserise
2018/5/6OHLC2212.52231.172212.52236.07Riserise
2018/5/7OHLC2227.862235.572219.442240.26Riserise
2018/5/8OHLC2242.392246.32235.422255.21Riserise
2018/5/9OHLC2246.962232.972221.382247.86Fallfall
2018/5/10OHLC2228.822246.832225.812247.67Riserise
2018/5/13OHLC2247.682241.922231.362250.85Fallfall
2018/5/14OHLC2238.92217.012205.872239.93Fallfall
2018/5/15OHLC2217.092224.82213.582225.19Riserise
2018/5/16OHLC2221.342251.812210.772252.87Riserise
2018/5/17OHLC2249.812282.872248.412288.09Riserise
2018/5/20OHLC2286.332299.992281.92309.39Riserise
2018/5/21OHLC2297.112305.112290.122305.3Riserise
2018/5/22OHLC2303.752302.42292.432314.18Fallfall
2018/5/23OHLC2293.812275.672274.12304.95Fallfall
2018/5/24OHLC2281.452288.532270.252292.59Riserise
2018/5/27OHLC2286.662293.082283.942301.7Riserise
2018/5/28OHLC2293.42321.322281.472322.1Riserise
2018/5/29OHLC2323.542324.022321.172334.33Riserise
2018/5/30OHLC2316.252317.752310.492325.72Riserise
2018/5/31OHLC2320.742300.592299.372325.53Fallfall
2018/6/3OHLC2300.212299.252294.112313.43Fallfall
2018/6/4OHLC2297.12272.422264.762297.1Fallfall
2018/6/5OHLC2270.712270.932260.872276.86Riserise
2018/6/6OHLC2264.432242.112240.072266.69Fallfall
2018/6/7OHLC2242.262210.92205.072250.63Fallfall
2018/6/13OHLC2190.12148.352126.222190.1Fallfall
Inside and slider zoom
cfg.DataZoom = []interactivecandlestick.DataZoom{
  {Type: interactivecandlestick.DataZoomInside, StartPercent: 50, EndPercent: 100},
  {StartPercent: 50, EndPercent: 100},
}
@interactivecandlestick.Candlestick(cfg)

Y-axis slider zoom

A vertical slider narrows the visible value range while preserving the ordered dates.

Exact OHLC values
CategorySeriesOpenCloseLowHighDirectionSemantic class
2018/1/24OHLC2320.262320.262287.32362.94Riserise
2018/1/25OHLC23002291.32288.262308.38Fallfall
2018/1/28OHLC2295.352346.52295.352346.92Riserise
2018/1/29OHLC2347.222358.982337.352363.8Riserise
2018/1/30OHLC2360.752382.482347.892383.76Riserise
2018/1/31OHLC2383.432385.422371.232391.82Riserise
2018/2/1OHLC2377.412419.022369.572421.15Riserise
2018/2/4OHLC2425.922428.152417.582440.38Riserise
2018/2/5OHLC24112433.132403.32437.42Riserise
2018/2/6OHLC2432.682434.482427.72441.73Riserise
2018/2/7OHLC2430.692418.532394.222433.89Fallfall
2018/2/8OHLC2416.622432.42414.42443.03Riserise
2018/2/18OHLC2441.912421.562415.432444.8Fallfall
2018/2/19OHLC2420.262382.912373.532427.07Fallfall
2018/2/20OHLC2383.492397.182370.612397.94Riserise
2018/2/21OHLC2378.822325.952309.172378.82Fallfall
2018/2/22OHLC2322.942314.162308.762330.88Fallfall
2018/2/25OHLC2320.622325.822315.012338.78Riserise
2018/2/26OHLC2313.742293.342289.892340.71Fallfall
2018/2/27OHLC2297.772313.222292.032324.63Riserise
2018/2/28OHLC2322.322365.592308.922366.16Riserise
2018/3/1OHLC2364.542359.512330.862369.65Fallfall
2018/3/4OHLC2332.082273.42259.252333.54Fallfall
2018/3/5OHLC2274.812326.312270.12328.14Riserise
2018/3/6OHLC2333.612347.182321.62351.44Riserise
2018/3/7OHLC2340.442324.292304.272352.02Fallfall
2018/3/8OHLC2326.422318.612314.592333.67Fallfall
2018/3/11OHLC2314.682310.592296.582320.96Fallfall
2018/3/12OHLC2309.162286.62264.832333.29Fallfall
2018/3/13OHLC2282.172263.972253.252286.33Fallfall
2018/3/14OHLC2255.772270.282253.312276.22Riserise
2018/3/15OHLC2269.312278.422502312.08Riserise
2018/3/18OHLC2267.292240.022239.212276.05Fallfall
2018/3/19OHLC2244.262257.432232.022261.31Riserise
2018/3/20OHLC2257.742317.372257.422317.86Riserise
2018/3/21OHLC2318.212324.242311.62330.81Riserise
2018/3/22OHLC2321.42328.282314.972332Riserise
2018/3/25OHLC2334.742326.722319.912344.89Fallfall
2018/3/26OHLC2318.582297.672281.122319.99Fallfall
2018/3/27OHLC2299.382301.2622892323.48Riserise
2018/3/28OHLC2273.552236.32232.912273.55Fallfall
2018/3/29OHLC2238.492236.622228.812246.87Fallfall
2018/4/1OHLC2229.462234.42227.312243.95Riserise
2018/4/2OHLC2234.92227.742220.442253.42Fallfall
2018/4/3OHLC2232.692225.292217.252241.34Fallfall
2018/4/8OHLC2196.242211.592180.672212.59Riserise
2018/4/9OHLC2215.472225.772215.472234.73Riserise
2018/4/10OHLC2224.932226.132212.562233.04Riserise
2018/4/11OHLC2236.982219.552217.262242.48Fallfall
2018/4/12OHLC2218.092206.782204.442226.26Fallfall
2018/4/15OHLC2199.912181.942177.392204.99Fallfall
2018/4/16OHLC2169.632194.852165.782196.43Riserise
2018/4/17OHLC2195.032193.82178.472197.51Fallfall
2018/4/18OHLC2181.822197.62175.442206.03Riserise
2018/4/19OHLC2201.122244.642200.582250.11Riserise
2018/4/22OHLC2236.42242.172232.262245.12Riserise
2018/4/23OHLC2242.622184.542182.812242.62Fallfall
2018/4/24OHLC2187.352218.322184.112226.12Riserise
2018/4/25OHLC2213.192199.312191.852224.63Fallfall
2018/4/26OHLC2203.892177.912173.862210.58Fallfall
2018/5/2OHLC2170.782174.122161.142179.65Riserise
2018/5/3OHLC2179.052205.52179.052222.81Riserise
2018/5/6OHLC2212.52231.172212.52236.07Riserise
2018/5/7OHLC2227.862235.572219.442240.26Riserise
2018/5/8OHLC2242.392246.32235.422255.21Riserise
2018/5/9OHLC2246.962232.972221.382247.86Fallfall
2018/5/10OHLC2228.822246.832225.812247.67Riserise
2018/5/13OHLC2247.682241.922231.362250.85Fallfall
2018/5/14OHLC2238.92217.012205.872239.93Fallfall
2018/5/15OHLC2217.092224.82213.582225.19Riserise
2018/5/16OHLC2221.342251.812210.772252.87Riserise
2018/5/17OHLC2249.812282.872248.412288.09Riserise
2018/5/20OHLC2286.332299.992281.92309.39Riserise
2018/5/21OHLC2297.112305.112290.122305.3Riserise
2018/5/22OHLC2303.752302.42292.432314.18Fallfall
2018/5/23OHLC2293.812275.672274.12304.95Fallfall
2018/5/24OHLC2281.452288.532270.252292.59Riserise
2018/5/27OHLC2286.662293.082283.942301.7Riserise
2018/5/28OHLC2293.42321.322281.472322.1Riserise
2018/5/29OHLC2323.542324.022321.172334.33Riserise
2018/5/30OHLC2316.252317.752310.492325.72Riserise
2018/5/31OHLC2320.742300.592299.372325.53Fallfall
2018/6/3OHLC2300.212299.252294.112313.43Fallfall
2018/6/4OHLC2297.12272.422264.762297.1Fallfall
2018/6/5OHLC2270.712270.932260.872276.86Riserise
2018/6/6OHLC2264.432242.112240.072266.69Fallfall
2018/6/7OHLC2242.262210.92205.072250.63Fallfall
2018/6/13OHLC2190.12148.352126.222190.1Fallfall
Y-axis slider zoom
cfg.DataZoom = []interactivecandlestick.DataZoom{{
  Axis: interactivecandlestick.DataZoomYAxis,
  StartPercent: 50, EndPercent: 100,
}}
@interactivecandlestick.Candlestick(cfg)

Direction style and extrema

Theme-token classes distinguish rising and falling periods; highest and lowest marks add range references while the exact-value table preserves meaning without color alone.

Exact OHLC values
CategorySeriesOpenCloseLowHighDirectionSemantic class
2018/1/24OHLC2320.262320.262287.32362.94Risegoshtoso-charts-candlestick__direction--decreasing
2018/1/25OHLC23002291.32288.262308.38Fallgoshtoso-charts-candlestick__direction--increasing
2018/1/28OHLC2295.352346.52295.352346.92Risegoshtoso-charts-candlestick__direction--decreasing
2018/1/29OHLC2347.222358.982337.352363.8Risegoshtoso-charts-candlestick__direction--decreasing
2018/1/30OHLC2360.752382.482347.892383.76Risegoshtoso-charts-candlestick__direction--decreasing
2018/1/31OHLC2383.432385.422371.232391.82Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/1OHLC2377.412419.022369.572421.15Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/4OHLC2425.922428.152417.582440.38Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/5OHLC24112433.132403.32437.42Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/6OHLC2432.682434.482427.72441.73Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/7OHLC2430.692418.532394.222433.89Fallgoshtoso-charts-candlestick__direction--increasing
2018/2/8OHLC2416.622432.42414.42443.03Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/18OHLC2441.912421.562415.432444.8Fallgoshtoso-charts-candlestick__direction--increasing
2018/2/19OHLC2420.262382.912373.532427.07Fallgoshtoso-charts-candlestick__direction--increasing
2018/2/20OHLC2383.492397.182370.612397.94Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/21OHLC2378.822325.952309.172378.82Fallgoshtoso-charts-candlestick__direction--increasing
2018/2/22OHLC2322.942314.162308.762330.88Fallgoshtoso-charts-candlestick__direction--increasing
2018/2/25OHLC2320.622325.822315.012338.78Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/26OHLC2313.742293.342289.892340.71Fallgoshtoso-charts-candlestick__direction--increasing
2018/2/27OHLC2297.772313.222292.032324.63Risegoshtoso-charts-candlestick__direction--decreasing
2018/2/28OHLC2322.322365.592308.922366.16Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/1OHLC2364.542359.512330.862369.65Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/4OHLC2332.082273.42259.252333.54Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/5OHLC2274.812326.312270.12328.14Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/6OHLC2333.612347.182321.62351.44Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/7OHLC2340.442324.292304.272352.02Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/8OHLC2326.422318.612314.592333.67Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/11OHLC2314.682310.592296.582320.96Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/12OHLC2309.162286.62264.832333.29Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/13OHLC2282.172263.972253.252286.33Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/14OHLC2255.772270.282253.312276.22Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/15OHLC2269.312278.422502312.08Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/18OHLC2267.292240.022239.212276.05Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/19OHLC2244.262257.432232.022261.31Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/20OHLC2257.742317.372257.422317.86Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/21OHLC2318.212324.242311.62330.81Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/22OHLC2321.42328.282314.972332Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/25OHLC2334.742326.722319.912344.89Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/26OHLC2318.582297.672281.122319.99Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/27OHLC2299.382301.2622892323.48Risegoshtoso-charts-candlestick__direction--decreasing
2018/3/28OHLC2273.552236.32232.912273.55Fallgoshtoso-charts-candlestick__direction--increasing
2018/3/29OHLC2238.492236.622228.812246.87Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/1OHLC2229.462234.42227.312243.95Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/2OHLC2234.92227.742220.442253.42Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/3OHLC2232.692225.292217.252241.34Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/8OHLC2196.242211.592180.672212.59Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/9OHLC2215.472225.772215.472234.73Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/10OHLC2224.932226.132212.562233.04Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/11OHLC2236.982219.552217.262242.48Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/12OHLC2218.092206.782204.442226.26Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/15OHLC2199.912181.942177.392204.99Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/16OHLC2169.632194.852165.782196.43Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/17OHLC2195.032193.82178.472197.51Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/18OHLC2181.822197.62175.442206.03Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/19OHLC2201.122244.642200.582250.11Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/22OHLC2236.42242.172232.262245.12Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/23OHLC2242.622184.542182.812242.62Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/24OHLC2187.352218.322184.112226.12Risegoshtoso-charts-candlestick__direction--decreasing
2018/4/25OHLC2213.192199.312191.852224.63Fallgoshtoso-charts-candlestick__direction--increasing
2018/4/26OHLC2203.892177.912173.862210.58Fallgoshtoso-charts-candlestick__direction--increasing
2018/5/2OHLC2170.782174.122161.142179.65Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/3OHLC2179.052205.52179.052222.81Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/6OHLC2212.52231.172212.52236.07Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/7OHLC2227.862235.572219.442240.26Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/8OHLC2242.392246.32235.422255.21Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/9OHLC2246.962232.972221.382247.86Fallgoshtoso-charts-candlestick__direction--increasing
2018/5/10OHLC2228.822246.832225.812247.67Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/13OHLC2247.682241.922231.362250.85Fallgoshtoso-charts-candlestick__direction--increasing
2018/5/14OHLC2238.92217.012205.872239.93Fallgoshtoso-charts-candlestick__direction--increasing
2018/5/15OHLC2217.092224.82213.582225.19Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/16OHLC2221.342251.812210.772252.87Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/17OHLC2249.812282.872248.412288.09Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/20OHLC2286.332299.992281.92309.39Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/21OHLC2297.112305.112290.122305.3Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/22OHLC2303.752302.42292.432314.18Fallgoshtoso-charts-candlestick__direction--increasing
2018/5/23OHLC2293.812275.672274.12304.95Fallgoshtoso-charts-candlestick__direction--increasing
2018/5/24OHLC2281.452288.532270.252292.59Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/27OHLC2286.662293.082283.942301.7Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/28OHLC2293.42321.322281.472322.1Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/29OHLC2323.542324.022321.172334.33Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/30OHLC2316.252317.752310.492325.72Risegoshtoso-charts-candlestick__direction--decreasing
2018/5/31OHLC2320.742300.592299.372325.53Fallgoshtoso-charts-candlestick__direction--increasing
2018/6/3OHLC2300.212299.252294.112313.43Fallgoshtoso-charts-candlestick__direction--increasing
2018/6/4OHLC2297.12272.422264.762297.1Fallgoshtoso-charts-candlestick__direction--increasing
2018/6/5OHLC2270.712270.932260.872276.86Risegoshtoso-charts-candlestick__direction--decreasing
2018/6/6OHLC2264.432242.112240.072266.69Fallgoshtoso-charts-candlestick__direction--increasing
2018/6/7OHLC2242.262210.92205.072250.63Fallgoshtoso-charts-candlestick__direction--increasing
2018/6/13OHLC2190.12148.352126.222190.1Fallgoshtoso-charts-candlestick__direction--increasing
Direction style and extrema
cfg.Series[0].Options.Rise = interactivecandlestick.DirectionStyle{
  Class: "goshtoso-charts-candlestick__direction--decreasing",
}
cfg.Series[0].Options.Fall = interactivecandlestick.DirectionStyle{
  Class: "goshtoso-charts-candlestick__direction--increasing",
}
cfg.Series[0].Options.Marks = interactivecandlestick.MarkOptions{
  Highest: true, Lowest: true, ShowLabel: chart.Bool(true),
}
@interactivecandlestick.Candlestick(cfg)

Ranges and zoom

Each candle has a low, open, close, and high value. Zoom supports exploration; the table remains source for exact values.

Go API

v0.0.1

The examples above cover behavior and composition. pkg.go.dev is the canonical reference for exported types, functions, methods, and Go documentation.

github.com/araihu/goshtoso-charts/components/interactive/candlestick

Enabled, disabled, hidden, and omitted wrapper behavior, controls, export, and client transitions are shared by every chart. Review chart controls, then compare static/vector and interactive capabilities.

Open v0.0.1 API