Open drinkeewu opened 7 months ago
订单流图表,k线里面的数字不自动缩放,跟demo(https://jones2000.github.io/HQChart/webhqchart.demo/samples/demo_orderflow.html)里的不一样
option配置:
const option = { Type: '历史K线图', // 创建图形类型 // 窗口指标 Windows: [ { Index: 'Empty', }, ], Symbol: CODE, IsAutoUpdate: true, // 是自动更新数据 AutoUpdateFrequency: 15000, IsApiPeriod: true, IsShowRightMenu: false, // 是否显示右键菜单 EnableYDrag: { Right: true, Left: true, Wheel: true, }, // CorssCursorTouchEnd:true, KLine: { DragMode: 1, // 拖拽模式 0 禁止拖拽 1 数据拖拽 2 区间选择 Right: 0, // 复权 0 不复权 1 前复权 2 后复权 Period: 0, // 周期 0 日线 1 周线 2 月线 3 年线 MaxReqeustDataCount: 1000, // 数据个数 PageSize: 80, // 一屏显示多少数据 KLineDoubleClick: false, // 双击分钟走势图 IsShowTooltip: false, // 是否显示K线提示信息 DrawType: 5, RightSpaceCount: 2, }, CorssCursorInfo: { Left: 0, Right: 1, }, // 标题设置 KLineTitle: { IsShowName: true, // 不显示股票名称 IsShowSettingInfo: true, // 不显示周期/复权 }, StepPixel: 10, // 边框 Border: { Left: 2, // 左边间距 Right: 20, // 右边间距 Top: 25, Bottom: 25, AutoRight: { Blank: 10, MinWidth: 40, }, }, // 子框架设置 Frame: [ { SplitCount: 5, IsShowLeftText: false, Custom: [ { Type: 0, Position: 'right', }, ], }, { SplitCount: 3, IsShowLeftText: false, }, { SplitCount: 3, IsShowLeftText: false, }, ], // 扩展图形 ExtendChart: [ // { Name:'KLineTooltip' }, //手机端tooltip ], FrameLogo: { Text: '', }, }
订单流图表,k线里面的数字不自动缩放,跟demo(https://jones2000.github.io/HQChart/webhqchart.demo/samples/demo_orderflow.html)里的不一样
option配置: