define([
  'vehicle-licensing/collections/services',
  'extensions/views/timeseries-graph/timeseries-graph',
  'extensions/views/tabs',
  'extensions/views/graph/headline',
],
  function (ServicesCollection, TimeseriesGraph, Tabs, Headline) {
    return function (selector, id, type) {
      if ($('.lte-ie8').length) {
        // do not attempt to show graphs in legacy IE
        return;
      }

      var serviceName = {
        'sorn': 'SORN (Statutory Off Road Notification)',
        'tax-disc': 'Tax disc'
      };

      var serviceCollection = new ServicesCollection([], {
        seriesList: [{ id: id, title: serviceName[type] }]
      });
      serviceCollection.query.set('period', 'week');
      serviceCollection.fetch();

      new TimeseriesGraph({
        el: $(selector),
        collection: serviceCollection
      });

      var tabs = new Tabs({
        el: $(selector + '-nav'),
        model: serviceCollection.query,
        attr: 'period',
        tabs: [
          {id: "month", name: "Monthly"},
          {id: "week", name: "Weekly"}
        ]
      });
      tabs.render();

      var headline = new Headline({
        el: $(selector + '-headline'),
        model: serviceCollection.query,
        prefix: 'Applications'
      });
      headline.render();
    };
  });

define([
  'vehicle-licensing/collections/services',
  'extensions/views/timeseries-graph/timeseries-graph',
  'extensions/views/tabs',
  'extensions/views/graph/headline',
],
  function (ServicesCollection, TimeseriesGraph, Tabs, Headline) {
    return function (selector, id, type) {
      if ($('.lte-ie8').length) {
        // do not attempt to show graphs in legacy IE
        return;
      }

      var serviceName = {
        'sorn': 'Applications',
        'tax-disc': 'Applications'
      };

      var serviceCollection = new ServicesCollection([], {
        seriesList: [{ id: id, title: serviceName[type] }]
      });
      serviceCollection.query.set('period', 'week');
      serviceCollection.fetch();

      new TimeseriesGraph({
        el: $(selector),
        collection: serviceCollection
      });

      var tabs = new Tabs({
        el: $(selector + '-nav'),
        model: serviceCollection.query,
        attr: 'period',
        tabs: [
          {id: "month", name: "Monthly"},
          {id: "week", name: "Weekly"}
        ]
      });
      tabs.render();

      var headline = new Headline({
        el: $(selector + '-headline'),
        model: serviceCollection.query,
        prefix: 'Applications'
      });
      headline.render();
    };
  });

Make label in hovers unified
Make label in hovers unified
