XY Chart Tooltip for straight line without bullet option enabled

Hi,

Is there any way to show tooltip for the lines when we mouse over on it. (note- without enabling the bullet option)

You can achieve this by setting the following two properties to 0.
Unfortunately you have to enable bullet option.
.bullets>fill>opacity
.bullets>stroke>width or .bullets>stroke>opacity
image

However, I have a concern: how is the user supposed to know where to hover to see the tooltip? Any specific reason to disable bullet?)

3 Likes

Awesome thanks for quick response.

Its setpoint value - example 100. so it will be linear line. that's y i wanted this feature

If possible can you help me out for below questions

  1. how to make label number 1 to bold and increase the size little
  1. Remove the grid
    [x/y]Axes>[*]>appearance>grid>opacity = 0
  2. Space at the each end of x axis
    I don't know parameters to do it. Let's see if anyone knows how to achieve this.
    One workaround is adding samples in dataSource with value null
  3. Style labels
    .bullets>[*]>label>text = [font-Size:20px bold]{value}
    value will be key from dataSources
    You can refer to amCharts documentation for more options
    Text styling – amCharts 5 Documentation
3 Likes

Hi,

Style Labels i tired something like this
{
"text": "[font-Size:20px bold]{this.custom.rule}",
"position": {
"dx": 0,
"dy": -9
}
}

its not working

Can you share the value of series>[*]>data>y in the XY Chart?
As I mentioned in my post,

1 Like

Thanks its working

Hi,

one question
If data points are more then enable bullets makes the chart very slow sometimes web page gets hang.

Is there any option to fix this issue?

I haven't personally encountered a situation where the page becomes unresponsive due to enabling bullets.
Can you tell me the total datapoints in your dataSources?
If you have a very large dataset, consider reducing the number of data points by aggregating or sampling the data.

Hi,

Sorry for delay response i am not feeling well.

Yes large data points is issue nearly i have 3000 rows

I am using it as dataset. Converting them to json might reduce rendering little?