summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/tools/wtstats/template/models/colors.js
blob: 9b52ce9ef16556f108c40e4b89e276d1dffe6901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var d3 = require('d3');

var ColorSingleton = module.exports = (function () {
    var instance;
 
    function createInstance() {
        var object = d3.scale.category20();
        return object;
    }
 
    return {
        getInstance: function () {
            if (!instance) {
                instance = createInstance();
            }
            return instance;
        }
    };
})();