Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ile authored Mar 21, 2024
1 parent 2dd1bf7 commit 89da909
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,19 @@
}

function draw() {
var width = document.querySelector("#chart").offsetWidth,
var element = document.querySelector("#chart"),
width = element.offsetWidth,
height = 550,
hoverDetail,
time,
years,
x_axis,
y_axis;

element.innerHTML = '';

graph = new global.Rickshaw.Graph({
element: document.querySelector("#chart"),
element,
width: width,
height: height,
renderer: 'area',
Expand Down

0 comments on commit 89da909

Please sign in to comment.