# myt-pie-chart
Simple pie chart library with D3

# Events Properties

## onClick

  _`pie.events.onClick` - Optional, defaults to empty function._
```JavaScript
pie.events.setOnClick(function(d){}); // Sets the onClick chart function.
```

## onMouseOver

  _`pie.events.onMouseOver` - Optional, defaults to empty function._
```JavaScript
pie.events.setOnMouseOver(function(d){}); // Sets the onMouseOver chart function.
```

## onMouseEnter

  _`pie.events.onMouseEnter` - Optional, defaults to empty function._
```JavaScript
pie.events.setOnMouseEnter(function(d){}); //Sets the onMouseEnter chart function.
```

## onMouseLeave
  _`pie.events.onMouseLeave` - Optional, defaults to empty function._
```JavaScript
pie.events.setOnMouseLeave(function(d){}) // Sets the onMouseLeave chart function.
```

# Examples

- example_events.html
![example_events](https://s31.postimg.org/kzsc12jl7/example_events.png)
