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

point hollowCircle shape 报typeerror, 且 tooltip crosshairs 不显示 #1140

Closed
zengyue opened this issue Feb 24, 2021 · 0 comments
Closed

Comments

@zengyue
Copy link
Member

zengyue commented Feb 24, 2021

it('repaint shape属性不生效', done => {
    const data = [{
      time: '2016-08-08 00:00:00',
      value: 10,
      type: '预期收益率'
    }, {
      time: '2016-08-08 00:10:00',
      value: 22,
      type: '预期收益率'
    }, {
      time: '2016-08-08 00:30:00',
      value: 16,
      type: '预期收益率'
    }, {
      time: '2016-08-09 00:35:00',
      value: 26,
      type: '预期收益率'
    }, {
      time: '2016-08-09 01:00:00',
      value: 12,
      type: '预期收益率'
    }, {
      time: '2016-08-09 01:20:00',
      value: 26,
      type: '预期收益率'
    }, {
      time: '2016-08-10 01:40:00',
      value: 18,
      type: '预期收益率'
    }, {
      time: '2016-08-10 02:00:00',
      value: 26,
      type: '预期收益率'
    }, {
      time: '2016-08-10 02:20:00',
      value: 12,
      type: '预期收益率'
    }, {
      time: '2016-08-08 00:00:00',
      value: 4,
      type: '实际收益率'
    }, {
      time: '2016-08-08 00:10:00',
      value: 3,
      type: '实际收益率'
    }, {
      time: '2016-08-08 00:30:00',
      value: 6,
      type: '实际收益率'
    }, {
      time: '2016-08-09 00:35:00',
      value: -12,
      type: '实际收益率'
    }, {
      time: '2016-08-09 01:00:00',
      value: 1,
      type: '实际收益率1'
    }, {
      time: '2016-08-09 01:20:00',
      value: 9,
      type: '实际收益率1'
    }, {
      time: '2016-08-10 01:40:00',
      value: 13,
      type: '实际收益率1'
    }, {
      time: '2016-08-10 02:00:00',
      value: -3,
      type: '实际收益率1'
    }, {
      time: '2016-08-10 02:20:00',
      value: 11,
      type: '实际收益率1'
    }];

    const chart = new F2.Chart({
      el: canvas,
      pixelRatio: window.devicePixelRatio
    });

    chart.source(data, {
      time: {
        type: 'timeCat',
        tickCount: 3,
        mask: 'hh:mm',
        range: [ 0, 1 ]
      },
      value: {
        tickCount: 3,
        formatter: function formatter(ivalue) {
          return ivalue + '%';
        }
      }
    });
    
    chart.line()
      .position('time*value')
      .color('type')
      
      chart.point()
      .position('time*value')
      .color('type')
      .shape('type', ['circle', 'hollowCircle', 'rect']);

    chart.render();

image

@zengyue zengyue changed the title point hollowCircle shape 报typeerror point hollowCircle shape 报typeerror, 且 tooltip crosshairs 不显示 Feb 24, 2021
@zengyue zengyue closed this as completed in c1b5c85 Mar 2, 2021
zengyue added a commit that referenced this issue Mar 2, 2021
fix: 修复hollowCircle报错和多geom时,crosshairs不显示的问题。Fixed #1140
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