diff --git a/packages/f2/src/components/zoom/index.tsx b/packages/f2/src/components/zoom/index.tsx
index 5d62a8bd5..cff386a50 100644
--- a/packages/f2/src/components/zoom/index.tsx
+++ b/packages/f2/src/components/zoom/index.tsx
@@ -220,6 +220,7 @@ export default (View) => {
didUnmount(): void {
this._cancelAnimationFrame();
+ this._unBindEvents();
}
_requestAnimationFrame(calllback: Function) {
@@ -236,50 +237,103 @@ export default (View) => {
}
}
- _bindEvents() {
+ onPanStart = () => {
const { scale } = this;
const {
- chart,
- onPinchStart,
onPanStart,
+ } = this.props;
+ this.onStart();
+ onPanStart?.({ scale });
+ }
+
+ onPan = (ev) => {
+ const {
+ onPan,
+ } = this.props;
+ const { dims } = this;
+
+ const range = {};
+ each(dims, (dim) => {
+ if (dim === 'x') {
+ range['x'] = this._doXPan(ev);
+ return;
+ }
+ if (dim === 'y') {
+ range['y'] = this._doYPan(ev);
+ return;
+ }
+ });
+
+ this.renderRange(range);
+ onPan?.(ev);
+ };
+
+
+ onPanEnd = () => {
+ const { scale } = this;
+ const {
onPanEnd,
+ } = this.props;
+ this.onEnd();
+ onPanEnd?.({ scale });
+ }
+
+ onPinchStart = () => {
+ const {
+ onPinchStart,
+ } = this.props;
+ this.onStart();
+ onPinchStart?.();
+ }
+
+ onPinch = (ev) => {
+ const {
+ onPinch,
+ } = this.props;
+ const { dims } = this;
+ const range = {};
+ each(dims, (dim) => {
+ if (dim === 'x') {
+ range['x'] = this._doXPinch(ev);
+ return;
+ }
+ if (dim === 'y') {
+ range['y'] = this._doYPinch(ev);
+ return;
+ }
+ });
+ this.renderRange(range);
+ onPinch?.(ev);
+ };
+
+ onPinchEnd = () => {
+ const { scale } = this;
+ const {
+ onPinchEnd,
+ } = this.props;
+ this.onEnd();
+ onPinchEnd?.({ scale });
+ }
+
+ _bindEvents() {
+ const {
+ chart,
pan,
pinch,
swipe,
- onPan,
- onPinch,
- onPinchEnd,
} = this.props;
// 统一绑定事件
if (pan !== false) {
- chart.on('panstart', () => {
- this.onStart();
- onPanStart({ scale });
- });
- chart.on('pan', (ev) => {
- this.onPan(ev);
- onPan(ev);
- });
- chart.on('panend', () => {
- this.onEnd();
- onPanEnd({ scale });
- });
+ chart.on('panstart', this.onPanStart);
+ chart.on('pan', this.onPan);
+ chart.on('panend', this.onPanEnd);
}
if (pinch !== false) {
- chart.on('pinchstart', () => {
- this.onStart();
- onPinchStart();
- });
- chart.on('pinch', (ev) => {
- this.onPinch(ev);
- onPinch(ev);
- });
- chart.on('pinchend', () => {
- this.onEnd();
- onPinchEnd({ scale });
- });
+ chart.on('pinch', this.onPinch);
+ chart.on('pinchstart', this.onPinchStart);
+ chart.on('pinchend', this.onPinchEnd);
}
if (swipe !== false) {
@@ -287,6 +341,32 @@ export default (View) => {
}
}
+ _unBindEvents() {
+ const {
+ chart,
+ pan,
+ pinch,
+ swipe,
+ } = this.props;
+
+ // 统一绑定事件
+ if (pan !== false) {
+ chart.off('panstart', this.onPanStart);
+ chart.off('pan', this.onPan);
+ chart.off('panend', this.onPanEnd);
+ }
+
+ if (pinch !== false) {
+ chart.off('pinch', this.onPinch);
+ chart.off('pinchstart', this.onPinchStart);
+ chart.off('pinchend', this.onPinchEnd);
+ }
+
+ if (swipe !== false) {
+ chart.off('swipe', this.onSwipe);
+ }
+ }
+
onStart = () => {
const { state } = this;
const { range } = state;
@@ -294,24 +374,7 @@ export default (View) => {
this._cancelAnimationFrame();
};
- onPan = (ev) => {
- const { dims } = this;
-
- const range = {};
- each(dims, (dim) => {
- if (dim === 'x') {
- range['x'] = this._doXPan(ev);
- return;
- }
- if (dim === 'y') {
- range['y'] = this._doYPan(ev);
- return;
- }
- });
-
- this.renderRange(range);
- };
-
+
update() {
const { startX, startY, endX, endY } = this.swipeEnd;
const x = lerp(startX, endX, 0.05);
@@ -420,22 +483,7 @@ export default (View) => {
this.update();
};
- onPinch = (ev) => {
- const { dims } = this;
- const range = {};
- each(dims, (dim) => {
- if (dim === 'x') {
- range['x'] = this._doXPinch(ev);
- return;
- }
- if (dim === 'y') {
- range['y'] = this._doYPinch(ev);
- return;
- }
- });
- this.renderRange(range);
- };
-
+
onEnd = () => {
this.startRange = null;
};
diff --git a/packages/f2/test/components/candlestick/__image_snapshots__/remove-scrollbar-test-tsx-candlestick-change-data-1-snap.png b/packages/f2/test/components/candlestick/__image_snapshots__/remove-scrollbar-test-tsx-candlestick-change-data-1-snap.png
new file mode 100644
index 000000000..40d165981
Binary files /dev/null and b/packages/f2/test/components/candlestick/__image_snapshots__/remove-scrollbar-test-tsx-candlestick-change-data-1-snap.png differ
diff --git a/packages/f2/test/components/candlestick/removeScrollbar.test.tsx b/packages/f2/test/components/candlestick/removeScrollbar.test.tsx
new file mode 100644
index 000000000..2f76ca766
--- /dev/null
+++ b/packages/f2/test/components/candlestick/removeScrollbar.test.tsx
@@ -0,0 +1,2310 @@
+import { jsx } from '../../../src';
+import { Canvas, Chart, Candlestick, Axis, Tooltip, ScrollBar } from '../../../src';
+import { createContext, delay, gestureSimulator } from '../../util';
+const context = createContext();
+
+const data = [
+ {
+ value: [1715, 1685.01, 1678.1, 1718.19],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2024-01-02',
+ },
+ {
+ value: [1671, 1726, 1657.5, 1749.58],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-12-29',
+ },
+ {
+ value: [1620.894, 1670.65, 1615.894, 1679.1],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-12-22',
+ },
+ {
+ value: [1670.894, 1625.894, 1615.914, 1690.884],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-12-15',
+ },
+ {
+ value: [1741.174, 1685.814, 1668.194, 1742.724],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-12-08',
+ },
+ {
+ value: [1754.194, 1741.174, 1728.894, 1775.654],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-12-01',
+ },
+ {
+ value: [1735.894, 1757.894, 1717.554, 1778.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-11-24',
+ },
+ {
+ value: [1753.174, 1734.314, 1718.794, 1765.7740000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-11-17',
+ },
+ {
+ value: [1800.894, 1756.734, 1753.994, 1804.684],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-11-10',
+ },
+ {
+ value: [1649.894, 1792.134, 1648.744, 1830.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-11-03',
+ },
+ {
+ value: [1610.864, 1657.604, 1602.104, 1678.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-10-27',
+ },
+ {
+ value: [1731.874, 1625.894, 1597.144, 1736.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-10-20',
+ },
+ {
+ value: [1777.834, 1731.894, 1719.084, 1779.874],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-10-13',
+ },
+ {
+ value: [1828.394, 1779.444, 1778.694, 1828.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-09-28',
+ },
+ {
+ value: [1757.204, 1829.894, 1753.894, 1830.854],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-09-22',
+ },
+ {
+ value: [1788.894, 1762.884, 1762.194, 1820.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-09-15',
+ },
+ {
+ value: [1843.494, 1799.394, 1795.844, 1860.834],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-09-08',
+ },
+ {
+ value: [1879.474, 1831.944, 1808.894, 1879.474],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-09-01',
+ },
+ {
+ value: [1773.894, 1805.874, 1750.974, 1818.664],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-08-25',
+ },
+ {
+ value: [1790.894, 1783.484, 1776.894, 1815.884],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-08-18',
+ },
+ {
+ value: [1861.844, 1814.894, 1814.7740000000001, 1885.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-08-11',
+ },
+ {
+ value: [1888.894, 1874.364, 1831.394, 1915.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-08-04',
+ },
+ {
+ value: [1731.414, 1877.894, 1731.414, 1880.894],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-07-28',
+ },
+ {
+ value: [1731.894, 1752.194, 1694.694, 1753.394],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-07-21',
+ },
+ {
+ value: [1685.894, 1733.894, 1680.894, 1739.394],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-07-14',
+ },
+ {
+ value: [1679.894, 1670.924, 1670.894, 1715.334],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-07-07',
+ },
+ {
+ value: [1675.0929999999998, 1671.894, 1649.983, 1689.973],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-06-30',
+ },
+ {
+ value: [1744.983, 1690.8129999999999, 1689.983, 1752.933],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-06-21',
+ },
+ {
+ value: [1621.003, 1752.673, 1616.503, 1754.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-06-16',
+ },
+ {
+ value: [1621.143, 1620.983, 1604.983, 1638.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-06-09',
+ },
+ {
+ value: [1651.983, 1625.5829999999999, 1572.983, 1653.873],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-06-02',
+ },
+ {
+ value: [1644.993, 1645.543, 1629.993, 1708.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-05-26',
+ },
+ {
+ value: [1656.983, 1654.483, 1610.533, 1674.973],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-05-19',
+ },
+ {
+ value: [1723.3029999999999, 1661.383, 1659.993, 1723.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-05-12',
+ },
+ {
+ value: [1723.983, 1704.983, 1690.983, 1732.653],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-05-05',
+ },
+ {
+ value: [1675.983, 1715.503, 1655.983, 1737.753],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-04-28',
+ },
+ {
+ value: [1694.983, 1680.453, 1676.263, 1723.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-04-21',
+ },
+ {
+ value: [1745.863, 1668.403, 1638.993, 1747.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-04-14',
+ },
+ {
+ value: [1779.983, 1745.973, 1741.983, 1782.753],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-04-07',
+ },
+ {
+ value: [1733.5829999999999, 1774.983, 1710.983, 1802.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-03-31',
+ },
+ {
+ value: [1705.983, 1733.6029999999998, 1678.953, 1747.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-03-24',
+ },
+ {
+ value: [1705.983, 1696.983, 1690.983, 1739.863],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-03-17',
+ },
+ {
+ value: [1773.163, 1704.983, 1694.983, 1773.483],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-03-10',
+ },
+ {
+ value: [1733.483, 1773.023, 1730.003, 1802.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-03-03',
+ },
+ {
+ value: [1775.983, 1742.983, 1737.163, 1833.783],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-02-24',
+ },
+ {
+ value: [1764.983, 1775.763, 1764.983, 1841.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-02-17',
+ },
+ {
+ value: [1734.983, 1764.983, 1714.983, 1784.733],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-02-10',
+ },
+ {
+ value: [1863.983, 1772.983, 1750.663, 1863.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-02-03',
+ },
+ {
+ value: [1840.983, 1814.993, 1812.983, 1889.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-01-20',
+ },
+ {
+ value: [1789.983, 1841.983, 1762.8029999999999, 1842.983],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-01-13',
+ },
+ {
+ value: [1686.183, 1758.753, 1660.993, 1766.883],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2023-01-06',
+ },
+ {
+ value: [1704.0729999999999, 1681.983, 1656.033, 1707.973],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-12-30',
+ },
+ {
+ value: [1731.8729999999998, 1704.0729999999999, 1615.523, 1731.8729999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-12-23',
+ },
+ {
+ value: [1648.9329999999998, 1719.9429999999998, 1648.0729999999999, 1749.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-12-16',
+ },
+ {
+ value: [1601.0729999999999, 1663.0729999999999, 1582.0729999999999, 1663.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-12-09',
+ },
+ {
+ value: [1417.8529999999998, 1566.953, 1384.0729999999999, 1613.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-12-02',
+ },
+ {
+ value: [1474.4229999999998, 1455.0829999999999, 1431.6029999999998, 1501.953],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-11-25',
+ },
+ {
+ value: [1476.5729999999999, 1500.203, 1454.0729999999999, 1532.043],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-11-18',
+ },
+ {
+ value: [1427.1229999999998, 1461.223, 1368.223, 1477.523],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-11-11',
+ },
+ {
+ value: [1283.0729999999999, 1449.6429999999998, 1266.0729999999999, 1460.8429999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-11-04',
+ },
+ {
+ value: [1503.0729999999999, 1293.0729999999999, 1291.783, 1522.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-10-28',
+ },
+ {
+ value: [1659.0729999999999, 1557.0729999999999, 1543.0729999999999, 1663.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-10-21',
+ },
+ {
+ value: [1823.0729999999999, 1670.6829999999998, 1630.0729999999999, 1824.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-10-14',
+ },
+ {
+ value: [1753.0729999999999, 1805.5729999999999, 1753.0529999999999, 1835.253],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-09-30',
+ },
+ {
+ value: [1788.0729999999999, 1767.503, 1749.9229999999998, 1821.6629999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-09-23',
+ },
+ {
+ value: [1813.0729999999999, 1792.0729999999999, 1788.1829999999998, 1826.1929999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-09-16',
+ },
+ {
+ value: [1795.713, 1777.8629999999998, 1744.0829999999999, 1802.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-09-09',
+ },
+ {
+ value: [1816.0729999999999, 1808.0729999999999, 1787.273, 1858.6329999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-09-02',
+ },
+ {
+ value: [1818.0829999999999, 1831.0729999999999, 1784.0729999999999, 1845.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-08-26',
+ },
+ {
+ value: [1853.533, 1828.0829999999999, 1814.1429999999998, 1872.5729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-08-19',
+ },
+ {
+ value: [1848.223, 1861.0729999999999, 1797.6529999999998, 1865.953],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-08-12',
+ },
+ {
+ value: [1823.0829999999999, 1857.033, 1791.0829999999999, 1868.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-08-05',
+ },
+ {
+ value: [1882.5829999999999, 1831.513, 1811.1729999999998, 1898.043],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-07-29',
+ },
+ {
+ value: [1885.4329999999998, 1880.0729999999999, 1855.0729999999999, 1903.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-07-22',
+ },
+ {
+ value: [1923.273, 1882.5729999999999, 1863.1329999999998, 1932.753],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-07-15',
+ },
+ {
+ value: [1953.0829999999999, 1932.0729999999999, 1918.0829999999999, 1987.5229999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-07-08',
+ },
+ {
+ value: [1931.338, 1962.1229999999998, 1911.6979999999999, 2010.073],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-07-01',
+ },
+ {
+ value: [1861.398, 1920.408, 1839.398, 1931.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-06-24',
+ },
+ {
+ value: [1801.398, 1862.398, 1743.398, 1863.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-06-17',
+ },
+ {
+ value: [1701.398, 1811.9979999999998, 1669.398, 1818.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-06-10',
+ },
+ {
+ value: [1677.398, 1697.398, 1677.398, 1726.298],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-06-02',
+ },
+ {
+ value: [1711.398, 1666.558, 1641.398, 1715.288],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-05-27',
+ },
+ {
+ value: [1708.398, 1711.408, 1650.398, 1712.548],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-05-20',
+ },
+ {
+ value: [1691.398, 1689.638, 1616.408, 1709.338],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-05-13',
+ },
+ {
+ value: [1741.398, 1704.398, 1692.398, 1781.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-05-06',
+ },
+ {
+ value: [1661.398, 1739.778, 1611.398, 1760.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-04-29',
+ },
+ {
+ value: [1692.528, 1684.398, 1671.578, 1744.388],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-04-22',
+ },
+ {
+ value: [1681.398, 1717.388, 1617.4279999999999, 1747.298],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-04-15',
+ },
+ {
+ value: [1664.398, 1695.398, 1661.4979999999998, 1700.128],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-04-08',
+ },
+ {
+ value: [1536.398, 1691.408, 1515.398, 1704.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-04-01',
+ },
+ {
+ value: [1635.398, 1601.398, 1596.398, 1681.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-03-25',
+ },
+ {
+ value: [1641.398, 1619.1879999999999, 1504.398, 1666.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-03-18',
+ },
+ {
+ value: [1671.598, 1680.408, 1615.1979999999999, 1732.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-03-11',
+ },
+ {
+ value: [1698.4579999999999, 1691.898, 1666.4979999999998, 1774.9679999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-03-04',
+ },
+ {
+ value: [1811.398, 1710.4579999999999, 1659.4979999999998, 1818.298],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-02-25',
+ },
+ {
+ value: [1751.398, 1818.398, 1748.7079999999999, 1822.878],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-02-18',
+ },
+ {
+ value: [1812.388, 1761.368, 1701.398, 1824.9579999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-02-11',
+ },
+ {
+ value: [1866.398, 1798.398, 1791.408, 1922.2179999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-01-28',
+ },
+ {
+ value: [1779.398, 1896.388, 1746.7379999999998, 1904.888],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-01-21',
+ },
+ {
+ value: [1839.408, 1778.398, 1774.398, 1890.1979999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-01-14',
+ },
+ {
+ value: [1966.398, 1853.398, 1849.908, 1980.3479999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2022-01-07',
+ },
+ {
+ value: [2079.3979999999997, 1961.398, 1939.398, 2079.3979999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-12-31',
+ },
+ {
+ value: [1962.0979999999997, 2105.488, 1924.2279999999998, 2128.3579999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-12-24',
+ },
+ {
+ value: [2065.3979999999997, 1962.0979999999997, 1947.398, 2091.3979999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-12-17',
+ },
+ {
+ value: [1894.398, 2001.3979999999997, 1858.128, 2028.318],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-12-10',
+ },
+ {
+ value: [1871.398, 1883.278, 1830.418, 1901.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-12-03',
+ },
+ {
+ value: [1760.398, 1852.408, 1759.398, 1897.598],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-11-26',
+ },
+ {
+ value: [1685.078, 1739.808, 1661.398, 1760.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-11-19',
+ },
+ {
+ value: [1731.398, 1685.1779999999999, 1646.398, 1742.1979999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-11-12',
+ },
+ {
+ value: [1691.398, 1731.338, 1671.398, 1756.388],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-11-05',
+ },
+ {
+ value: [1791.398, 1737.4779999999998, 1711.4979999999998, 1796.408],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-10-29',
+ },
+ {
+ value: [1799.398, 1812.398, 1698.398, 1832.408],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-10-22',
+ },
+ {
+ value: [1750.908, 1828.368, 1742.408, 1861.348],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-10-15',
+ },
+ {
+ value: [1733.818, 1750.9979999999998, 1718.628, 1789.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-10-08',
+ },
+ {
+ value: [1661.398, 1741.398, 1661.398, 1774.798],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-09-30',
+ },
+ {
+ value: [1570.2279999999998, 1605.398, 1536.4779999999998, 1631.378],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-09-24',
+ },
+ {
+ value: [1576.398, 1597.398, 1496.398, 1616.9979999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-09-17',
+ },
+ {
+ value: [1560.398, 1573.9779999999998, 1535.408, 1619.558],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-09-10',
+ },
+ {
+ value: [1516.398, 1569.618, 1442.4979999999998, 1571.1879999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-09-03',
+ },
+ {
+ value: [1449.278, 1507.4279999999999, 1448.168, 1592.2679999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-08-27',
+ },
+ {
+ value: [1607.398, 1459.398, 1436.898, 1624.9979999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-08-20',
+ },
+ {
+ value: [1562.398, 1611.4379999999999, 1561.398, 1714.278],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-08-13',
+ },
+ {
+ value: [1575.398, 1582.398, 1532.118, 1680.388],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-08-06',
+ },
+ {
+ value: [1790.398, 1590.388, 1569.158, 1790.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-07-30',
+ },
+ {
+ value: [1867.288, 1811.398, 1806.4879999999998, 1917.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-07-23',
+ },
+ {
+ value: [1886.9479999999999, 1867.298, 1851.898, 1924.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-07-16',
+ },
+ {
+ value: [1911.398, 1883.5079999999998, 1856.398, 1940.278],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-07-09',
+ },
+ {
+ value: [2011.398, 1924.398, 1922.898, 2029.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-07-02',
+ },
+ {
+ value: [1977.1049999999998, 2003.398, 1913.105, 2020.398],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-06-25',
+ },
+ {
+ value: [2087.2049999999995, 1983.0449999999996, 1957.105, 2100.9849999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-06-18',
+ },
+ {
+ value: [2157.1049999999996, 2070.9149999999995, 2052.2149999999997, 2172.0949999999993],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-06-11',
+ },
+ {
+ value: [2107.6049999999996, 2143.6049999999996, 2064.1049999999996, 2180.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-06-04',
+ },
+ {
+ value: [1943.105, 2122.1049999999996, 1923.105, 2212.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-05-28',
+ },
+ {
+ value: [1917.205, 1934.205, 1917.205, 1977.3049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-05-21',
+ },
+ {
+ value: [1792.105, 1901.955, 1758.115, 1922.605],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-05-14',
+ },
+ {
+ value: [1892.105, 1795.105, 1793.105, 1898.945],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-05-07',
+ },
+ {
+ value: [2024.1049999999998, 1898.885, 1895.105, 2027.1049999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-04-30',
+ },
+ {
+ value: [1947.105, 2001.0449999999996, 1925.105, 2021.1049999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-04-23',
+ },
+ {
+ value: [1903.105, 1947.085, 1882.105, 1960.1049999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-04-16',
+ },
+ {
+ value: [2053.1049999999996, 1912.105, 1897.115, 2054.0849999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-04-09',
+ },
+ {
+ value: [1935.305, 2054.1049999999996, 1892.105, 2057.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-04-02',
+ },
+ {
+ value: [1892.205, 1905.105, 1838.905, 1918.195],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-03-26',
+ },
+ {
+ value: [1942.105, 1902.105, 1843.255, 1978.465],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-03-19',
+ },
+ {
+ value: [1967.0649999999998, 1918.105, 1792.285, 1977.1049999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-03-12',
+ },
+ {
+ value: [2071.1049999999996, 1952.2150000000001, 1880.105, 2072.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-03-05',
+ },
+ {
+ value: [2347.1049999999996, 2014.885, 1959.405, 2347.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-02-26',
+ },
+ {
+ value: [2480.0849999999996, 2352.1049999999996, 2273.7049999999995, 2519.9849999999997],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-02-19',
+ },
+ {
+ value: [2229.1049999999996, 2493.1049999999996, 2205.1049999999996, 2493.3049999999994],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-02-10',
+ },
+ {
+ value: [2022.1049999999998, 2205.1049999999996, 1987.1049999999996, 2256.7049999999995],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-02-05',
+ },
+ {
+ value: [1975.1049999999998, 2008.2849999999996, 1952.125, 2079.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-01-29',
+ },
+ {
+ value: [1953.165, 1972.0549999999996, 1874.605, 1992.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-01-22',
+ },
+ {
+ value: [1982.1049999999996, 1974.1049999999998, 1921.105, 2065.4349999999995],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-01-15',
+ },
+ {
+ value: [1892.085, 1982.1049999999996, 1874.565, 2042.985],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2021-01-08',
+ },
+ {
+ value: [1718.705, 1890.105, 1718.155, 1891.085],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-12-31',
+ },
+ {
+ value: [1732.105, 1722.105, 1687.125, 1798.305],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-12-25',
+ },
+ {
+ value: [1719.875, 1737.105, 1697.105, 1761.115],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-12-18',
+ },
+ {
+ value: [1694.805, 1712.105, 1692.655, 1767.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-12-11',
+ },
+ {
+ value: [1627.105, 1685.215, 1606.015, 1692.205],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-12-04',
+ },
+ {
+ value: [1663.115, 1630.005, 1610.105, 1702.005],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-11-27',
+ },
+ {
+ value: [1603.105, 1612.065, 1572.705, 1634.455],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-11-20',
+ },
+ {
+ value: [1593.4850000000001, 1597.105, 1583.105, 1669.605],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-11-13',
+ },
+ {
+ value: [1567.105, 1592.725, 1564.105, 1624.585],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-11-06',
+ },
+ {
+ value: [1511.105, 1562.125, 1492.105, 1600.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-10-30',
+ },
+ {
+ value: [1617.105, 1607.435, 1584.005, 1639.695],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-10-23',
+ },
+ {
+ value: [1592.105, 1604.105, 1592.105, 1642.725],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-10-16',
+ },
+ {
+ value: [1584.105, 1588.105, 1580.105, 1598.525],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-10-09',
+ },
+ {
+ value: [1527.295, 1560.605, 1527.295, 1584.005],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-09-30',
+ },
+ {
+ value: [1584.865, 1527.215, 1513.125, 1584.865],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-09-25',
+ },
+ {
+ value: [1637.105, 1587.105, 1527.115, 1662.095],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-09-18',
+ },
+ {
+ value: [1652.105, 1625.105, 1569.175, 1670.095],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-09-11',
+ },
+ {
+ value: [1662.685, 1662.105, 1638.105, 1720.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-09-04',
+ },
+ {
+ value: [1592.105, 1649.105, 1583.115, 1656.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-08-28',
+ },
+ {
+ value: [1566.105, 1568.105, 1548.105, 1612.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-08-21',
+ },
+ {
+ value: [1520.075, 1553.105, 1497.355, 1558.535],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-08-14',
+ },
+ {
+ value: [1578.9850000000001, 1523.105, 1490.605, 1588.685],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-08-07',
+ },
+ {
+ value: [1508.115, 1570.285, 1492.105, 1597.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-07-31',
+ },
+ {
+ value: [1544.605, 1487.405, 1477.105, 1602.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-07-24',
+ },
+ {
+ value: [1606.785, 1540.155, 1492.105, 1679.105],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-07-17',
+ },
+ {
+ value: [1430.105, 1605.955, 1423.915, 1636.925],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-07-10',
+ },
+ {
+ value: [1340.105, 1433.895, 1329.115, 1444.605],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-07-03',
+ },
+ {
+ value: [1310.1799999999998, 1352.115, 1308.28, 1357.815],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-06-24',
+ },
+ {
+ value: [1277.08, 1314.9199999999998, 1256.08, 1320.28],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-06-19',
+ },
+ {
+ value: [1300.08, 1291.4499999999998, 1258.3899999999999, 1310.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-06-12',
+ },
+ {
+ value: [1256.08, 1300.08, 1256.08, 1303.96],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-06-05',
+ },
+ {
+ value: [1205.08, 1241.6799999999998, 1196.08, 1245.06],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-05-29',
+ },
+ {
+ value: [1181.08, 1203.28, 1180.21, 1247.04],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-05-22',
+ },
+ {
+ value: [1195.08, 1188.08, 1176.96, 1213.07],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-05-15',
+ },
+ {
+ value: [1126.08, 1189.6899999999998, 1125.08, 1213.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-05-08',
+ },
+ {
+ value: [1132.08, 1140.78, 1126.04, 1175.02],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-04-30',
+ },
+ {
+ value: [1096.08, 1125.6399999999999, 1068.08, 1140.76],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-04-24',
+ },
+ {
+ value: [1040.08, 1101.08, 1023.5799999999999, 1109.6399999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-04-17',
+ },
+ {
+ value: [1037.03, 1040.08, 1023.04, 1056.58],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-04-10',
+ },
+ {
+ value: [935.3299999999999, 1014.8699999999999, 932.0799999999999, 1023.04],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-04-03',
+ },
+ {
+ value: [875.0800000000002, 950.5800000000002, 866.6000000000001, 967.0800000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-03-27',
+ },
+ {
+ value: [979.06, 910.3600000000001, 835.1800000000001, 983.03],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-03-20',
+ },
+ {
+ value: [1010.0799999999999, 987.1099999999999, 955.0800000000002, 1044.6599999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-03-13',
+ },
+ {
+ value: [925.1899999999998, 1030.58, 925.0899999999999, 1051.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-03-06',
+ },
+ {
+ value: [980.5799999999999, 932.0799999999999, 925.05, 985.0799999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-02-28',
+ },
+ {
+ value: [957.5800000000002, 987.96, 953.0800000000002, 999.0799999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-02-21',
+ },
+ {
+ value: [937.0800000000002, 963.0800000000002, 932.28, 988.97],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-02-14',
+ },
+ {
+ value: [860.0800000000002, 951.0800000000002, 855.0800000000002, 952.0800000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-02-07',
+ },
+ {
+ value: [986.9399999999998, 927.8799999999999, 912.0800000000002, 986.9399999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-01-23',
+ },
+ {
+ value: [987.5799999999999, 982.5799999999999, 976.0900000000001, 1004.28],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-01-17',
+ },
+ {
+ value: [945.94, 987.5799999999999, 942.3800000000001, 991.0699999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-01-10',
+ },
+ {
+ value: [1045.28, 953.6400000000001, 951.9800000000002, 1070.58],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2020-01-03',
+ },
+ {
+ value: [1014.0799999999999, 1038.08, 995.0699999999999, 1047.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-12-27',
+ },
+ {
+ value: [1038.08, 1021.3799999999999, 1013.02, 1050.28],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-12-20',
+ },
+ {
+ value: [1050.08, 1038.08, 1005.1599999999999, 1051.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-12-13',
+ },
+ {
+ value: [993.28, 1045.08, 992.8199999999999, 1045.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-12-06',
+ },
+ {
+ value: [1063.1299999999999, 1004.0799999999999, 987.97, 1073.6799999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-11-29',
+ },
+ {
+ value: [1100.1999999999998, 1069.08, 1060.08, 1116.6899999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-11-22',
+ },
+ {
+ value: [1076.58, 1099.98, 1068.59, 1115.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-11-15',
+ },
+ {
+ value: [1065.08, 1080.08, 1063.96, 1090.73],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-11-08',
+ },
+ {
+ value: [1041.09, 1060.08, 1040.08, 1075.04],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-11-01',
+ },
+ {
+ value: [1046.9399999999998, 1046.4299999999998, 1018.1099999999999, 1056.58],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-10-25',
+ },
+ {
+ value: [1061.08, 1050.87, 1035.08, 1090.76],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-10-18',
+ },
+ {
+ value: [1028.08, 1049.6799999999998, 984.0999999999999, 1055.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-10-11',
+ },
+ {
+ value: [1038.08, 1025.08, 1025.08, 1044.51],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-09-30',
+ },
+ {
+ value: [1032.08, 1049.83, 1006.0799999999999, 1063.9499999999998],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-09-27',
+ },
+ {
+ value: [958.0800000000002, 1032.5, 958.0800000000002, 1035.08],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-09-20',
+ },
+ {
+ value: [1020.0799999999999, 974.0800000000002, 941.0800000000002, 1023.0799999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-09-12',
+ },
+ {
+ value: [1015.0699999999999, 1017.5699999999999, 995.1899999999998, 1026.1],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-09-06',
+ },
+ {
+ value: [988.0799999999999, 1017.0799999999999, 958.0900000000001, 1021.0799999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-08-30',
+ },
+ {
+ value: [936.0800000000002, 1005.1799999999998, 924.1299999999999, 1008.6399999999999],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-08-23',
+ },
+ {
+ value: [885.3900000000001, 929.6799999999998, 870.0900000000001, 950.6600000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-08-16',
+ },
+ {
+ value: [820.0800000000002, 837.1100000000001, 798.8800000000001, 856.0300000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-08-09',
+ },
+ {
+ value: [837.1100000000001, 829.5300000000002, 818.0800000000002, 858.0800000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-08-02',
+ },
+ {
+ value: [835.0800000000002, 840.1100000000001, 813.23, 846.0800000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-07-26',
+ },
+ {
+ value: [842.8800000000001, 830.95, 822.26, 857.3800000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-07-19',
+ },
+ {
+ value: [870.1300000000001, 861.1700000000001, 843.4300000000001, 873.46],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-07-12',
+ },
+ {
+ value: [879.6000000000001, 874.9000000000001, 846.3000000000002, 910.6800000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-07-05',
+ },
+ {
+ value: [838.8410000000001, 859.0800000000002, 827.5410000000002, 863.96],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-06-28',
+ },
+ {
+ value: [767.5410000000002, 836.8410000000001, 763.1410000000001, 845.0310000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-06-21',
+ },
+ {
+ value: [718.5210000000002, 773.5410000000002, 700.5410000000002, 792.8410000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-06-14',
+ },
+ {
+ value: [752.5410000000002, 722.671, 718.5410000000002, 761.8910000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-06-06',
+ },
+ {
+ value: [739.6410000000001, 750.5410000000002, 720.5910000000001, 785.4910000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-05-31',
+ },
+ {
+ value: [760.5410000000002, 739.0410000000002, 716.7610000000002, 770.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-05-24',
+ },
+ {
+ value: [759.4010000000001, 767.3310000000001, 733.5410000000002, 793.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-05-17',
+ },
+ {
+ value: [786.0410000000002, 767.6610000000001, 703.0410000000002, 795.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-05-10',
+ },
+ {
+ value: [805.5410000000002, 834.5410000000002, 795.5410000000002, 849.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-04-30',
+ },
+ {
+ value: [820.0410000000002, 805.5410000000002, 801.1510000000001, 850.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-04-26',
+ },
+ {
+ value: [791.5410000000002, 813.1010000000001, 761.7610000000002, 821.4910000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-04-19',
+ },
+ {
+ value: [760.5410000000002, 774.5410000000002, 750.6610000000001, 812.441],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-04-12',
+ },
+ {
+ value: [720.5410000000002, 725.5410000000002, 694.7510000000002, 729.4910000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-04-04',
+ },
+ {
+ value: [646.5410000000002, 714.5310000000002, 624.6410000000001, 727.221],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-03-29',
+ },
+ {
+ value: [639.3410000000001, 654.5410000000002, 637.5410000000002, 675.0710000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-03-22',
+ },
+ {
+ value: [600.5810000000001, 637.8410000000001, 599.5410000000002, 648.0410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-03-15',
+ },
+ {
+ value: [655.5410000000002, 598.0410000000002, 594.191, 658.8710000000001],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-03-08',
+ },
+ {
+ value: [591.2910000000002, 649.8410000000001, 578.5310000000002, 650.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-03-01',
+ },
+ {
+ value: [591.5410000000002, 586.5510000000002, 574.6410000000001, 605.4910000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-02-22',
+ },
+ {
+ value: [555.5410000000002, 585.3210000000001, 548.721, 604.201],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-02-15',
+ },
+ {
+ value: [544.5410000000002, 553.211, 528.5410000000002, 559.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-02-01',
+ },
+ {
+ value: [550.5410000000002, 540.2410000000002, 523.671, 559.421],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-01-25',
+ },
+ {
+ value: [493.54100000000017, 544.1510000000001, 482.09100000000007, 550.7410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-01-18',
+ },
+ {
+ value: [468.5410000000001, 496.42100000000005, 460.821, 497.54100000000017],
+ symbol: '600519.SH',
+ factor: 'kline_week_candle',
+ time: '2019-01-11',
+ },
+];
+
+const data2 = [
+ {
+ value: [1715, 1685.01, 1678.1, 1718.19],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2024-01-02',
+ },
+ {
+ value: [1770.204, 1726, 1615.894, 1770.594],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-12-29',
+ },
+ {
+ value: [1830.894, 1772.394, 1717.554, 1830.894],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-11-30',
+ },
+ {
+ value: [1777.834, 1665.474, 1597.144, 1779.874],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-10-31',
+ },
+ {
+ value: [1833.724, 1779.444, 1753.894, 1860.834],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-09-28',
+ },
+ {
+ value: [1858.904, 1827.894, 1750.974, 1887.844],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-08-31',
+ },
+ {
+ value: [1679.894, 1861.474, 1670.894, 1915.894],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-07-31',
+ },
+ {
+ value: [1572.983, 1671.894, 1572.983, 1754.983],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-06-30',
+ },
+ {
+ value: [1723.983, 1583.883, 1581.653, 1732.653],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-05-31',
+ },
+ {
+ value: [1779.983, 1715.503, 1638.993, 1782.753],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-04-28',
+ },
+ {
+ value: [1767.983, 1774.983, 1678.953, 1802.983],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-03-31',
+ },
+ {
+ value: [1809.963, 1768.723, 1714.983, 1841.983],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-02-28',
+ },
+ {
+ value: [1686.183, 1800.743, 1660.993, 1889.983],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2023-01-31',
+ },
+ {
+ value: [1593.0729999999999, 1681.983, 1554.273, 1749.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-12-30',
+ },
+ {
+ value: [1292.0729999999999, 1532.0729999999999, 1292.0729999999999, 1537.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-11-30',
+ },
+ {
+ value: [1823.0729999999999, 1283.0729999999999, 1266.0729999999999, 1824.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-10-31',
+ },
+ {
+ value: [1845.223, 1805.5729999999999, 1744.0829999999999, 1849.0729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-09-30',
+ },
+ {
+ value: [1823.0829999999999, 1857.0729999999999, 1784.0729999999999, 1872.5729999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-08-31',
+ },
+ {
+ value: [1988.0729999999999, 1831.513, 1811.1729999999998, 2000.8429999999998],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-07-29',
+ },
+ {
+ value: [1713.398, 1978.0729999999999, 1669.398, 2010.073],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-06-30',
+ },
+ {
+ value: [1741.398, 1715.4279999999999, 1616.408, 1781.398],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-05-31',
+ },
+ {
+ value: [1641.338, 1739.778, 1611.398, 1760.398],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-04-29',
+ },
+ {
+ value: [1713.398, 1630.398, 1504.398, 1774.9679999999998],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-03-31',
+ },
+ {
+ value: [1812.388, 1701.798, 1659.4979999999998, 1824.9579999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-02-28',
+ },
+ {
+ value: [1966.398, 1798.398, 1746.7379999999998, 1980.3479999999997],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2022-01-28',
+ },
+ {
+ value: [1861.398, 1961.398, 1830.418, 2128.3579999999997],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-12-31',
+ },
+ {
+ value: [1691.398, 1842.168, 1646.398, 1901.398],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-11-30',
+ },
+ {
+ value: [1733.818, 1737.4779999999998, 1698.398, 1861.348],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-10-29',
+ },
+ {
+ value: [1470.398, 1741.398, 1442.4979999999998, 1774.798],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-09-30',
+ },
+ {
+ value: [1575.398, 1469.398, 1436.898, 1714.278],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-08-31',
+ },
+ {
+ value: [1971.3679999999997, 1590.388, 1569.158, 2021.398],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-07-30',
+ },
+ {
+ value: [2114.1049999999996, 1968.0979999999997, 1913.105, 2180.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-06-30',
+ },
+ {
+ value: [1892.105, 2110.1049999999996, 1758.115, 2212.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-05-31',
+ },
+ {
+ value: [1913.105, 1898.885, 1882.105, 2057.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-04-30',
+ },
+ {
+ value: [2071.1049999999996, 1901.105, 1792.285, 2072.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-03-31',
+ },
+ {
+ value: [2022.1049999999998, 2014.885, 1959.405, 2519.9849999999997],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-02-26',
+ },
+ {
+ value: [1892.085, 2008.2849999999996, 1874.565, 2079.1049999999996],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2021-01-29',
+ },
+ {
+ value: [1618.105, 1890.105, 1612.115, 1891.085],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-12-31',
+ },
+ {
+ value: [1567.105, 1606.015, 1564.105, 1702.005],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-11-30',
+ },
+ {
+ value: [1584.105, 1562.125, 1492.105, 1642.725],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-10-30',
+ },
+ {
+ value: [1684.105, 1560.605, 1513.125, 1720.105],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-09-30',
+ },
+ {
+ value: [1578.9850000000001, 1678.605, 1490.605, 1708.105],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-08-31',
+ },
+ {
+ value: [1360.105, 1570.285, 1356.125, 1679.105],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-07-31',
+ },
+ {
+ value: [1256.08, 1354.9850000000001, 1256.08, 1361.085],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-06-30',
+ },
+ {
+ value: [1126.08, 1241.6799999999998, 1125.08, 1247.04],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-05-29',
+ },
+ {
+ value: [992.0799999999999, 1140.78, 978.0800000000002, 1175.02],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-04-30',
+ },
+ {
+ value: [925.1899999999998, 986.0799999999999, 835.1800000000001, 1051.08],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-03-31',
+ },
+ {
+ value: [860.0800000000002, 932.0799999999999, 855.0800000000002, 999.0799999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-02-28',
+ },
+ {
+ value: [1003.0799999999999, 927.8799999999999, 912.0800000000002, 1020.1399999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2020-01-23',
+ },
+ {
+ value: [993.28, 1058.08, 992.8199999999999, 1070.58],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-12-31',
+ },
+ {
+ value: [1056.08, 1004.0799999999999, 987.97, 1116.6899999999998],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-11-29',
+ },
+ {
+ value: [1028.08, 1055.09, 984.0999999999999, 1090.76],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-10-31',
+ },
+ {
+ value: [1015.0699999999999, 1025.08, 941.0800000000002, 1063.9499999999998],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-09-30',
+ },
+ {
+ value: [851.5900000000001, 1017.0799999999999, 798.8800000000001, 1021.0799999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-08-30',
+ },
+ {
+ value: [879.6000000000001, 847.6800000000001, 813.23, 910.6800000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-07-31',
+ },
+ {
+ value: [752.5410000000002, 859.0800000000002, 700.5410000000002, 863.96],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-06-28',
+ },
+ {
+ value: [786.0410000000002, 750.5410000000002, 703.0410000000002, 795.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-05-31',
+ },
+ {
+ value: [720.5410000000002, 834.5410000000002, 694.7510000000002, 850.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-04-30',
+ },
+ {
+ value: [622.0410000000002, 714.5310000000002, 594.191, 727.221],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-03-29',
+ },
+ {
+ value: [557.5810000000001, 615.5510000000002, 548.721, 623.961],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-02-28',
+ },
+ {
+ value: [470.52100000000013, 550.1410000000001, 442.561, 559.421],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2019-01-31',
+ },
+ {
+ value: [449.54100000000005, 450.55100000000004, 414.151, 477.0410000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-12-28',
+ },
+ {
+ value: [415.541, 425.541, 397.34099999999995, 460.54100000000005],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-11-30',
+ },
+ {
+ value: [575.951, 409.441, 369.561, 579.5410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-10-31',
+ },
+ {
+ value: [512.5410000000002, 590.5410000000002, 480.5410000000001, 593.7410000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-09-28',
+ },
+ {
+ value: [591.941, 519.7310000000002, 477.4010000000001, 592.8410000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-08-31',
+ },
+ {
+ value: [595.0610000000001, 586.9810000000002, 538.7710000000002, 624.6510000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-07-31',
+ },
+ {
+ value: [600.672, 592.0010000000002, 557.5410000000002, 653.0420000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-06-29',
+ },
+ {
+ value: [509.54200000000014, 600.672, 494.6020000000001, 601.162],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-05-31',
+ },
+ {
+ value: [529.5420000000001, 512.0720000000001, 494.54200000000014, 564.3220000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-04-27',
+ },
+ {
+ value: [577.5420000000001, 533.162, 507.952, 603.5320000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-03-30',
+ },
+ {
+ value: [616.5420000000001, 575.162, 507.54200000000014, 616.8420000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-02-28',
+ },
+ {
+ value: [549.5420000000001, 614.0820000000001, 539.432, 648.6020000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2018-01-31',
+ },
+ {
+ value: [487.5520000000001, 547.0320000000002, 464.802, 576.0420000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-12-29',
+ },
+ {
+ value: [470.4220000000001, 480.5420000000001, 462.552, 569.5020000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-11-30',
+ },
+ {
+ value: [374.08199999999994, 467.57200000000006, 369.642, 504.54200000000014],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-10-31',
+ },
+ {
+ value: [339.74199999999996, 367.18199999999996, 319.522, 375.42199999999997],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-09-29',
+ },
+ {
+ value: [330.542, 340.69199999999995, 320.67199999999997, 350.642],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-08-31',
+ },
+ {
+ value: [316.955, 330.762, 290.74199999999996, 337.50199999999995],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-07-31',
+ },
+ {
+ value: [285.255, 314.605, 283.765, 327.755],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-06-30',
+ },
+ {
+ value: [254.35500000000002, 285.695, 240.755, 299.235],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-05-31',
+ },
+ {
+ value: [228.41500000000002, 256.235, 223.35500000000002, 271.435],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-04-28',
+ },
+ {
+ value: [197.85500000000005, 229.115, 197.285, 239.255],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-03-31',
+ },
+ {
+ value: [188.75500000000002, 197.41500000000005, 184.67500000000004, 209.275],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-02-28',
+ },
+ {
+ value: [177.035, 187.17500000000004, 175.56500000000003, 202.55500000000004],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2017-01-26',
+ },
+ {
+ value: [162.75500000000002, 176.905, 158.57500000000002, 182.75500000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-12-30',
+ },
+ {
+ value: [160.705, 161.835, 151.12500000000003, 173.205],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-11-30',
+ },
+ {
+ value: [141.265, 160.705, 141.265, 165.55500000000004],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-10-31',
+ },
+ {
+ value: [152.455, 140.66500000000002, 130.315, 154.75500000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-09-30',
+ },
+ {
+ value: [155.75500000000002, 152.94500000000002, 142.825, 165.23500000000004],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-08-31',
+ },
+ {
+ value: [129.95499999999998, 155.905, 126.755, 169.55500000000004],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-07-29',
+ },
+ {
+ value: [101.98399999999998, 128.50400000000002, 99.584, 134.784],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-06-30',
+ },
+ {
+ value: [87.13400000000001, 101.05400000000003, 79.684, 103.20400000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-05-31',
+ },
+ {
+ value: [85.53399999999999, 87.78399999999999, 72.38400000000001, 94.18400000000003],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-04-29',
+ },
+ {
+ value: [52.54400000000002, 84.22399999999999, 46.984000000000016, 89.964],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-03-31',
+ },
+ {
+ value: [38.684000000000005, 51.49400000000001, 36.184000000000005, 57.464000000000006],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-02-29',
+ },
+ {
+ value: [54.58400000000001, 37.234000000000016, 32.094, 54.58400000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2016-01-29',
+ },
+ {
+ value: [49.58400000000001, 54.77400000000001, 45.58400000000001, 65.76400000000001],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-12-31',
+ },
+ {
+ value: [51.184000000000005, 50.89400000000001, 43.214000000000006, 61.24399999999999],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-11-30',
+ },
+ {
+ value: [35.36400000000001, 50.444000000000024, 33.08400000000001, 54.88400000000002],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-10-30',
+ },
+ {
+ value: [28.404000000000003, 26.894000000000013, 21.58400000000001, 46.124],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-09-30',
+ },
+ {
+ value: [41.58400000000001, 31.954000000000015, 2.783999999999999, 50.874],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-08-31',
+ },
+ {
+ value: [64.42581818181816, 43.41400000000002, 32.389454545454534, 89.8803636363636],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-07-31',
+ },
+ {
+ value: [72.55309090909088, 66.83490909090906, 39.698545454545474, 80.7894545454545],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-06-30',
+ },
+ {
+ value: [62.298545454545426, 72.45309090909086, 50.680363636363616, 96.24399999999997],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-05-29',
+ },
+ {
+ value: [10.81672727272727, 61.90763636363635, 7.862181818181831, 77.15309090909088],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-04-30',
+ },
+ {
+ value: [6.06218181818182, 10.753090909090908, -0.783272727272724, 15.125818181818182],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-03-31',
+ },
+ {
+ value: [-7.837818181818186, 6.289454545454568, -9.6650909090909, 9.425818181818194],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-02-27',
+ },
+ {
+ value: [4.9894545454545565, -6.319636363636356, -11.510545454545444, 18.28036363636364],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2015-01-30',
+ },
+ {
+ value: [-25.056000000000008, 4.9894545454545565, -25.57418181818181, 8.507636363636387],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-12-31',
+ },
+ {
+ value: [-24.892363636363623, -25.719636363636365, -35.119636363636396, -14.665090909090903],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-11-28',
+ },
+ {
+ value: [-21.028727272727277, -24.955999999999985, -27.683272727272733, -20.937818181818184],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-10-31',
+ },
+ {
+ value: [-23.574181818181838, -20.001454545454546, -25.937818181818184, -14.519636363636376],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-09-30',
+ },
+ {
+ value: [-21.783272727272728, -23.546909090909107, -26.483272727272716, -15.883272727272722],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-08-29',
+ },
+ {
+ value: [-37.76509090909092, -21.692363636363634, -39.574181818181835, -13.665090909090903],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-07-31',
+ },
+ {
+ value: [-44.56095867768599, -38.319636363636384, -47.594016528925636, -35.27418181818182],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-06-30',
+ },
+ {
+ value: [-35.88327272727275, -44.37914049586779, -52.32955371900829, -35.88327272727275],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-05-30',
+ },
+ {
+ value: [-43.14773553719012, -35.569223140495886, -43.40393388429754, -22.577487603305794],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-04-30',
+ },
+ {
+ value: [-47.040297520661184, -43.15600000000003, -48.42046280991737, -25.387404958677703],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-03-31',
+ },
+ {
+ value: [-61.8667438016529, -47.02376859504133, -62.85847933884298, -45.40393388429756],
+ symbol: '600519.SH',
+ factor: 'kline_month_candle',
+ time: '2014-02-28',
+ },
+];
+
+describe('candlestick', () => {
+ it('changeData', async () => {
+ const { props } = (
+
+ );
+
+ const canvas = new Canvas(props);
+ await canvas.render();
+ await delay(1000);
+ const { props: props2 } = (
+
+ );
+ await canvas.update(props2);
+ await delay(20);
+ await gestureSimulator(context.canvas, 'touchstart', [
+ { x: 50, y: 50 },
+ { x: 260, y: 260 },
+ ]);
+ await delay(20);
+ await gestureSimulator(context.canvas, 'touchmove', [
+ { x: 114, y: 114 },
+ { x: 186, y: 186 },
+ ]);
+ await delay(20);
+ await gestureSimulator(context.canvas, 'touchend', [
+ { x: 114, y: 114 },
+ { x: 114, y: 114 },
+ ]);
+ await delay(20);
+ await gestureSimulator(context.canvas, 'touchstart', { x: 200, y: 169 });
+ await gestureSimulator(context.canvas, 'touchmove', { x: 190, y: 169 });
+ await gestureSimulator(context.canvas, 'touchend', { x: 190, y: 169 });
+ await delay(500);
+ expect(context).toMatchImageSnapshot();
+ });
+});