Project

General

Profile

Task #6452

Feature #5975: Implement 'Statistics' view

Add class to labels of donut arcs when user hovers over the arcs

Added by Lauren Walker over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
03/11/2014
Due date:
% Done:

0%

Estimated time:

Description

For flexible styling

History

#1 Updated by Lauren Walker over 8 years ago

  • translation missing: en.field_remaining_hours set to 0.0
  • Status changed from New to Resolved

This was a little trickier than I thought it would be because SVG elements are treated differently than other HTML elements by jQuery - notably when selecting and manipulating the classes of SVG elements. For example, I had to manually toggle the class names of SVG elements by manipulating the "class" attribute string value rather than using $el.toggleClass()

But now all labels on the donut charts are always visible and have better interaction on hover.

Also available in: Atom PDF