do not modify data if in a pie chart

There's no need to call ``largestTriangleThreeBuckets`` if we are in a pie chart, but the plugin might be loaded for other graphs on the same page...