Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drinkeewu opened this issue Feb 1, 2024 · 0 comments
Open

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

drinkeewu opened this issue Feb 1, 2024 · 0 comments

Comments

@drinkeewu
Copy link

订单流图表,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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant