Skip to content

Commit

Permalink
Real-time d3 chart in class structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwani-luhaniwal committed Apr 30, 2018
1 parent dff0f1e commit b7853e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Examples/Aqicn d3 chart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<script type="text/javascript" src="js/coco-class.js"></script>

<style>

#panel{
height:100vh;
width:400px;
Expand Down Expand Up @@ -40,6 +39,15 @@
width:100%;
height:300px;
}
.overlay {
fill: none;
pointer-events: all;
}

.focus circle {
fill: none;
stroke: steelblue;
}
</style>

</head>
Expand Down Expand Up @@ -77,6 +85,7 @@ <h1>Real-time Air Quality and Traffic Data</h1>
chart.chartObj.displayChart();
}

// For rendering chart for particular station please comment the above for loop code
function station_id_change(event) {
const value = event.currentTarget.value
for(const chart of charts){
Expand Down

0 comments on commit b7853e1

Please sign in to comment.