highcharts / pattern-fill

MIT License
20 stars 23 forks source link

Series color in pattern #29

Open sinnbeck opened 7 years ago

sinnbeck commented 7 years ago

Sorry if this is not an actual issue. I am trying to get the plugin to use an object to define by pattern as I need to be able to set the color for each series individually. If I look at the version 1 example it seems that the old version can take an object color overrides does not seem to work. My guess would be to set it up something like this. http://jsfiddle.net/jzy1unsv/212/

TorsteinHonsi commented 7 years ago

You can't access the series object within the pattern definition. The closest you get I think is to predefined the color scheme, then define the patterns after that: http://jsfiddle.net/jzy1unsv/213/

sinnbeck commented 7 years ago

Made a few adjustments and it now works as I was hoping. People can merge this with the original plugin if they want the same functionality. :) http://jsfiddle.net/jzy1unsv/215/