c3js / c3js/c3

SVG printing issue

Open
#2,161 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

![bad-chart](https://user-images.githubusercontent.com/10778364/29968061-f16c3b98-8ee7-11e7-88b2-5662364cc0ff.JPG)
* **C3 version**:0.4.17
* **D3 version**:3.5.17
* **Browser**:IE 11, Chrome 62, Firefox 54
* **OS**:Windows 10

Charts with lines do not print lines properly. In all browsers tested, in print preview the path is closed and filled with black.

This can be easily fixed using this css, per [this question](https://stackoverflow.com/questions/10213155/unclosed-svg-path-appears-to-be-closed):
```
path {
fill:none;
}
```

I'm not sure what knockon effects this will have for area charts, but presumably prefixing with .c3-line would solve the issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.