Subhajit
Subhajit

Reputation: 894

XY Amchart XY chart showing data on hovering perfectly on bullet

How can I show the data in balloon text while cursor is in chart in when using xy type chart?

I want to show my data like this: https://www.amcharts.com/demos/chart-with-gaps-in-data/

I am using type: xy amchart, with x axis values as date, and y axis data as integer .

Upvotes: 0

Views: 430

Answers (1)

Robbert
Robbert

Reputation: 713

The amCharts demo uses a chartCursor (https://docs.amcharts.com/3/javascriptcharts/ChartCursor) for this behavior. Unfortunately you cannot get the same behavior for an XY chart, meaning for an XY chart, balloons will only show when hovering exactly over a data point/bullet.

But if your X-axis is a date based axis and Y is an integer (value) axis, you could use a Serial Chart to get that same chartCursor behavior.

Upvotes: 1

Related Questions