Ujitha
Ujitha

Reputation: 28

How to implement drill down in Area chart amchart

I'm trying to implement clickable area chart for each data item in the chart using amchart.js. But in the chart it does not show the clickable sign or chart cannot be clicked. I have tried different column chart, bar chart drill down in amchart library which can be implement using urlField attribute in the graph. But when I use the same way for area chart it does not work.

Can anyone please help me in resolving this issue?

Upvotes: 0

Views: 484

Answers (1)

martynasma
martynasma

Reputation: 8595

Area char is basically a line graph with a fill. Line graph does not generate click events unless clicked on the bullet.

If your graph does not have bullets, no click events will take place.

To work around that, simply enable bullets. If you don't need them to be visible, set bulletAlpha: 0. I.e.:

graphs: [{
  "fillAlphas": 0.5.
  "valueField": "value",
  "urlField": "url",
  "bullet": "round",
  "bulletAlpha": 0
}]

Upvotes: 0

Related Questions