Status: Started
  • index.html
Font Size
14
Parentheses autocomplete
Wrap lines
Editor
Theme
Code with blocks by default
Console Font Size
12
Console Theme
Show File Tab Bar
Show Console
Code Running Environment
10 Code Your Own Graph!
index.html
<!-- The script tag is where all of our code for the data visualization can be found -->
<!-- IMPORTANT: in order to see your graph when run, there must not be any blank values in the series data -->
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output
Docs
Exercise
More
This student is viewing this assignment in English. View this page in English?

5 points

Using the data you collected in the last exercise, let’s create the same graph, except this time by writing the code to create the graph yourself!

If you chose to create a graph with a bunch of different categories, then you’ll need to do some extra work to make sure that the code runs correctly:

  1. If you have multiple categories (for example, Florida, Colorado), you will need to add each category to the categories variable. To add multiple categories, we can do so by storing all of the categories in a list:

    categories: ["Florida", "Colorado"],
  2. If you have multiple categories, you will need to store your data a bit differently as well. For each name in the series, the data attribute should have a piece of data for each category. For example, if we had two categories, Florida and Colorado that had voter data from 2013, then the series data would look like this:

    series:
    [
        {
            name: "2013",
            data: [Florida Data, Colorado Data]
        },
    ]

    Whichever category comes first in your categories variable should be the data item that you write in first. Since Florida is the first index in categories, then it should be the first index in data.

Have fun!


IMPORTANT: In order to see your graph when you run the code, you can’t have blank values in the series. Either fill in the blank values or remove them from the series.

Reset Code

Slides and Notes

No slides available for this video

About

WebDev