diff options
author | JaePil Jung <jjp5023@gmail.com> | 2019-02-04 22:40:39 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-04 08:40:39 -0500 |
commit | 66cea3906733955c6c1fb223d0bf42eb6bc456b4 (patch) | |
tree | c77b10bce35acbff06964bf1af22e8a61efcad92 | |
parent | cb95797e2783ed9b209248576bdcea98c3f6f1ff (diff) |
Fixed chart width to responsive (#1670)
-rw-r--r-- | website/all_benchmark.html | 2 | ||||
-rw-r--r-- | website/app.js | 5 | ||||
-rw-r--r-- | website/style.css | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/website/all_benchmark.html b/website/all_benchmark.html index d17c5bde6..1d73d5831 100644 --- a/website/all_benchmark.html +++ b/website/all_benchmark.html @@ -1,4 +1,4 @@ -<!-- Copyright 2018 the Deno authors. All rights reserved. MIT license. --> +<!-- Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. --> <!DOCTYPE html> <html> <head> diff --git a/website/app.js b/website/app.js index b1bce55aa..18d2899df 100644 --- a/website/app.js +++ b/website/app.js @@ -135,11 +135,6 @@ function generate( // @ts-ignore c3.generate({ bindto: id, - size: { - height: 300, - // @ts-ignore - width: window.chartWidth || 375 // TODO: do not use global variable - }, data: { columns, onclick diff --git a/website/style.css b/website/style.css index 95e558b28..5b44d3799 100644 --- a/website/style.css +++ b/website/style.css @@ -13,6 +13,8 @@ main { } svg { margin: 0px auto; + width: 100%; + height: 300px; } a { |