8000 [Feature] crosshiar can hide after a timeout when trigger is click · Issue #1676 · VisActor/VChart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature] crosshiar can hide after a timeout when trigger is click #1676
Closed
@xile611

Description

@xile611

What problem does this feature solve?

spec 如下:

const spec = {
    
    crosshair: {
      trigger: 'click',
      gridZIndex: 401,
      labelZIndex: 501,
      xField: {
        visible: true,
        bindingAxesIndex: [0],
        line: {
          visible: true,
          type: 'line',
          style: {
            opacity: 1,
            lineDash: [2, 2],
            lineWidth: 1,
            stroke: '#193D7A'
          }
        },
        label: {
          labelBackground: {
            style: {
              fill: '#193D7A',
              outerBorder: {
                stroke: '#193D7A'
              }
            }
          },
          visible: true
        }
      },
      yField: {
        bindingAxesIndex: [1],
        visible: true,
        line: {
          visible: true,
          type: 'line',
          style: {
            opacity: 1,
            lineDash: [2, 2],
            lineWidth: 1,
            stroke: '#193D7A'
          }
        },
        label: {
          labelBackground: {
            style: {
              fill: '#193D7A',
              outerBorder: {
                stroke: '#193D7A'
              }
            }
          },
          visible: true
        }
      }
    }
  };

What does the proposed API look like?

{
clickTimer?: number;
}

Metadata

Metadata

Assignees

Labels

interactioninteractions related to event or component

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0