jones2000 / HQChart

HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据替换接口
https://jones2000.github.io/HQChart/webhqchart.demo/samples/kline_index_edit.html
Apache License 2.0
2.86k stars 735 forks source link

订单流图表,k线里面的数字不自动缩放 #187

Open drinkeewu opened 7 months ago

drinkeewu commented 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: '',
          },
        }

image