From 1b62d1719861d3b032dacad66f7a7513259f91de Mon Sep 17 00:00:00 2001 From: Rodrigo Wirth Date: Fri, 29 Apr 2016 08:35:06 -0300 Subject: [PATCH 1/2] Add bar with max width example --- htdocs/index.html | 3 ++ htdocs/samples/chart_bar_max_width.html | 37 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 htdocs/samples/chart_bar_max_width.html diff --git a/htdocs/index.html b/htdocs/index.html index 7f2c06a..533974a 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -50,6 +50,9 @@ Stacked Bar chart with ordinary data + + Bar chart with max width +
diff --git a/htdocs/samples/chart_bar_max_width.html b/htdocs/samples/chart_bar_max_width.html new file mode 100644 index 0000000..1ad9750 --- /dev/null +++ b/htdocs/samples/chart_bar_max_width.html @@ -0,0 +1,37 @@ + + + + + +
+ + + + + + From 0f2e00dbb16966c581aa5fc5ebe18b2d3f1abecf Mon Sep 17 00:00:00 2001 From: Rodrigo Wirth Date: Mon, 2 May 2016 08:25:50 -0300 Subject: [PATCH 2/2] Apply code review suggestions for bar max width example --- htdocs/samples/chart_bar_max_width.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/samples/chart_bar_max_width.html b/htdocs/samples/chart_bar_max_width.html index 1ad9750..56c9deb 100644 --- a/htdocs/samples/chart_bar_max_width.html +++ b/htdocs/samples/chart_bar_max_width.html @@ -13,8 +13,6 @@ columns: [ ['data1', 1030, 1200, 1100, 1400, 1150, 1250], ['data2', 2130, 2100, 2140, 2200, 2150, 1850] -// ['data1', 30, 200, 100, 400, 150, 250], -// ['data2', 130, 100, 140, 200, 150, 50] ], type: 'bar', onclick: function (d, element) { console.log("onclick", d, element); }, @@ -28,8 +26,8 @@ }, bar: { width: { - max: 40 - }, + max: 40 + } } });