Esri / Esri/cedar

changing value of value field changes chart width

Open
#431 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Handlebars
Stars
265
Forks
236
PR merge metrics
No merged PRs in 30d

Description

I'm using v0.9.2 and dynamically building the datasets and charts within the JS code.

Within a loop, this code produces an acceptable chart:

```
var attr = {
"attributes": {
"age": i,
"percent": currentCountryData["SD_mean_" + i]
}
}
```

![image](https://user-images.githubusercontent.com/1952205/41601873-b9c6e37a-7396-11e8-8565-b3de5803e2f6.png)

But when I change that decimal value to a percent,

`"percent": currentCountryData["SD_mean_" + i] * 100`

It creates all this whitespace to the left of the Y-axis. Any idea why?

![image](https://user-images.githubusercontent.com/1952205/41602017-188873b0-7397-11e8-813e-b5b82d60c96d.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.