axisLabelColor seems to have no effect. Any way to dynamically color axis label?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.2k
- Forks
- 589
- PR merge metrics
- No merged PRs in 30d
Description
https://jsfiddle.net/cd1jww2n/
Ubuntu 16.04, Chrome 57.0.2987.98, dygraph 2.0.0.
Note: both of the commented-out lines in the fiddle that want to set the axis label color cause the graph not to draw at all. I have tried various things in my own code as well, and some don't kill the graph but none actually applies the desired color. I can apply a color to the axis label with CSS, but I need to do it dynamically at every updateOptions() call. (In particluar, I have several lines of different colors on the graph, and I want the axis and label to be the same color as one of the data series).
Is there any way to do this wihout mucking with the stylesheet dynamically (which is a pain)?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked jsfiddle and the axisLabelColor behavior around updateOptions(); compare it with the CSS-based coloring that currently works. The issue is done when axis labels can be colored dynamically to match a data series without preventing the graph from drawing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100