PDA

View Full Version : Automatic (radial) gradient and tooltip in pie chart



ronenil
18 Mar 2013, 5:30 AM
Hi all,

I am working with version 4.0.7 and I have been trying to find a solution for the following problems:

1. Radial Gradient fill

I have a custom gradients in my pie chart (see attached screenshot), because the data is generated dynamically i can't set the gradient angle to be static (0/30/45...) and not all of my pie chart categories must appears, therefore the gradient angle need to be automatic and radial ,pointing to the center, (see the brown section gradient)

Does anyone has a solution for it?
42468

2. I have disabled the onclick behavior of the legend. I want to add tooltip on legend categories hover?
Is that possible?

mitchellsimoens
20 Mar 2013, 11:50 AM
For the first thing, you are probably going to have to do more work than that like create the gradient when the response comes back within the series.

Each LegendItem has mouse events (mousedown, mouseout, mouseover, mouseup) so you can use the out and over ones to show and hide tooltips.