• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CodeYellowBV / chartist-plugin-legend / 35
94%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2016 08:06AM UTC
Jobs 1
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
35

push

travis-ci

web-flow
Added classNames and removeAll options (#24)

I've added two additional optional options and the corresponding logic for this plugin:

# classNames

classNames is a passable optional option, it's type is a array of strings.

It specifies classes for each legend li element.
If a valid array is passed, which is as long as the number of series (or, if passed as long as legendNames), those classes will be appended dynamically to their corresponding elements.
This allows generating classes for specific elements and to style them via CSS.

A specific example is stacking charts, and hiding overlapping legends for positioning purposes.

# removeAll

removeAll is a passable optional option, it's type is boolean.

It can be set to allow the user to remove every single entry of data in a chart.
This is not enabled by default to retain the developer's default, but enables a more flexible usage of the toggle functionality depending on personal preference.

75 of 81 relevant lines covered (92.59%)

9.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35.1 31 Aug 2016 08:06AM UTC 0
92.59
Travis Job 35.1
Source Files on build 35
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #35
  • 68d942e2 on github
  • Prev Build on master (#29)
  • Next Build on master (#37)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc