하이차트 Basic line 차트에서 카테고리 값 위치에 점(마커) 제거하는 방법.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    $('#container').highcharts({
        title: {
            text: 'Monthly Average Temperature',
            x: -20 //center
        },
        subtitle: {
            text: 'Source: WorldClimate.com',
            x: -20
        },
        xAxis: {
            categories: ['Jan''Feb''Mar''Apr''May''Jun',
                'Jul''Aug''Sep''Oct''Nov''Dec']
        },
        yAxis: {
            title: {
                text: 'Temperature (°C)'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: '°C'
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name'Tokyo',
            data: [7.06.99.514.518.221.525.226.523.318.313.99.6],
            maker: {
                enabled: false
            }
        }]
    });
cs


series에 marker 옵션에 enabled: false를 넣어주면 된다.


plotOptions -> series -> marker 에서도 가능.


그밖에 marker 옵션.

fillColor : 마커 채움 색상

height : 마커 높이

width : 마커 넓이

lineColor : 마커 테두리 색상

lineWidth : 마커 테두리 넓이

ladius : 마커 반지름

symbol : 마커 심볼

jstree의 클릭 이벤트에서 해당 node의 데이터 가져오는 방법이다.

data.a는 트리에 data에 넣어준 특정 변수값.


1
2
3
4
5
6
.bind('select_node.jstree'function(event, data){
    var id = data.instance.get_node(data.selected).id;        //id 가져오기
    var type = data.instance.get_node(data.selected).type;    //type 가져오기
    var path = data.instance.get_node(data.selected).path;    //paht 가져오기
    var a = data.instance.get_node(data.selected).data.a;    //data 에서 a 가져오기
})
cs


'jsTree' 카테고리의 다른 글

[jsTree]ajax로 jstree 생성 방법  (0) 2016.09.01

ajax로 데이터 가져와서 트리 생성하는 방법.

data array에서 data 부분은 트리의 노드가 가지고있어야 할 데이터를 마음대로 넣어줄수 있다.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$.ajax({
    ...
    success: function(data){
        var data = new Array();
        $.each(data, function(idx, item){
            data[idx] = {id:item.id, parent:item.text, type:item.type, data:{a:item.a, b:item.b, ...}}; 
        });
 
        $("#tree").jstree({
            core: {
                data: data    //데이터 연결
            },
            types: {
                'default': {
                    'icon''jstree-folder'
                }
            },
            plugins: ['wholerow''types']
        })
        .bind('loaded.jstree'function(event, data){
            //트리 로딩 롼료 이벤트
        })
        .bind('select_node.jstree'function(event, data){
            //노드 선택 이벤트
        })
    }
});
cs


'jsTree' 카테고리의 다른 글

[jsTree] 클릭한 node의 id, type 등등 가져오는 방법  (0) 2016.09.02

설정파일 경로

C:/Program Files/MariaDB 10.1/data/my.ini


1. my.ini 파일에 아래 내용 추가

[mysqld]

init_connect="SET collation_connection = utf8_general_ci"

init_connect="SET NAMES utf8"

character-set-server = utf8

collation-server = utf8_general_ci


[client]

default-character-set = utf8


[mysqldump]

default-character-set = utf8


[mysql]

default-character-set = utf8



2. 서버 재시작

cmd 창에서

기동 : net start mysql

중단 : net stop mysql

재기동 : net restart mysql


3. 설정 확인

mysql> show variables like 'c%';

+ Recent posts