labelAnnotations = {
return [{
id: "Lippman",
note: {
label: "2015 영국 총선",
title: "2015-03",
wrap: 200
},
data: {date: new Date("2015-03-01"), value: 100 },
className: "show-bg",
dx: 50,
dy: 50,
type: d3.annotationCustomType(
d3.annotationLabel,
{"className":"custom",
"connector":{"end":"dot",
"type":"elbow"},
"note":{"align":"dynamic",
"orientation":"leftRight",
"lineType":"horizontal"}})
},
{
id: "india",
note: {
label: "2019 인도 총선",
title: "2019-04",
wrap: 200
},
data: {date: new Date("2019-03-01"), value: 80 },
className: "show-bg",
dx: -60,
dy: 50,
type: d3.annotationCustomType(
d3.annotationLabel,
{"className":"custom",
"connector":{"end":"dot",
"type":"elbow"},
"note":{"align":"dynamic",
"orientation":"leftRight",
"lineType":"horizontal"}})
},
{
id: "korea",
note: {
label: "2018 대한민국 지방선거",
title: "2018-06",
wrap: 200
},
data: {date: new Date("2018-06-01"), value: 1 },
className: "show-bg",
dx: -30,
dy: -50,
type: d3.annotationCustomType(
d3.annotationLabel,
{"className":"custom",
"connector":{"end":"dot",
"type":"elbow"},
"note":{"align":"dynamic",
"orientation":"leftRight",
"lineType":"horizontal"}})
},
]
}