# Inputs.table\_Inline barchart issue

**URL:** <https://talk.observablehq.com/t/inputs-table-inline-barchart-issue/5726>\
**Category:** Help\
**Created:** [October 19, 2021, 3:11pm UTC](https://talk.observablehq.com/t/inputs-table-inline-barchart-issue/5726 "2021-10-19T15:11:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amidsi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/amidsi/32/5679_2.png) [@amidsi](https://talk.observablehq.com/u/amidsi)\
**Post date:** [October 19, 2021, 3:11pm UTC](https://talk.observablehq.com/t/inputs-table-inline-barchart-issue/5726/1 "2021-10-19T15:11:56Z")

</div>

Example of my current table is [here](https://observablehq.com/@amidsi/inputs-table_inline-barchart-issue)  
I hve problem with rendering bar charts in the cells. Can someone help?

---

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [October 20, 2021, 12:46pm UTC](https://talk.observablehq.com/t/inputs-table-inline-barchart-issue/5726/2 "2021-10-20T12:46:01Z")

</div>

Please describe the issue more.

If it’s the emoji flags then umm @mbostock [notebook](https://observablehq.com/@mbostock/iso-3166-alpha) is also not displaying the [ISO\_3166\_country\_codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).

---

<div class="post-metadata">

**Author:** ![amidsi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/amidsi/32/5679_2.png) [@amidsi](https://talk.observablehq.com/u/amidsi)\
**Post date:** [October 20, 2021, 2:56pm UTC](https://talk.observablehq.com/t/inputs-table-inline-barchart-issue/5726/3 "2021-10-20T14:56:53Z")

</div>

I’m not talking about emoji flags, I mean that bars in cells themselves looks like they lost range of the scale in columns Total\_Score and FS\_Score (((

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [October 20, 2021, 8:05pm UTC](https://talk.observablehq.com/t/inputs-table-inline-barchart-issue/5726/4 "2021-10-20T20:05:42Z")

</div>

Your scores are strings, so d3.max returns the “highest” string [by lexicographic order](https://observablehq.com/@d3/d3-extent#cell-135). You’ll have to either cast your CSV data to numbers, or convert them inside your d3.max callbacks, e.g.:

```auto
// Note the "+"
Total_Score: sparkbar(d3.max(ts, d => +d.Total_Score)),

```
