c3js / c3js/c3

scatter chart: enable configuring color opacity of points

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

Description

I'm struggling with configuration of opacity of colors in scatter plot. No matter how I change `color` and `colors`, opacity of points is still set to random (or at least that's what I feel it is). I'd like to a) either be able to configure it myself b) or disable it completely and let all points have same opacity.

Is this possible somehow?

I appreciate any kind of feedback, thank you!

Sample data:

```
data: {
json: json_data,
keys: {
value: ["date", "hours"]
},
x: 'date',
xFormat: '%Y-%m-%d',
type: 'scatter',
color: function(color, d){ return "#ddd"; },
colors: { // has no effect
hours: '#ff0000',
date: '#00ff00'
}
};
```

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.