FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

Tooltip on top of the column #460

Open AK1979 opened 7 years ago

AK1979 commented 7 years ago

Hi, Is there any way to set the position of the tooltip on top of a column / line ?

Some thing like that :

1

FVANCOP commented 7 years ago

In current version, it is not possible; The tooltip is always displayed "somewhere next to the mouse".

AK1979 commented 7 years ago

Any plans for the the next version ?

AK1979 commented 7 years ago

Another chart js tooltip example : http://www.guardiantm.org/chartjs2.html Any plans ? :)

AK1979 commented 7 years ago

FVANCOP ?

FVANCOP commented 7 years ago

No plan for it. I think that it will be complicate to upgrade the code to achieve this result.

Sorry for late answer.

AK1979 commented 7 years ago

Any reasonble work around that you can think of ?

Maybe to attach a third party tooltip to the callback ?

FVANCOP commented 7 years ago

It is possible to write a new add-ins with more possibilities for tooltip, but ... really no time for the moment to implement it. I put that in the to do list, but I cannot provide a date for delivery.

FVANCOP commented 7 years ago

With the new add-ins Add-ins/annotate.js, you can define new shapes for the annotates (=tooltip) and put the annotates on specific positions.

See following samples :

http://fvancop.github.io/ChartNew.js/Samples/annotate_for_line_charts.html http://fvancop.github.io/ChartNew.js/Samples/annotate_for_bar_charts.html http://fvancop.github.io/ChartNew.js/Samples/annotate_for_stackedbar_charts.html http://fvancop.github.io/ChartNew.js/Samples/annotate_for_circular_charts.html http://fvancop.github.io/ChartNew.js/Samples/annotate_arrow.html http://fvancop.github.io/ChartNew.js/Samples/annotate_bubble.html

This add-ins provides a solution for issue #460

Documentation : https://github.com/FVANCOP/ChartNew.js/wiki/900_100_Annotate_add-ins

AK1979 commented 7 years ago

Great stuff , thanks !