PageSourceSearch

https://kita.net/aiBigData/js/custom/inno_color.js;JSESSIONID_KITA=D403D5BA5460671ABC4ADA84AE5D075E.Hyper

js kita.net collected 2026-09-24 18:08:59 UTC 2,949 bytes, 93 lines download raw bytes

1var innoColor = {
2    chart : [ '#F35F5D', '#FEE066', '#257A9F', '#70C0B3', '#767674' ],
3    gauge : [ '#5587A2', '#88B14B', '#FACF4C', '#FA9C42', '#E14159' ],
4    worldMap : [ '#00DB5F', '#3AB0E3', '#3A68E3', '#593AE3', '#AE3AE3', '#E33AD6', '#E33A65', '#E3693A' ],
5    network : {
6        'none' : '#67B7DC', // 최상위
7        'LC' : '#DC67CE',   // 지역
8        'NA' : '#DC6788',   // 국가
9        'PD' : '#DC8C67',   // 품목
10        'OG' : '#A367DC',   // 기관
11        'PS' : '#6771DC',   // 인물
12        'KD' : '#555555'    // 키워드
13    },
14    mapSelected: '#FACF4C',
15    mapNone: '#E1E1E1',
16    white : '#FFFFFF',
17    black: '#000000',
18    silver : '#EAEAEA',
19    darkGray: '#404040',
20    lightBlueGray: '#CAD7E0',
21    skyBlue: '#40B2E6',
22    deepBlue: '#074D81'
23};
24/**
25 * 차트 아이템 색상 설정
26 * @param {Number} cnt 차트 아이템 개수
27 * @param {String} chartKind 차트 종류
28 * @return {Array}
29 */
30function setChartColors(cnt, chartKind) {
31    var chartColor = getChartColorObj(chartKind);
32    var result = [], forCnt = 0;
33
34    if( $.isArray(chartColor) && typeof chartColor[0] !== 'string') {
35        chartColor = chartColor.map(function (obj) {
36            return Object.values(obj);
37        });
38    } else if( typeof chartColor === 'object') {
39        chartColor = $.map(chartColor, function(value, index){
40            return [value];
41        });
42    }
43
44    for (var i = 0; i < cnt; i++, forCnt++) {
45        i > (chartColor.length - 1) && forCnt > (chartColor.length - 1) ? forCnt = 0 : '';
46        result.push(chartColor[forCnt]);
47    }
48    return result;
49}
50
51/**
52 * 차트 아이템 1개 색상 설정
53 * @param {Number} num 차트 아이템 번호
54 * @param {String} chartKind 차트 종류
55 * @return {String}
56 */
57function setChartColor(num, chartKind) {
58    var chartColor = getChartColorObj(chartKind);
59
60    if( $.isArray(chartColor) && typeof chartColor[0] !== 'string') {
61        chartColor = chartColor.map(function (obj) {
62            return Object.values(obj);
63        });
64    } else if( typeof chartColor === 'object') {
65        chartColor = $.map(chartColor, function(value, index){
66            return [value];
67        });
68    }
69
70    var idx = (num > (chartColor.length - 1)) ? num % (chartColor.length - 1) : num;
71    return chartColor[idx];
72}
73
74/**
75 * 차트 종류에 따른 컬러 얻기
76 * @param chartKind 차트 종류
77 * @return {string[]}
78 */
79function getChartColorObj(chartKind) {
80    chartKind = chartKind === null || typeof chartKind === 'undefined' ? 'chart' : chartKind;
81    return innoColor[chartKind];
82}
83
84/**
85 * 네트워크 차트 아이템 color 세팅
86 * @param {Object} initData 차트 세팅 정보(drawForceDirectedTree의 파라메터)
87 */
88function addNetworkChartColors(initData) {
89    initData.chartData[0].color = innoColor.network.none;
90    $.each(initData.chartData[0].children, function (cIdx, cObj) {
91        cObj.color = innoColor.network[cObj.tag];
92    });
93}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.