sentilo/sentilo

View on GitHub
sentilo-catalog-web/src/main/webapp/static/js/chartist-plugin-tooltip.js

Summary

Maintainability
C
1 day
Test Coverage

Function tooltip has 111 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Chartist.plugins.tooltip = function (options) {
      options = Chartist.extend({}, defaultOptions, options);

      return function tooltip(chart) {
        var tooltipSelector = options.pointClass;

    Function tooltip has 108 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          return function tooltip(chart) {
            var tooltipSelector = options.pointClass;
            if (chart instanceof Chartist.Bar) {
              tooltipSelector = 'ct-bar';
            } else if (chart instanceof Chartist.Pie) {

      There are no issues that match your filters.

      Category
      Status