课程: Code Clinic: JavaScript

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

Solution overview

Solution overview

(bright music) - [Narrator] Let's take a look at the finished solution for this problem. As you can see, we can set a range of data and once we modify sort of the parameters here for the data, you can see that the chart changes dynamically. We can also turn these different sort of dots on and off. And you can even sort of scroll through the data by using this selector right here. Now, most of that is done with a framework called C3. C3 is going to automatically create this chart from us. It's just going to require some data. Now, one of the problems with this particular Code Clinic exercise is that JavaScript doesn't like dealing with lots of data, so whenever I change this data point here to be something bigger. Let's try to January 3rd, 2015; you can see that it slows down as it tries to get a lot more data point and if I were to try to say, analyze a whole year, it would probably crash your browser or act really, really slow. So, JavaScript isn't the language where you want to…

内容