(function (angular) {
    'use strict';

    function FlotDirective(eehFlot) {
        return {
            restrict: 'AE',
            scope: {
                dataset: '=',
                options: '@'
            },
            link: function link(scope, element) {
                eehFlot(element, scope.dataset, scope.options);
            }
        };
    }

    angular.module('eehFlot').directive('eehFlot', FlotDirective);
})(angular);
(function (angular) {
    'use strict';

    function FlotDirective(eehFlot) {
        return {
            restrict: 'AE',
            template: '<div class="eeh-flot"></div>',
            scope: {
                dataset: '=',
                options: '@'
            },
            link: function link(scope, element) {
                var renderArea = element.find('.eeh-flot');
                eehFlot(renderArea, scope.dataset, scope.options);
            }
        };
    }

    angular.module('eehFlot').directive('eehFlot', FlotDirective);
})(angular);

Use the inner div to render the chart