소스 검색

update docs

tags/1.2.0
pratu16x7 7 년 전
부모
커밋
52f320c7f5
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. +7
    -4
      README.md

+ 7
- 4
README.md 파일 보기

@@ -54,23 +54,26 @@ const data = {
datasets: [
{
title: "Some Data",
color: "light-blue",
values: [25, 40, 30, 35, 8, 52, 17, -4]
},
{
title: "Another Set",
color: "violet",
values: [25, 50, -10, 15, 18, 32, 27, 14]
}
]
}

const chart = new Chart({
parent: '#chart', // or a DOM element
parent: "#chart", // or a DOM element
title: "My Awesome Chart",
data: data,
type: 'bar', // or 'line', 'scatter', 'pie', 'percentage'
height: 250
height: 250,

colors: ['#7cd6fd', '#743ee2'],

format_tooltip_x: d => (d + '').toUpperCase(),
format_tooltip_y: d => d + ' pts'
})
```



불러오는 중...
취소
저장