From 52f320c7f52e38efd1db682a9fd44b85ccf45cae Mon Sep 17 00:00:00 2001 From: pratu16x7 Date: Wed, 22 Nov 2017 00:35:03 +0530 Subject: [PATCH] update docs --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b2ff83..f22a328 100644 --- a/README.md +++ b/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' }) ```