Billboard.js: Tooltip jumps to only specified xAxis ticks values

Created on 14 Aug 2019  路  6Comments  路  Source: naver/billboard.js

Description


Starts with 1.10 version, using an area spline chart with multiple series seems to make a tooltip jumps through only the visible x-axis ticks. In 1.9 it works as expected and a tooltip is displayed for every point (see gifs).

Steps to check or reproduce


How it works with 1.9:

billboard-1 9

With billboard 1.10:
billboard-1 10

I may notice that it jumps over visible ticks and skip any other hidden tricks.

After did some research, looks like with the latest version tooltips are only shown under the values defined in x.axis.tick.values which is our case.

{ axis: { x: { tick: { centered: true, count: 7, culling: false, values: [1, 2, 3, 4, 5, 6, 7] }, } }, data: { columns: [ ['1', 300 numbers], ['2', 300 numbers], ['3', 300 numbers], ['4', 300 numbers], ['5', 300 numbers], ['6', 300 numbers], ['7', 300 numbers], ['8', 300 numbers], ['x', 300 timestamps], ], type: 'area-spline', x: 'x' }

Is there a bug or incorrect billboard usage?

It's worth to say that this might directly be related to an issue found on the billboard demo page for defining X Axis Tick Values where you can only see a tooltip for the second point.

bug released

Most helpful comment

Hi @Slava-iTechArt, thanks for the report.
I'll be trying fix the issue ASAP and release the patch.

All 6 comments

Hi @Slava-iTechArt, thanks for the report.
I'll be trying fix the issue ASAP and release the patch.

:tada: This issue has been resolved in version 1.10.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.11.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Hello. I'm still seeing this jumps. Do I have to configure anything to be smooth at the x axis?

Thanks

Hi @santicros, can you make a reproducible demo?

Hey @netil I think I understood it a bit wrong, sorry. What I wanted was the tooltip to be smooth through two points of data, so it would show intermediate values of the two data items. Is it very complicated?
Thanks for your work!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidhund picture davidhund  路  5Comments

imbyungjun picture imbyungjun  路  5Comments

drazik picture drazik  路  4Comments

creage picture creage  路  4Comments

stevenmusumeche picture stevenmusumeche  路  3Comments