text: define(function (require) {
    return function HistogramVisType(Private) {
      const VislibVisType = Private(require('ui/vislib_vis_type/VislibVisType'));
      const Schemas = Private(require('ui/Vis/Schemas'));
  
      return new VislibVisType({
        name: 'line',
        title: 'Line chart',
        icon: 'fa-line-chart',
        description: 'Often the best chart for high density time series. Great for comparing one series to another. ' +
          'Be careful with sparse sets as the connection between points can be misleading.',
        add_pipeline_aggregation: true,
        params: {
          defaults: {
            shareYAxis: true,
            addTooltip: true,
            notes: '',
            addLegend: true,
            showCircles: true,
            smoothLines: false,
            interpolate: 'linear',
            scale: 'linear',
            drawLinesBetweenPoints: true,
            radiusRatio: 9,
            times: [],
            addTimeMarker: false,
            defaultYExtents: false,
            setYExtents: false,
            yAxis: {}
          },
          scales: ['linear', 'log', 'square root'],
          editor: require('plugins/kbn_vislib_vis_types/editors/line.html')
        },
        schemas: new Schemas([
          {
            group: 'metrics',
            name: 'metric',
            title: 'Y-Axis',
            min: 1,
            defaults: [
              { schema: 'metric', type: 'count' }
            ]
          },
          {
            group: 'metrics',
            name: 'radius',
            title: 'Dot Size',
            min: 0,
            max: 1,
            aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality']
          },
          {
            group: 'buckets',
            name: 'segment',
            title: 'X-Axis',
            min: 0,
            max: 1,
            aggFilter: '!geohash_grid'
          },
          {
            group: 'buckets',
            name: 'group',
            title: 'Split Lines',
            min: 0,
            max: 1,
            aggFilter: '!geohash_grid'
          },
          {
            group: 'buckets',
            name: 'split',
            title: 'Split Chart',
            min: 0,
            max: 1,
            aggFilter: '!geohash_grid'
          }
        ])
      });
    };
  });
  