Question: I have some JSON that I have specifically put inside a variable for this question.

Here is my json:

```
{"json":{"-K-dxZZVLv4N11BQ-tEJ":{"AssetID":1},"-K-dxwm5y1hVS68GyMhN":{"AssetID":2}}}

```

Here is what I tried:

```
var url = "https://rbxjson.firebaseio.com/catalog.json";
var recent;
$.getJSON(url, function (json) {
recent = Object.keys(json["json"])[0]["AssetID"];
alert(recent);
});

```

I'm trying to access the value of "AssetID" in "{"AssetID":1}" but I tried the above code and it doesn't work.

Answer: 
I had also thought the [`seaborn` documentation](https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.distplot.html#seaborn.distplot) mentioned that multiple columns could be plotted simultaneously, and highlighted by color by default.

But upon re-reading, I did not see anything. Instead, I think I inferred it from [this tutorial](https://www.oreilly.com/learning/data-visualization-with-seaborn), where part of the way through, the tutorial plots a data frame with multiple columns.

---

However, the "solution" is trivial, and hopefully exactly what you're looking for:

```
sns.set(color_codes=True)
sns.set(style="white", palette="muted")
sns.distplot(df)

for col_id in df.columns:
    sns.distplot(df[col_id])

```

By default, this will alter the colors, "knowing" which one has already been used.

[![Generated image from code above (using different data set)](https://i.stack.imgur.com/CDXMl.png)](https://i.stack.imgur.com/CDXMl.png)

Note: I used a different data set, since I wasn't sure how to re-create yours.
Let's assume I have the excerpt from the data you have showed above (with only difference that on my machine `NAN` is `NaN`).

Then, the best graphical representation I can think of is grouped barplot: one group for every sample, within every group there are gene bars (some people call this histogram occasionally)

In order to do that, you need first to "melt" your data, in `R` parlour, i.e. make it "long". Then, you can proceed with plotting.

```
data = df.set_index('GEN').unstack().reset_index()
data.columns = ['sample','GEN', 'value']

sns.set(style="white")
g = sns.factorplot(x='sample'
                   ,y= 'value'
                   ,hue='GEN'
                   ,data=data
                   ,kind='bar'
                   ,aspect=2
                   )
g.set_xticklabels(rotation=30);

```

[![enter image description here](https://i.stack.imgur.com/6gmiQ.png)](https://i.stack.imgur.com/6gmiQ.png)

Please, let us know if this is the type of plot you were after.